Stream: hapi
Topic: Batch transaction
Chidamber Kumar (Oct 08 2021 at 08:15):
Hello
A quick question on batch interaction on HAPI fhir.
I'm trying to publish this simple bundle of batch type. As per FHIR spec, it should return a batch-response type bundle, having first entry as operational outcome and 2nd entry as 201 created. To surprise, it is returning operational outcome as a single response. Request and response attached. Any insights would be appreciated.
I'm sending an invalid Patient.gender. As per spec, it should fail at Patient resource validation level rather than Bundle level.
Request and response attached.
request.json response.json
Thanks
Chidamber Kumar (Oct 09 2021 at 09:04):
@Oliver Egger Do you have any insights about it ?
Patrick Werner (Oct 09 2021 at 10:54):
As the response states, your request was invalid.
Chidamber Kumar (Oct 09 2021 at 14:44):
Thanks @Patrick Werner for your response.
yes, the Patient resource is invalid. But, since it's batch type bundle, shouldn't the server send a batch response with the first entry as operational outcome for Patient and 2nd entry as successful response for other resource.
Patrick Werner (Oct 11 2021 at 13:45):
Chidamber Kumar said:
Thanks Patrick Werner for your response.
yes, the Patient resource is invalid. But, since it's batch type bundle, shouldn't the server send a batch response with the first entry as operational outcome for Patient and 2nd entry as successful response for other resource.
you are right (and i missed parts of your initial question, sorry). The hapi server should return the result in a batch-response Bundle. Having the OperationOutcome inside the response backBone element
Chidamber Kumar (Oct 19 2021 at 12:00):
@Patrick Werner Thanks for confirming that.
Patrick Werner (Oct 19 2021 at 17:51):
Feel free to create an issue against hapi
Last updated: Apr 12 2022 at 19:14 UTC