FHIR Chat · OperationOutcome in a bundle? · implementers

Stream: implementers

Topic: OperationOutcome in a bundle?


view this post on Zulip Adam Hatherly (Dec 20 2017 at 14:49):

Hi, if I do a restful search operation and an error occurs, should the OperationOutcome that is returned be wrapped in a bundle (for consistency with result returned from a successful search), or should I just get an unwrapped OperationOutcome back? I've read through the relevant parts of the spec but it seems ambiguous on this point?

view this post on Zulip Lloyd McKenzie (Dec 20 2017 at 15:58):

If the operation fails entirely, you return just an OperationOutcome. If it succeeds, you may get back a Bundle that may have an OperationOutcome that conveys warnings.

view this post on Zulip Adam Hatherly (Dec 20 2017 at 16:22):

Brilliant - thanks. I suspected that might be the case but it wasn't explicit in the spec.


Last updated: Apr 12 2022 at 19:14 UTC