web stats
Native XML to ER7 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2014, 12:00 PM
smetz02 smetz02 is offline
Mirth Newb
 
Join Date: Feb 2013
Posts: 23
smetz02 is on a distinguished road
Default Native XML to ER7

Hi everyone,

I am brand new to Mirth and would like to know how to most easily transform an HL7 XML message, into ER7, pipe delimited format. There's an example of the XML format I'm using below, which has been truncated to exclude any PHI. This content is being delivered to a Channel with a Connector Type of Channel Reader. I would like to deliver this content to an LLP Sender Destination, in pipe-delimited format, without having to apply field by field mapping. Is there a way to just transform an entire XML message into it's equivalent ER7 format?

Thanks so much!

<ADT>
<MSH>
<MSH.1>|</MSH.1>
<MSH.2>^~\&amp;</MSH.2>
<MSH.7>
<TS.1>201402180920</TS.1>
</MSH.7>
<MSH.9>
<MSG.1>ADT</MSG.1>
<MSG.2>A08</MSG.2>
</MSH.9>
<MSH.10>48151</MSH.10>
<MSH.11>
<PT.1>T</PT.1>
</MSH.11>
<MSH.12>
<VID.1>2.3</VID.1>
</MSH.12>
</MSH>
....
Reply With Quote
  #2  
Old 03-20-2014, 12:07 PM
smetz02 smetz02 is offline
Mirth Newb
 
Join Date: Feb 2013
Posts: 23
smetz02 is on a distinguished road
Default

I forgot to mention that this is for Mirth Connect 2.2.1.5861
Reply With Quote
  #3  
Old 03-20-2014, 12:30 PM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

If that's following the correct XSD, you can just use the HL7 strict parser. Inbound data type XML (strip namespaces disabled), outbound data type HL7 v2.x with Use Strict Parser enabled.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #4  
Old 03-21-2014, 07:37 AM
smetz02 smetz02 is offline
Mirth Newb
 
Join Date: Feb 2013
Posts: 23
smetz02 is on a distinguished road
Default

Thank you.
Reply With Quote
Reply

Tags
er7, serializer, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation