Stream: implementers
Topic: FHIRPath for extended primitives
Sergej Reiser (Aug 17 2020 at 09:02):
Is it possible to access an Extension to a primitive attribute using FHIRPath?
Consider this resource:
{
"resourceType": "Consent",
"status": "incative",
"_status": {
"extension": [
{
"url": "http://example.com/Extension/my-primitive-extension",
"valueString": "cancelled"
}
]
}
}
What would my FHIRPath expression look like, if i wanted to access the "cancelled" string?
ryan moehrke (Aug 17 2020 at 15:12):
Simply 'Consent.status.extension.value' should work, I believe that the underscore is only for the json schema
Sergej Reiser (Aug 18 2020 at 08:51):
Thanks, this works indeed. It didnt work with the FHIR-Path online Demo, so i assumed that there must be another trick.
https://niquola.github.io/fhirpath-demo
Testing the expression with HAPI's FHIRPath implementation proved to be working afterall.
Last updated: Apr 12 2022 at 19:14 UTC