Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Delimited HL7! (http://www.mirthcorp.com/community/forums/showthread.php?t=215915)

AlexNeiva 04-19-2016 07:00 AM

Delimited HL7!
 
Mirth Version: 3.3.2.7911
Java Version: 1.8.0_77

Hi,
i'm trying to delimited a HL7 message that i received. I put as "column delimiter" the character "|" and "record delimiter" the character "\n". When i received the HL7 message i then serialized it to XML and the output i get is something like that:

<?xml version="1.0" encoding="utf-8"?>
<delimited>
<row>
<column1>MSH|^~\&amp;|test||test||20160419101232|| ADT^A08|MSG-20160419-101232-0202|P|2.7.1</column1>
</row>
<row>
<column1>PID|1|||||||||||||||||</column1>
</row>
<row>
<column1>PV1|1|||||||||||||||||||||||||||||||||||| |</column1>
</row>
<row>
<column1>NK1|||||||||||||||||||||||||||||||||||</column1>
</row>
</delimited>

and what i want is:

<?xml version="1.0" encoding="utf-8"?>
<delimited>
<row>
<column1>MSH</column1>
<column2>^~\&amp;</column2>
<column3>test</column3>
<column4></column4>
<column5>test</column5>
...
</row>
<row>
<column1>PID</column1>
<column2>1</column2>
...
</row>
</delimited>

I've tryied the "column delimiter" as "\|" as "\|\" as "\F\"... i have no ideas!

Thanks

AlexNeiva 04-19-2016 07:12 AM

I just found out a solution! There is no need to use delimited tex, it works if i receive HL7 as Raw and then convert it to XML, and it works like i desire ;)

Sorry for the post!


All times are GMT -8. The time now is 04:06 PM.

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