FHIR Chat · Search via 2 resources · implementers

Stream: implementers

Topic: Search via 2 resources


view this post on Zulip Mxh (Oct 10 2019 at 13:14):

Hi everybody,
i want to search all ServiceRequest or Procedure from a special date in one query. Is something like this possible?

view this post on Zulip Yunwei Wang (Oct 10 2019 at 13:22):

for a single patient? I will just send two search requests.

view this post on Zulip Mxh (Oct 10 2019 at 13:35):

Hi, no not for a single Patient. I want to have all SR or Procedures which accoured on the same day in a single request

view this post on Zulip Yunwei Wang (Oct 10 2019 at 13:44):

Why not two requests?

view this post on Zulip Mxh (Oct 10 2019 at 13:56):

i want to recieve a list where i only have to filter the results and i want to use paging

view this post on Zulip Yunwei Wang (Oct 10 2019 at 14:13):

I think you can use Bundle and add two search queries as batch.

view this post on Zulip Lloyd McKenzie (Oct 10 2019 at 14:35):

You could also post the search to the root endpoint and then constrain _type to ServiceRequest,Procedure

view this post on Zulip Lloyd McKenzie (Oct 10 2019 at 14:35):

(Though not a lot of servers will support that)

view this post on Zulip René Spronk (Oct 12 2019 at 13:29):

Wouldn't a Bundle with 2 queries in it result in a response Bundle which itself contains two Bundles, one for each search action? (just for clarification..)

view this post on Zulip Lloyd McKenzie (Oct 12 2019 at 15:14):

Yes


Last updated: Apr 12 2022 at 19:14 UTC