Stream: implementers
Topic: Searching for Extensions
Grahame Grieve (Dec 10 2019 at 02:35):
It seems that there's no way to search for all extensions that are used with a specific type.
Grahame Grieve (Dec 10 2019 at 02:35):
e.g. I want to search for all extensions that pertain to address
Grahame Grieve (Dec 10 2019 at 02:36):
I can do this:
http://test.fhir.org/r4/StructureDefinition?ext-context=Address
or this
http://test.fhir.org/r4/StructureDefinition?ext-context=Address.line
But not any extension that pertains to anywhere in Address...
Grahame Grieve (Dec 10 2019 at 02:36):
unless someone out there has any ideas I don't. ? @Christiaan Knaap can Vonk do this somehow?
Christiaan Knaap (Dec 10 2019 at 09:57):
With a custom searchparameter that extracts the resourcetype part of the context.expression (assuming that can be done with fhirpath).
Or the other way around: a custom sp that extracts StructureDefinition.differential.element.type.profile where type.code = Extension.
nicola (RIO/SS) (Dec 10 2019 at 11:30):
In aidbox this query is GET /Attribute?.extensionUrl$isnull=false&.resource.id=Address
:)
Christiaan Knaap (Dec 10 2019 at 11:37):
Thanks @nicola (RIO/SS) . Definitely efficient, but not FHIR Search ;-)
nicola (RIO/SS) (Dec 10 2019 at 12:21):
It could be FHIR x.0.1 :)
nicola (RIO/SS) (Dec 10 2019 at 12:23):
The community just has to decide to move to "first-class-extensions"!
Last updated: Apr 12 2022 at 19:14 UTC