FHIR Chat · Searching · implementers

Stream: implementers

Topic: Searching


view this post on Zulip Andrew Broadbent (Jan 11 2017 at 12:11):

Hi there, this is more of a hapi specific question, but I'm not seeing much movement in that stream and though perhaps someone here might have an idea.

I have an instance of hapi in it's out of the box configuration, I've uploaded a bunch of profiles, and then uploaded about 370,000 instances of Basic which have their Basic.meta.profile set accordingly. I'm trying to search for all instances of Basic with a given profile using the following url:
{{URL}}/Basic?_profile=http://stelar.org/StructureDefinition/stelar/profile/questionResponse'

The problem is that I always get a 504 gateway timeout returned. I didn't really think 370,000 instances would be too many, and I figured something like that should work out of the box.

Is there a standard way of either increasing the timeout of a call, or having a way of keeping it alive, which I haven't seen in the spec?

view this post on Zulip Grahame Grieve (Jan 11 2017 at 18:35):

Sounds like a missing index to me. Timeout is a client thing,

view this post on Zulip Lloyd McKenzie (Jan 11 2017 at 21:09):

@James Agnew Thoughts?

view this post on Zulip Juddi (Mar 24 2022 at 18:47):

Hi all,

Anyone know of a way to search for CarePlans, and include all resources referenced in CarePlan.activity.reference AND CarePlan.activity.outcomeReference?. /CarePlan/_search?_id=<CarePlanId>&_include=CarePlan:activity-reference returns the CarePlan and all activity references, but is there anyway to also include the outcomeReferences in the same query? _include=CarePlan.outcomeReference doesn't work since it's not a CarePlan search parameter. All the CarePlan.outcomeReferences in this case reference Encounter resources, if that helps. Not sure if there is a fancy way to do a _revinclude or if :iterate can match based on matching resources and not just the base resource.

Thanks!

view this post on Zulip Lloyd McKenzie (Mar 24 2022 at 19:26):

You'd have to define your own custom SearchParameter and have the server support it (and support doing _include with it). You might want to submit a change request suggesting that for a standard SearchParameter in R5+


Last updated: Apr 12 2022 at 19:14 UTC