Announcement

Collapse
No announcement yet.

Delimited HL7!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Best Regards,
    Alex Neiva

  • #2
    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!
    Best Regards,
    Alex Neiva

    Comment

    Working...
    X