FHIR Chat · Query Encounter by Patient Identifier · hapi

Stream: hapi

Topic: Query Encounter by Patient Identifier


view this post on Zulip dsh (Dec 03 2019 at 19:05):

Does HAPI implementation allow searching Encounter by Patient Identifier e.g. this patient's internal identifier is MLKCH-LA%CERNER%654321 but _id is 181210 , so even though there exists an Encounter by ID 181215 I still cannot search it by Patient's internal Identifier MLKCH-LA%CERNER%654321 like this http://hapi.fhir.org/baseR4/Encounter?_type=Patient&identifier=MLKCH-LA%CERNER%654321 or even with escaped % symbol http://hapi.fhir.org/baseR4/Encounter?_type=Patient&identifier=MLKCH-LA%25CERNER%25654321

view this post on Zulip dsh (Dec 03 2019 at 19:06):

@Grahame Grieve ^ please chime in

view this post on Zulip Grahame Grieve (Dec 03 2019 at 19:11):

that's not a part of HAPI I work on or have any knowledge about

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:19):

i think your query is wrong as you are searching for the identifier on Encounter, but this should be searched on the Patient

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:23):

Encounter?patient.identifier=<identifier_system>|181210

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:23):

should work

view this post on Zulip dsh (Dec 03 2019 at 19:34):

@Patrick Werner Not sure if I got it right but my query is http://hapi.fhir.org/baseR4/Encounter?patient.identifier=MLKCH-LA%25CERNER%25654321|18120 and that does not work even unescaped % sign does not work http://hapi.fhir.org/baseR4/Encounter?patient.identifier=MLKCH-LA%CERNER%654321%7C18120

view this post on Zulip dsh (Dec 03 2019 at 19:35):

let me try with <identifier system> and value

view this post on Zulip dsh (Dec 03 2019 at 19:37):

no luck with that http://hapi.fhir.org/baseR4/Encounter?patient.identifier=http://caringly.tech/hospital-patient-resource-identifier|MLKCH-LA%25CERNER%25654321

view this post on Zulip dsh (Dec 03 2019 at 19:39):

even subject.identifier does not work http://hapi.fhir.org/baseR4/Encounter?subject.identifier=Patient?MLKCH-LA%25CERNER%25654321

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:39):

http://hapi.fhir.org/baseR4/Encounter?patient.identifier=http://caringly.tech/hospital-patient-identifier|
works

view this post on Zulip dsh (Dec 03 2019 at 19:40):

but that's not taking into account the actual value of the identifier

view this post on Zulip dsh (Dec 03 2019 at 19:40):

that's just limited to the system

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:40):

yes

view this post on Zulip Patrick Werner (Dec 03 2019 at 19:48):

escaping the % seems to be the problem, i guess..

view this post on Zulip dsh (Dec 03 2019 at 19:54):

I don't think that's the problem because I can fetch Patient by internal identifier just fine http://hapi.fhir.org/baseR4/Patient?identifier=MLKCH-LA%25CERNER%25654321&_pretty=true

view this post on Zulip dsh (Dec 03 2019 at 19:54):

a %sign is escaped using %25

view this post on Zulip Patrick Werner (Dec 03 2019 at 20:00):

if you use the other identifier with the simple identifier value it works: http://hapi.fhir.org/baseR4/Encounter?patient.identifier=http://new-republic.gov/galactic-citizen-identifier|000000000

view this post on Zulip Patrick Werner (Dec 03 2019 at 20:03):

could you file an issue on GH for this bug?

view this post on Zulip dsh (Dec 03 2019 at 20:42):

ok

view this post on Zulip dsh (Dec 03 2019 at 21:01):

@Patrick Werner here it is https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/66


Last updated: Apr 12 2022 at 19:14 UTC