FHIR Chat · POST bundle · hapi

Stream: hapi

Topic: POST bundle


view this post on Zulip Hannes Ulrich (Nov 10 2016 at 16:40):

Hi all, I'm trying to POST a bundle containing various resources in a single transaction. But the server's response is:

<issue>
    <severity value="error"/>
    <code value="processing"/>
    <diagnostics value="Unable to store a Bundle resource on this server with a Bundle.type of: transaction"/>
</issue>

Is the bundle transaction implemented or what I’m doing wrong? The web interface of the JPA is offering the possible to paste a Bundle right there. What is the magic I’m missing?
Thanks in advance

view this post on Zulip David Hay (Nov 10 2016 at 19:59):

Which server and what Url?

view this post on Zulip Hannes Ulrich (Nov 11 2016 at 10:17):

I tried it with the HAPI JPA example server and the Furore Spark as well. I posted on www.example.org/fhir/Bundle

view this post on Zulip James Agnew (Nov 13 2016 at 20:01):

If you're trying to submit a transaction, you need to post that to the root of the server, i.e. to
http://fhirtest.uhn.ca/baseDstu3/
..and not..
http://fhirtest.uhn.ca/baseDstu3/Bundle

POSTing a bundle to the root of the server tells the server to process the bundle as a transaction (or batch depending on the Bundle.type value). On the other hand, POSTing it to /Bundle tells the server to save the bundle as-is, which you can only do with certain types of bundles (i.e. document)

If you're using HAPI's web testing UI, just use the transaction box right on the home page.

view this post on Zulip Hannes Ulrich (Nov 14 2016 at 10:33):

thanks!


Last updated: Apr 12 2022 at 19:14 UTC