FHIR Chat · Can we Get Multiple resources at one single API call Client · implementers

Stream: implementers

Topic: Can we Get Multiple resources at one single API call Client


view this post on Zulip Karimulla (May 30 2017 at 07:05):

Hi,
Is there any way to get all Locations, Organization , and etc (Multiple resources) in One single call?
Instead of doing multiple calls?

view this post on Zulip Grahame Grieve (May 30 2017 at 07:07):

look at the following options:
- cross resource search - see http://build.fhir.org/http.html#vsearch
- batch - see http://build.fhir.org/http.html#transaction
- _include - see http://build.fhir.org/search.html#include
- graphql - see http://wiki.hl7.org/index.php?title=FHIR_and_GraphQL (not part of the formal spec yet)

view this post on Zulip Karimulla (May 30 2017 at 08:38):

Thank you Grahame Grieve
Can you please tell me how to construct url for batch operations

view this post on Zulip Grahame Grieve (May 30 2017 at 08:49):

POST [base] - there is no URL other than the base URL

view this post on Zulip Karimulla (May 30 2017 at 11:27):

Hi
I tried like example in shown in
http://build.fhir.org/bundle-request-medsallergies.json.html

I am getting below error:
"com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '{' (code 123) in prolog; expected '<'\n at [row,col {unknown-source}]: [1,1]"

Can you please tell me what mistake have done ?

view this post on Zulip Lloyd McKenzie (May 30 2017 at 14:59):

Are you declaring a mime type of XML and sending JSON?


Last updated: Apr 12 2022 at 19:14 UTC