web stats
Delimited HL7! - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2016, 08: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
  #2  
Old 04-19-2016, 08:12 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 280
AlexNeiva is on a distinguished road
Default

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!
Reply With Quote
Reply

Tags
delimited, delimited text, filed separator, hl7, hl7 delimited

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 05:49 PM.


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