Stream: hapi
Topic: Exceptions with Bundle of OperationOutcomes
Tia Cummings (Feb 16 2022 at 14:12):
We have a client that wants us to return our 400 and 500 errors with a Bundle of OperationOutcomes. Any hapi exception that is thrown either takes an operationoutcome or creates one and sends it back. Is it even POSSIBLE for an exception to be returned as a bundle of OperationOutcomes? I have a feeling that it's not possible. It also doesn't seem like valid FHIR.
Tia Cummings (Feb 21 2022 at 13:33):
is anyone able to assist with this?
Kevin Mayfield (Feb 21 2022 at 15:02):
You might need to map the http codes to http://www.hl7.org/fhir/valueset-issue-type.html codes.
Many http codes like 403 have something similar in OperationOutcome, like forbidden
Tia Cummings (Feb 21 2022 at 16:10):
@Kevin Mayfield , I'm not sure if I'm understanding you correctly. How will that allow me to return a bundle of operationoutcomes for exceptions?
Last updated: Apr 12 2022 at 19:14 UTC