Stream: implementers
Topic: SearchParameter that applies to multiple resource types
Avi Kelman (Mar 05 2020 at 22:52):
Is there a right approach for adding a search parameter for an extension that applies to many resource types? Say there's a new identifier field added on everything. Do I need to create a separate SearchParameter resource for each resource type that makes use of the identifier extension? Or is there a way to make the FHIRPath expression on one search parameter for everything? It looks like the HAPI server does the former? But if that's the case, then why are SearchParameter.base and SearchParameter.target lists?
Josh Mandel (Mar 05 2020 at 22:56):
http://build.fhir.org/searchparameter.html#srch has some details, and there are examples of how a search parameter can work across resources. (Will grab one...)
Avi Kelman (Mar 05 2020 at 23:00):
An example would be fantastic, thanks!
Josh Mandel (Mar 05 2020 at 23:00):
http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
Josh Mandel (Mar 05 2020 at 23:01):
er, wait
Josh Mandel (Mar 05 2020 at 23:02):
The example I want is called http://hl7.org/fhir/SearchParameter/clinical-patient
-- and it's available in http://build.fhir.org/hl7.fhir.r5.core.tgz but I'm having trouble figuring out where it's hosted online.
Josh Mandel (Mar 05 2020 at 23:03):
Ah, at http://build.fhir.org/searchparameter-registry.html
Josh Mandel (Mar 05 2020 at 23:04):
http://build.fhir.org/search-parameters.json has the full set
Avi Kelman (Mar 05 2020 at 23:08):
Thanks. I'll play with that a bit.
Last updated: Apr 12 2022 at 19:14 UTC