FHIR Chat · FHIRPath for extensions · implementers

Stream: implementers

Topic: FHIRPath for extensions


view this post on Zulip Richard Kavanagh (Jun 29 2020 at 16:43):

If I define a new SearchParameter for an extension of type coding on resource MedicationStatement, my understanding is that the expressions within it should be along the lines of

base = MedicationStatement
expression = MedicationStatement.extension.where(url = 'http://acme.health.org/ext1').extension.value.code

Now supposing I wanted to also use this same extension MedicationRequest, does this now become as below?

base = DomainResource
expression = (MedicationStatement.extension.where(url = 'http://acme.health.org/ext1').extension.value.code | MedicationRequest.extension.where(url = 'http://acme.health.org/ext1').extension.value.code)

Then finally, what would an expression for a complex extension look like if I wanted to target one of the inner extensions?

view this post on Zulip Grahame Grieve (Jun 29 2020 at 20:41):

yes to your second expressoin

view this post on Zulip Grahame Grieve (Jun 29 2020 at 20:41):

MedicationStatement.extension('http://acme.health.org/ext1').extension.value.code") is the same

view this post on Zulip Grahame Grieve (Jun 29 2020 at 20:41):

MedicationStatement.extension('http://acme.health.org/ext1').extension('inner').value.code

view this post on Zulip Richard Kavanagh (Jun 29 2020 at 21:00):

Thanks @Grahame Grieve


Last updated: Apr 12 2022 at 19:14 UTC