Replies: 1 comment 1 reply
-
I didn’t use FHIR so far but I see in your settings that in the 2nd channel the inbound message is of type HL7 (is converted to XML with root node name "HL7Message", the one in your error message) and you want FHIR as outbound which requires is a different payload. You need to do the conversion, Mirth doesn‘t do it for you automatically. When I remember my early steps with Mirth I’ve had the same expectation as you: HL7 inbound to JSON outbound - won’t work unless you convert in the transformer on your own. Also see: HL7 to FHIR examples: http://www.mirthcorp.com/community/wiki/plugins/servlet/mobile#content/view/36504968 And for ORU: https://forums.mirthproject.io/forum/mirth-connect/support/17913-hl7-to-fhir-observations For the XML to JSON conversion: http://javadocs.mirthcorp.com/connect/3.6.0/user-api/index.html?com/mirth/connect/userutil/XmlUtil.html Example: var jsonString = XmlUtil.toJson(xmlString); |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm using Mirth 3.11 and I would like to feed a HAPI FHIR server with an OBR HL7v2.6 message.
I have 2 channels, 1 to receive the ORU-R01 that Write the HL7 into a file and then Send the HL7 message to the second channels that create a FHIR resource to be send it to HAPI FHIR.
The Destination shows the following error:
And the response is:
I don't know what I'm doing wrong, and I've been trying different combinations of inbound/outbound data types without success.
My inbound/outbound data types configurations are:
Beta Was this translation helpful? Give feedback.
All reactions