Search by identifier's system and code

166 views
Skip to first unread message

Artem Sopin

unread,
Apr 10, 2017, 9:42:24 PM4/10/17
to HAPI FHIR
Hi,

FHIR Spec has info about an ability to search by identifier's system. Here is the link: https://www.hl7.org/fhir/search.html#token

They say this syntax should work:

  • [parameter]=[system]|[code]: the value of [code] matches a Coding.code or Identifier.value, and the value of [system] matches the system property of the Identifier or Coding
  • [parameter]=[system]|: any element where the value of [system] matches the system property of the Identifier or Coding


 I tried to POST

 <EligibilityRequest>
<identifier>
<system value="SYSTEMA" />
<value value="12345"/>
 </identifier>
</EligibilityRequest>

and then to query 


and


but it returns error code 400 and empty payload.

Should this work?

Thanks,
Artem

cartha...@gmail.com

unread,
Apr 10, 2017, 10:52:47 PM4/10/17
to HAPI FHIR
Hi,

1. What version of HAPI FHIR are you using?
2. Are you using DSTU2 or STU3?
3. Instead of the pipe '|' symbol, can you try using '%7c' instead? e.g. http://localhost:8080/hapi-fhir-jpaserver-example/baseDstu3/EligibilityRequest?identifier=SYSTEMA%7c12345

Artem Sopin

unread,
Apr 11, 2017, 1:49:10 PM4/11/17
to HAPI FHIR, cartha...@gmail.com
I am on the latest STU3 version. I do not know how I missed checking pipe's code instead of pipe :) I tried '%7c' now and it worked! Thank you so much!
Reply all
Reply to author
Forward
0 new messages