Stream: implementers
Topic: FHIR Search parameters
Ramesh jarabana (Jul 05 2020 at 04:46):
I have requirement to find the all the references in single query like .. DiagnosticReport & diagnosticreport.result -> observation & Observation -> extensions(BodyStructure) .. if run a query on diagnostic report it should return all the resources of diagnosticreport,Observations & Bodystructure, .. i am able to retrieve till observation with INLCUDE_ALL , can some help me to find a solution to retrieve body structure as well in same query
Lloyd McKenzie (Jul 05 2020 at 13:46):
You'd have to define a search parameter for the BodyStructure extension (and any others) and then retrieve those using _include too. You can't include anything not referenced by a search parameter because the presumption is that only search parameters will be indexed.
Ramesh jarabana (Jul 05 2020 at 14:45):
do you have any sample example for that .. actually I am new to this FHIR domain, so could you please share if you have handly
Lloyd McKenzie (Jul 05 2020 at 14:50):
There's an example of how to define a search parameter on an extension here: https://build.fhir.org/searchparameter-example-extension.json.html
Lloyd McKenzie (Jul 05 2020 at 14:51):
Note that you would need to get the server in question to support the search parameter and support using _include on it in order to use it.
Last updated: Apr 12 2022 at 19:14 UTC