简体   繁体   中英

Search FHIR resource by internal reference

DSTU2 documentation does not describe ability to search resources by internal references. Is there any way to find the below resource having contained Practitioner resource and internal reference on it like:

[base]/fhir/Patient?careprovider:Practitioner=ContainedId or

[base]/fhir/Patient?careprovider=ContainedId

 { "resourceType" : "Patient", "id" : "ContainedTestPatient", "careProvider" : [{ "reference" : "#ContainedId" }], "contained" : [{ "resourceType": "Practitioner", "id": "ContainedId", "name": {"text": "Good doctor INC"} }] }

Actually DSTU2 documentation does specify how to search for values in contained resources, see http://www.hl7.org/fhir/search.html#contained . It's done with a chained search and looks like this:

[base]/Patient?careprovider._id=ContainedId

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM