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?
相关问题
- Illegal to have multiple roots (start tag in epilo
- Newtonsoft DeserializeXNode expands internal array
- how to use special characters like '<'
- XML - XSLT - document() function inside count() fu
- Invoking Mirth Connect CLI with Powershell script
相关文章
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Directly signing an Office Word document using XML
- When sending XML to JMS should I use TextMessage o
- Fragment Content Overlaps Toolbar and Bottom Navig
- Getting “Error: Missing Constraints in ConstraintL
- xslt localization
- Upgrading transaction.commit_manually() to Django
You probably want to use XSLT, but the actual code required will depend on your database schema and how it's converted to XML. Solving YOUR specific conversion problem is beyond the guidelines for StackOverflow questions unless you can make the question MUCH more specific (i.e. "I did X, expecting Y and got Z instead).
There appear to be many products that will do this type of conversion. I found a lot of hits Googling for "xml to HL7". I suggest you start there.
I am converting XML into hl7 using sample xml data, you can use your own. You can paste the below code in soure transformer:
Dont forgot to create a HL& template in source outbound
sample XML
In the channel Summary tab
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.
On the Source tab click Edit Transformer on the left sidebar
In the Edit Transformer window on the left select the Message Templates tab.
You can load sample files into the Inbound and Outbound templates using the little folder icons.
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.