xmlhl7mirth

Convert XML to HL7 messages using Mirth Connect


I'm working with Mirth Connect v2.0 and getting stuck on one task, transformation of XML to HL7 v3. I've connected to an Ms-Access Database (the hospital system is in Access), I've set up the channel and set the Connector Type to File Writer in the destination tab. When I deploy the channel I can see the log file is populated with the records in XML format, now I'm stuck on how to convert/transform the XML message to HL7. Any pointers out there?


Solution

  • In the channel Summary tab

    1. Click "Set Data Types" and make sure the Source inbound is set to XML and the Source outbound is set to HL7 v3 and the destination outbound is set to HL7 v3.

    2. On the Source tab click Edit Transformer on the left sidebar

    3. In the Edit Transformer window on the left select the Message Templates tab.

    4. You can load sample files into the Inbound and Outbound templates using the little folder icons.

    5. You can drag and drop nodes between the inbound and the outbound templates to create your transform.

    This is pretty standard Mirth stuff so I hope I haven't oversimplified. Hope this gets you moving in the right direction.