FHIR Chat · Help with SearchParameter · hapi

Stream: hapi

Topic: Help with SearchParameter


view this post on Zulip Natasha Singh (Jan 16 2020 at 17:30):

Hello,

I am having trouble getting a simple string type search parameter to work. I’ve tried testing using HAPI R4 at http://hapi.fhir.org/baseR4

Here’s what I did:

  • Loaded Patient StructureDefinition, Patient race extension, and Patient race search parameter (see attached) into server
  • Loaded a Patient resource using the race extension set to Asian (see attached)
  • Executed the query: GET /Patient?race=Asian

The total resources returned is always 0.

Could someone please help me figure out what I’m doing wrong?

patient-sd.json patient-race-str-ext.json patient-race-initial-sp.json patient.json

Thank you!

view this post on Zulip Jens Villadsen (Jan 16 2020 at 17:52):

pasted image

view this post on Zulip Jens Villadsen (Jan 16 2020 at 17:53):

you did nothing wrong

view this post on Zulip Jens Villadsen (Jan 16 2020 at 17:55):

@Natasha Singh - AFAICR, the actual 'installation' of SearchParameters happens asynchronously meaning that the SearchParameter wont be available immediately - unless you are in control of the server itself which gives you the possibility to force a refresh

view this post on Zulip Natasha Singh (Jan 16 2020 at 20:42):

@Jens Villadsen Ah I completely forgot about that! Thank you! I'm actually using SmileCDR so I can probably force a refresh. Just have to figure out how to do it. Thank you!

view this post on Zulip Jens Villadsen (Jan 16 2020 at 21:11):

You do that on the SearchParamRegistry instance


Last updated: Apr 12 2022 at 19:14 UTC