FHIR Chat · Search Parameter searching against an Extension · implementers

Stream: implementers

Topic: Search Parameter searching against an Extension


view this post on Zulip Peter Jordan (Dec 09 2020 at 05:09):

@Lloyd McKenzie & co, any advance on this Stack Overflow Post on providing examples of searching against an extension?

There are example instances of SearchParameter and examples of Conformance/CapabilityStatement referencing SearchParameter, but none that show SearchParameter searching against an extension that I'm aware of in either the HL7 core spec or in any of the IGs we publish - it just hasn't come up. (I haven't had a need yet in any of my non-HL7 IGs yet either.) Feel free to submit a change request advocating for such an example to be included in the spec.

view this post on Zulip ryan moehrke (Dec 09 2020 at 15:07):

is these what you were looking for? examples of search parameter resources that point to extensions
https://build.fhir.org/ig/HL7/davinci-pdex-plan-net/SearchParameter-organization-coverage-area.html
https://www.hl7.org/fhir/us/core/SearchParameter-us-core-race.html

view this post on Zulip Peter Jordan (Dec 09 2020 at 20:26):

@ryan moehrke , @Lloyd McKenzie et al, I'm looking for a practical example of the use of an extension as a search parameter in a GET request.
Looking at this (boolean) extension on the Condition Resource...
http://hl7.org.nz/fhir/StructureDefinition/long-term-condition
What should appear in the query string - I can see two possibilities
a. GET [base]/Condition?extension= http://hl7.org.nz/fhir/StructureDefinition/long-term-condition|True
b. GET [base]/Condition?long-term-condition=true

view this post on Zulip Michele Mottini (Dec 09 2020 at 20:29):

It is (b) - the server has to add new custom search parameters corresponding to the extension


Last updated: Apr 12 2022 at 19:14 UTC