-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FHIRPath with extension token fails with function error and throws an exception - request for support of extension #21
Comments
Reduced my example to a single test - confirmed that extension is not supported in the release i installed through pip, but wondered if there is a new version with support for extension. Error Attached simple test case. |
Hi @coline14s Thank you for your contribution. Unfortunately |
@coline14s the simple implementation that works for your case is done. However extension on primitive types is not supported yet, this part is WIP #22 |
@coline14s new version 0.2.1 with extension support has been released. |
thanks ir4y - really appreciated - we're using in a demonstration at the CMS FHIR Connectathon, so if extension works for that example, it will make an excellent impression. testing now. |
Tested and works like a champ! Really great outcome! Can't thank you enough. |
Q: Does fhirpathy support “extensions”
I think it does since when I do this search on the test subdirectory, I get a number of test cases with extension examples. When i run my evaluates, i get exceptions inside my try loop for these examples.
TEST 1:
These FHIRPath:
ExplanationOfBenefit.extension('https://bluebutton.cms.gov/resources/variables/dsh_op_clm_val_amt').valueMoney.value
ExplanationOfBenefit.billablePeriod.extension('https://bluebutton.cms.gov/resources/variables/claim_query_cd').valueCoding.code
Throw an exception for the attached ExplanationOfBenefit FHIR Resource. I know the extension does not exist for the EOB examples, but should the evaluate throw an exception?
TEST 2:
This FHIRPath fails when run against the patient resource attached (in zip). Same question except this path seems like it should work, the extension is inside the identifier coding.
Patient.identifier.where(type.coding.extension('https://bluebutton.cms.gov/resources/codesystem/identifier-currency').valueCoding.code = 'current').where(system = 'http://hl7.org/fhir/sid/us-mbi').value
jsonFiles.zip
Any help is appreciated!
Thanks
The text was updated successfully, but these errors were encountered: