Announcement

Collapse
No announcement yet.

HL7 Parsing

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

  • HL7 Parsing


    Does anyone know why Mirth is stripping away the PVs in this message?

    I have a A01 of:

    MSH|^~\&|ADTOUT|THHBP||A01-I|200612151145||ADT^A01|PLW21203296471051291|P|2.2 |||AL|NE
    EVN|A01|200612141456||ADM|SS1027^REG ADM^SUPERVISOR
    PID||00000591|01300082^^^MRENTR||FERRARI^TESTAROSS A||19850715|M||6|512 HORSEPOWER CIR^^PLANO^TX^75025|160|(972)123-4567|(214)987-6543|IT|S|CA|000200100|321654987
    PD1|||THHBP||||3||||B|Y
    NK1|1|FERRARI^MODENA|33|512 HORSEPOWER CIR^^PLANO^TX^75025|(972)123-4567||N
    NK1|2|FERRARI^MARANELLO|S||||S||||R|||||19620822
    NK1|3|FERRARI^MODENA|33|512 HORSEPOWER CIR^^PLANO^TX^75025|(972)123-4567||E
    PV1|||4M^0418^0418A|2^I|||31^GABLE^DENNIS^R|||CAD| |||1||B|31^GABLE^DENNIS^R|I||P||PLS-2~DNA-Y|||||||||||||||||THHBP||2|||200612141400||||||||3 1^GABLE^DENNIS^R
    PV2||P
    OBX|1|ST|^^^NPP^NOTICE OF PRIVACY PRACTICES^PLW-HL7||Y|||||||||20061214
    OBX|2|ST|^^^ABC^ASSIGN BENEFITS^PLW-HL7|||||||||||20061214
    OBX|3|ST|^^^CLCGF^CLIENT CHANGEABLE FLAGS^PLW-HL7||~Y
    OBX|4|ST|^^^LRRF^REG REQUIRED FLAGS^PLW-HL7||~~~IT~~2
    GT1||1101|FERRARI^TESTAROSSA||512 HORSEPOWER CIR^^PLANO^TX^75025|(972)123-4567||19850715|M||18|321654987||||FERRARI|1879 TESTAROSSA BLVD^^DALLAS^TX^75252|(972)465-9872||F|||||||||||||||||||||||||||||TEST DRIVER
    IN1|1|SELF^SELF PAY|SELF|SELF PAY||||543210|||||||4|FERRARI^TESTAROSSA|18|198507 15||||||||||||||||||1234567890|||||||M|1879 TESTAROSSA BLVD^^DALLAS^TX^75252
    IN2|||FERRARI||||||||||||||||||||||||||||||||||||| ||||||TEST DRIVER||F
    UB1||||||||||||||||11^20061210
    ZLW||FERRARI|TEST DRIVER|1879 TESTAROSSA BLVD^^DALLAS^TX^75252|(972)465-9872||F|||TEST DRIVER|||19620822|||||P||||L100010|ADM|||||||||||| |3


    Translates to:

    <?xml version="1.0"?>
    <ADT_A01 xmlns="urn:hl7-org:v2xml">
    <MSH>
    <MSH.1>|</MSH.1>
    <MSH.2>^~\&amp;</MSH.2>
    <MSH.3>ADTOUT</MSH.3>
    <MSH.4>THHBP</MSH.4>
    <MSH.6>A01-I</MSH.6>
    <MSH.7>
    <TS.1>200612151145</TS.1>
    </MSH.7>
    <MSH.9>
    <CM_MSG.1>ADT</CM_MSG.1>
    <CM_MSG.2>A01</CM_MSG.2>
    </MSH.9>
    <MSH.10>PLW21203296471051291</MSH.10>
    <MSH.11>P</MSH.11>
    <MSH.12>2.2</MSH.12>
    <MSH.15>AL</MSH.15>
    <MSH.16>NE</MSH.16>
    </MSH>
    <EVN>
    <EVN.1>A01</EVN.1>
    <EVN.2>
    <TS.1>200612141456</TS.1>
    </EVN.2>
    <EVN.4>ADM</EVN.4>
    <EVN.5>SS1027</EVN.5>
    </EVN>
    <PID>
    <PID.2>
    <CK.1>00000591</CK.1>
    </PID.2>
    <PID.3>
    <CM_PAT_ID.1>01300082</CM_PAT_ID.1>
    <CM_PAT_ID.4>MRENTR</CM_PAT_ID.4>
    </PID.3>
    <PID.5>
    <PN.1>FERRARI</PN.1>
    <PN.2>TESTAROSSA</PN.2>
    </PID.5>
    <PID.7>
    <TS.1>19850715</TS.1>
    </PID.7>
    <PID.8>M</PID.8>
    <PID.10>6</PID.10>
    <PID.11>
    <AD.1>512 HORSEPOWER CIR</AD.1>
    <AD.3>PLANO</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75025</AD.5>
    </PID.11>
    <PID.12>160</PID.12>
    <PID.13>(972)123-4567</PID.13>
    <PID.14>(214)987-6543</PID.14>
    <PID.15>IT</PID.15>
    <PID.16>S</PID.16>
    <PID.17>CA</PID.17>
    <PID.18>
    <CK.1>000200100</CK.1>
    </PID.18>
    <PID.19>321654987</PID.19>
    </PID>
    <NK1/>
    <PV1/>
    <PV2/>
    <OBX/>
    <AL1/>
    <DG1/>
    <PR1/>
    <GT1/>
    <ADT_A01.INSURANCE>
    <IN1/>
    <IN2/>
    <IN3/>
    <PD1>
    <PD1.3>THHBP</PD1.3>
    <PD1.7>3</PD1.7>
    <PD1.11>B</PD1.11>
    <PD1.12>Y</PD1.12>
    </PD1>
    <NK1>
    <NK1.1>1</NK1.1>
    <NK1.2>
    <PN.1>FERRARI</PN.1>
    <PN.2>MODENA</PN.2>
    </NK1.2>
    <NK1.3>
    <CE.1>33</CE.1>
    </NK1.3>
    <NK1.4>
    <AD.1>512 HORSEPOWER CIR</AD.1>
    <AD.3>PLANO</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75025</AD.5>
    </NK1.4>
    <NK1.5>(972)123-4567</NK1.5>
    <NK1.7>
    <CE.1>N</CE.1>
    </NK1.7>
    </NK1>
    <NK1>
    <NK1.1>2</NK1.1>
    <NK1.2>
    <PN.1>FERRARI</PN.1>
    <PN.2>MARANELLO</PN.2>
    </NK1.2>
    <NK1.3>
    <CE.1>S</CE.1>
    </NK1.3>
    <NK1.7>
    <CE.1>S</CE.1>
    </NK1.7>
    <NK1.11>
    <CM_JOB_CODE.1>R</CM_JOB_CODE.1>
    </NK1.11>
    <NK1.16>19620822</NK1.16>
    </NK1>
    <NK1>
    <NK1.1>3</NK1.1>
    <NK1.2>
    <PN.1>FERRARI</PN.1>
    <PN.2>MODENA</PN.2>
    </NK1.2>
    <NK1.3>
    <CE.1>33</CE.1>
    </NK1.3>
    <NK1.4>
    <AD.1>512 HORSEPOWER CIR</AD.1>
    <AD.3>PLANO</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75025</AD.5>
    </NK1.4>
    <NK1.5>(972)123-4567</NK1.5>
    <NK1.7>
    <CE.1>E</CE.1>
    </NK1.7>
    </NK1>
    <PV1>
    <PV1.3>
    <CM_INTERNAL_LOCATION.1>4M</CM_INTERNAL_LOCATION.1>
    <CM_INTERNAL_LOCATION.2>0418</CM_INTERNAL_LOCATION.2>
    <CM_INTERNAL_LOCATION.3>0418A</CM_INTERNAL_LOCATION.3>
    </PV1.3>
    <PV1.4>2</PV1.4>
    <PV1.7>
    <CN.1>31</CN.1>
    <CN.2>GABLE</CN.2>
    <CN.3>DENNIS</CN.3>
    <CN.4>R</CN.4>
    </PV1.7>
    <PV1.10>CAD</PV1.10>
    <PV1.14>1</PV1.14>
    <PV1.16>B</PV1.16>
    <PV1.17>
    <CN.1>31</CN.1>
    <CN.2>GABLE</CN.2>
    <CN.3>DENNIS</CN.3>
    <CN.4>R</CN.4>
    </PV1.17>
    <PV1.18>I</PV1.18>
    <PV1.20>
    <CM_FINANCE.1>P</CM_FINANCE.1>
    </PV1.20>
    <PV1.22>PLS-2</PV1.22>
    <PV1.22>DNA-Y</PV1.22>
    <PV1.39>THHBP</PV1.39>
    <PV1.41>2</PV1.41>
    <PV1.44>
    <TS.1>200612141400</TS.1>
    </PV1.44>
    <PV1.52>
    <UNKNOWN.1>31</UNKNOWN.1>
    <UNKNOWN.2>GABLE</UNKNOWN.2>
    <UNKNOWN.3>DENNIS</UNKNOWN.3>
    <UNKNOWN.4>R</UNKNOWN.4>
    </PV1.52>
    </PV1>
    <PV2>
    <PV2.2>
    <CE.1>P</CE.1>
    </PV2.2>
    </PV2>
    <OBX>
    <OBX.1>1</OBX.1>
    <OBX.2>ST</OBX.2>
    <OBX.3>
    <CE.4>NPP</CE.4>
    <CE.5>NOTICE OF PRIVACY PRACTICES</CE.5>
    <CE.6>PLW-HL7</CE.6>
    </OBX.3>
    <OBX.5>Y</OBX.5>
    <OBX.14>
    <TS.1>20061214</TS.1>
    </OBX.14>
    </OBX>
    <OBX>
    <OBX.1>2</OBX.1>
    <OBX.2>ST</OBX.2>
    <OBX.3>
    <CE.4>ABC</CE.4>
    <CE.5>ASSIGN BENEFITS</CE.5>
    <CE.6>PLW-HL7</CE.6>
    </OBX.3>
    <OBX.14>
    <TS.1>20061214</TS.1>
    </OBX.14>
    </OBX>
    <OBX>
    <OBX.1>3</OBX.1>
    <OBX.2>ST</OBX.2>
    <OBX.3>
    <CE.4>CLCGF</CE.4>
    <CE.5>CLIENT CHANGEABLE FLAGS</CE.5>
    <CE.6>PLW-HL7</CE.6>
    </OBX.3>
    <OBX.5>Y</OBX.5>
    </OBX>
    <OBX>
    <OBX.1>4</OBX.1>
    <OBX.2>ST</OBX.2>
    <OBX.3>
    <CE.4>LRRF</CE.4>
    <CE.5>REG REQUIRED FLAGS</CE.5>
    <CE.6>PLW-HL7</CE.6>
    </OBX.3>
    <OBX.5>IT</OBX.5>
    <OBX.5>2</OBX.5>
    </OBX>
    <GT1>
    <GT1.2>
    <CK.1>1101</CK.1>
    </GT1.2>
    <GT1.3>
    <PN.1>FERRARI</PN.1>
    <PN.2>TESTAROSSA</PN.2>
    </GT1.3>
    <GT1.5>
    <AD.1>512 HORSEPOWER CIR</AD.1>
    <AD.3>PLANO</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75025</AD.5>
    </GT1.5>
    <GT1.6>(972)123-4567</GT1.6>
    <GT1.8>19850715</GT1.8>
    <GT1.9>M</GT1.9>
    <GT1.11>18</GT1.11>
    <GT1.12>321654987</GT1.12>
    <GT1.16>FERRARI</GT1.16>
    <GT1.17>
    <AD.1>1879 TESTAROSSA BLVD</AD.1>
    <AD.3>DALLAS</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75252</AD.5>
    </GT1.17>
    <GT1.18>(972)465-9872</GT1.18>
    <GT1.20>F</GT1.20>
    <GT1.49>TEST DRIVER</GT1.49>
    </GT1>
    </ADT_A01.INSURANCE>
    <ADT_A01.INSURANCE>
    <IN1>
    <IN1.1>1</IN1.1>
    <IN1.2>SELF</IN1.2>
    <IN1.3>SELF</IN1.3>
    <IN1.4>SELF PAY</IN1.4>
    <IN1.8>543210</IN1.8>
    <IN1.15>4</IN1.15>
    <IN1.16>
    <PN.1>FERRARI</PN.1>
    <PN.2>TESTAROSSA</PN.2>
    </IN1.16>
    <IN1.17>18</IN1.17>
    <IN1.18>19850715</IN1.18>
    <IN1.36>1234567890</IN1.36>
    <IN1.43>M</IN1.43>
    <IN1.44>
    <AD.1>1879 TESTAROSSA BLVD</AD.1>
    <AD.3>DALLAS</AD.3>
    <AD.4>TX</AD.4>
    <AD.5>75252</AD.5>
    </IN1.44>
    </IN1>
    <IN2>
    <IN2.3>
    <CN.1>FERRARI</CN.1>
    </IN2.3>
    <IN2.46>TEST DRIVER</IN2.46>
    <IN2.48>F</IN2.48>
    </IN2>
    <IN3/>
    </ADT_A01.INSURANCE>
    <ACC/>
    <UB1>
    <UB1.16>
    <CM_OCD.1>11</CM_OCD.1>
    <CM_OCD.2>20061210</CM_OCD.2>
    </UB1.16>
    </UB1>
    <UB2/>
    <ZLW>
    <ZLW.2>FERRARI</ZLW.2>
    <ZLW.3>TEST DRIVER</ZLW.3>
    <ZLW.4>
    <UNKNOWN.1>1879 TESTAROSSA BLVD</UNKNOWN.1>
    <UNKNOWN.3>DALLAS</UNKNOWN.3>
    <UNKNOWN.4>TX</UNKNOWN.4>
    <UNKNOWN.5>75252</UNKNOWN.5>
    </ZLW.4>
    <ZLW.5>(972)465-9872</ZLW.5>
    <ZLW.7>F</ZLW.7>
    <ZLW.10>TEST DRIVER</ZLW.10>
    <ZLW.13>19620822</ZLW.13>
    <ZLW.18>P</ZLW.18>
    <ZLW.22>L100010</ZLW.22>
    <ZLW.23>ADM</ZLW.23>
    <ZLW.36>3</ZLW.36>
    </ZLW>
    </ADT_A01>

  • #2
    Re: HL7 Parsing

    It seems to be putting The PV under the <ADT_A01.INSURANCE> tag but I&#039;m not sure why. Should be able to grab it from there.

    -Dave

    Comment


    • #3
      Re: HL7 Parsing

      It&#039;s a quirk in the way HAPI references certain segment groupings, Mirth will let you reference the INSURANCE segment just like any other.

      -Chris
      Chris Lang

      Comment


      • #4
        Re: HL7 Parsing

        This is a quick fix found after pasting the original message to Mirth&#039;s Transformer Template:

        1. You can get the segments properly parsed if you just delete PD1 segment.

        2. Change the version to 2.3.1 (it is 2.2 in the originally posted message) May be
        PD1 is not consistant with 2.2 ?

        Thanks

        thomas ./

        Comment

        Working...
        X