FHIR Chat · How to get the correct response from a transaction Bundle · implementers

Stream: implementers

Topic: How to get the correct response from a transaction Bundle


view this post on Zulip Brian Reinhold (May 14 2021 at 12:07):

I need to get the logical ids generated by the server when I upload a transaction Bundle. However, I cannot consistently get that information in the response even if the upload itself returns a 200 response. Using the HAPI FHIR server, I can get the expected response if I include the following two headers:

     addHttpHeader("Content-Type", "application/fhir+json;charset=utf-8").
     addHttpHeader("Accept", "application/fhir+json;charset=utf-8").

If I do NOT include the 'Accept' header, I get a bunch of xml giving the features of the server.

If I now move to Graham's server and use the same two headers, I get a 200 response but I get just a huge xml document in the response, and I have no information about the logical ids.
How can I consistently get the correct transaction bundle response containing the logical ids?

I'm trying to sell the consistency of the FHIR standard here to clients so I would really like to know what I am doing wrong!!!

view this post on Zulip Lloyd McKenzie (May 14 2021 at 14:07):

What does the XML from Grahame's server say?


Last updated: Apr 12 2022 at 19:14 UTC