web stats
Mirth Community - View Single Post - Delimited HL7!
Thread: Delimited HL7!
View Single Post
  #1  
Old 04-19-2016, 07:00 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 280
AlexNeiva is on a distinguished road
Exclamation 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
Reply With Quote