FHIR Chat · Search by identifier · implementers

Stream: implementers

Topic: Search by identifier


view this post on Zulip 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?

view this post on Zulip Michele Mottini (Mar 10 2021 at 00:18):

Only the latter

view this post on Zulip 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.

view this post on Zulip Eric Haas (Mar 10 2021 at 02:33):

(deleted)

view this post on Zulip 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.

view this post on Zulip Lloyd McKenzie (Mar 10 2021 at 02:33):

Servers may support one and not the other.

view this post on Zulip Lloyd McKenzie (Mar 10 2021 at 02:33):

If you want to search both ways, you need to search twice.

view this post on Zulip 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.

view this post on Zulip Eric Haas (Mar 10 2021 at 02:37):

so what if you want to do it for only subject types = Patient?

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip 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