FHIR Chat · How to retrieve Methodoutcome value? · hapi

Stream: hapi

Topic: How to retrieve Methodoutcome value?


view this post on Zulip Olivia Bellamou-Huet (Feb 12 2021 at 17:15):

Hello,
I am implementing FHIR Messaging. On the server side I received a request for a create Patient operation, created my Patient and now I would like to
create a bundle of type Message for the response. In its MessageHeader I would like to set as response.code the result of the create operation. My create operation gives me a MethodOutcome. The MessageHeader.MessageHeaderResponseComponent().setCode() expects a ResponseType.
How can I get the value of the MethodOutcome, i.e. if it succeeded or fail?


Last updated: Apr 12 2022 at 19:14 UTC