Stream: implementers
Topic: RelatedPerson patient identifier reference
Trond Klakken (Mar 10 2020 at 14:27):
Hi! I'm trying to search the patient field in RelatedPerson. I'm populating the patient reference field with an identifier, but when trying to search for http://hapi.fhir.org/baseR4/RelatedPerson?patient:identifier=12345678911 return any hits in hapi or vonk. (http://hapi.fhir.org/baseR4/RelatedPerson/640779)
I also tried this for Observation.subject, see: http://hapi.fhir.org/baseR4/Observation/640788.
Search I thought would work, and no error messages: http://hapi.fhir.org/baseR4/Observation?subject:identifier=12345678911
Edit: I've tried search with the system too, without avail. (http://hapi.fhir.org/baseR4/Observation?subject:identifier=urn:oid:2.16.578.1.12.4.1.4.1|12345678911)
More reading:
https://www.hl7.org/fhir/search.html#reference
https://www.hl7.org/fhir/references.html#logical
EDIT 2:
I do know we could use _includes and _revincludes to slove this using Patient/<id> reference, but since you cant minimize the data _elements fetched for include and revinluces we would like to ban them in our first version.
Lloyd McKenzie (Mar 10 2020 at 14:55):
The :identifier qualifier is relatively new and not widely supported. (Most systems try hard to be RESTful, which means referencing by URLs, not identifiers.) The fact you get no errors from a search doesn't mean it did what you wanted - always check the self link to see what search actually got executed. Default behavior for most servers is to ignore the parameters they don't support/don't recognize.
René Spronk (Mar 10 2020 at 15:46):
chained parameters would do the trick I guess: http://hapi.fhir.org/baseR4/RelatedPerson?patient.identifier=12345678911
Trond Klakken (Mar 11 2020 at 09:31):
Thanks for the clarifications :)
Last updated: Apr 12 2022 at 19:14 UTC