Stream: implementers
Topic: Search by identifier
Elliot Silver (Mar 10 2021 at 00:00):
If I issue a search similar to this:
GET [base]/Observation?subject:identifier=http://acme.org/fhir/identifier/mrn|123456
Do we expect the results to include both Observations where Observation.subject.reference points to a Patient, etc. that have an identifier of the given value, as well as Observations where Observation.subject.identifier has the given value?
Michele Mottini (Mar 10 2021 at 00:18):
Only the latter
Elliot Silver (Mar 10 2021 at 00:30):
Can you point to where this is explained? I've read https://www.hl7.org/fhir/search.html#reference, and that isn't clear to me.
Eric Haas (Mar 10 2021 at 02:33):
(deleted)
Lloyd McKenzie (Mar 10 2021 at 02:33):
:identifier is a qualifier that searches based on Reference.identifier. ".identifier" is chaining and resolves the reference. The two are very different things.
Lloyd McKenzie (Mar 10 2021 at 02:33):
Servers may support one and not the other.
Lloyd McKenzie (Mar 10 2021 at 02:33):
If you want to search both ways, you need to search twice.
Lloyd McKenzie (Mar 10 2021 at 02:34):
There was a change request about this. We agreed to update the documentation to make that clearer in R5.
Eric Haas (Mar 10 2021 at 02:37):
so what if you want to do it for only subject types = Patient?
Eric Haas (Mar 10 2021 at 02:42):
I don't think you can stack modifiers like this .....GET [base]/Observation?subject:patient:identifier=http://acme.org/fhir/identifier/mrn|123456
Elliot Silver (Mar 10 2021 at 06:34):
Lloyd McKenzie said:
There was a change request about this. We agreed to update the documentation to make that clearer in R5.
Excellent. That was my concern.
Luis Maas (Mar 11 2021 at 18:26):
@Eric Haas
so what if you want to do it for only subject types = Patient?
why not just GET [base]/Observation?patient:identifier=http://acme.org/fhir/identifier/mrn|123456
?
Last updated: Apr 12 2022 at 19:14 UTC