Stream: implementers
Topic: Business identifier search
Rob Resendez (Nov 06 2019 at 17:10):
The fhir spec has an example of searching by a (business)identifier...
GET [base]/Observation?subject:identifier=http://acme.org/fhir/identifier/mrn|123456
I'm trying to learn if there is a way to further distinguish that the subject is a particular resource type (for example, Patient versus Device)
Edit: source -- https://www.hl7.org/fhir/search.html#reference
Michele Mottini (Nov 06 2019 at 18:10):
GET [base]/Observation?patient:identifier=http://acme.org/fhir/identifier/mrn|123456
goes for only Patient
Michele Mottini (Nov 06 2019 at 18:10):
More generally you can use chained searches: GET [base]/Observation?subject:Device.identifier=http://acme.org/fhir/identifier/mrn|123456
Michele Mottini (Nov 06 2019 at 18:11):
(Note though that search by identifier are rarely implement, chained searches a bit more)
Last updated: Apr 12 2022 at 19:14 UTC