web stats
Multiple RXE segments to XML - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-14-2017, 08:08 PM
bluechen bluechen is offline
What's HL7?
 
Join Date: Aug 2017
Posts: 5
bluechen is on a distinguished road
Default Multiple RXE segments to XML

I am a beginner, have the following question.

I receive a message with multiple RXE segments and need to transfer to whole message to XML string.

MSH|^~\&|HospitalA|CentralPharm|SS|HL7GATE|2017081 1104340|56/865321|RDE^O01|2017081110434068;5061759|P|2.2
PID|||0001195214||Blue Mary||19530410|M
PV1|||0417^^016^^575337_104215^^^^Dept1
ORC|NW|496905092
RXE|^^^201708110000^201708112359^4^^^^1600|Y000000 15125|||||^0.2g&P.O|||1|||||||||||||||||||UD
RXE|^^^201708120000^201708122359^4^^^^1200|Y000000 12468|||||^300.0mg&P.O|||3|||||||||||||||||||UD
RXE|^^^201708120000^201708122359^4^^^^0800|Y000000 03227|||||^500.0mg&P.O|||1|||||||||||||||||||UD
RXE|^^^201708120000^201708122359^4^^^^0800|Y000000 01070|||||^5.0mg&P.O|||1|||||||||||||||||||UD
R

the outbound XML string format should be

<MSH>
<PID>
...
</PID>
<PV1>
...
</PV1>
<ORC>
...
</ORC>
<RXE_LIST>
<RXE>
...
<RXE>
<RXE>
...
<RXE>
<RXE>
...
<RXE>
<RXE>
...
<RXE>
</RXE_LIST>
</MSH>

Can anybody help me?


Thank you.
Reply With Quote
Reply

Tags
multiple, 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 01:15 AM.


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