Stream: implementers
Topic: Search via 2 resources
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?
Yunwei Wang (Oct 10 2019 at 13:22):
for a single patient? I will just send two search requests.
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
Yunwei Wang (Oct 10 2019 at 13:44):
Why not two requests?
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
Yunwei Wang (Oct 10 2019 at 14:13):
I think you can use Bundle and add two search queries as batch.
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
Lloyd McKenzie (Oct 10 2019 at 14:35):
(Though not a lot of servers will support that)
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..)
Lloyd McKenzie (Oct 12 2019 at 15:14):
Yes
Last updated: Apr 12 2022 at 19:14 UTC