FHIR Chat · Search on Patient ID · implementers

Stream: implementers

Topic: Search on Patient ID


view this post on Zulip Liam (Nov 18 2019 at 08:18):

Hi,
Is there any query where we can perform search on PatientID.
The query should return all the patients containing that part of PatientID.

For e.g : baseurl/Patient?_id:contains=1234 should return patient having IDs 1234, 12345 , a12345 etc.

Thanks

view this post on Zulip René Spronk (Nov 18 2019 at 08:25):

If you really need this (which sounds like a strange use case to me) then you'd need to add support for a new parameter to your FHIR server. AFAIK there's no way to accomplish this using the core FHIR spec.

view this post on Zulip Lloyd McKenzie (Nov 18 2019 at 11:16):

_id is of type 'token', which means the "contains" modifier isn't available. (That can only be used for string.) So Rene is correct - you'd have to define a custom search parameter. Note that _id is roughly equivalent to a database primary key - it should not be a real-world identifier, so doing a contains search on it would definitely be uncommon.


Last updated: Apr 12 2022 at 19:14 UTC