Stream: hapi
Topic: Query Encounter by Patient Identifier
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
dsh (Dec 03 2019 at 19:06):
@Grahame Grieve ^ please chime in
Grahame Grieve (Dec 03 2019 at 19:11):
that's not a part of HAPI I work on or have any knowledge about
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
Patrick Werner (Dec 03 2019 at 19:23):
Encounter?patient.identifier=<identifier_system>|181210
Patrick Werner (Dec 03 2019 at 19:23):
should work
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
dsh (Dec 03 2019 at 19:35):
let me try with <identifier system> and value
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
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
Patrick Werner (Dec 03 2019 at 19:39):
dsh (Dec 03 2019 at 19:40):
but that's not taking into account the actual value of the identifier
dsh (Dec 03 2019 at 19:40):
that's just limited to the system
Patrick Werner (Dec 03 2019 at 19:40):
yes
Patrick Werner (Dec 03 2019 at 19:48):
escaping the % seems to be the problem, i guess..
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
dsh (Dec 03 2019 at 19:54):
a %
sign is escaped using %25
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
Patrick Werner (Dec 03 2019 at 20:03):
could you file an issue on GH for this bug?
dsh (Dec 03 2019 at 20:42):
ok
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