xlate question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf xlate question

  • Creator
    Topic
  • #51093
    Sebastien Bazile
    Participant

      I have a company sending me HL7 version 2.4 which leaves the EVN field blank. But the company receiving the message wants the EVN field to also have ADT_0A1. Does anyone have a script that can help me please?

      thank you.

      Sebastien William

      MSH|^~&|||||200907291554||ADT^A08|8971|D|2.4|||AL|NE|

      EVN||200907291554|||ZWILLIAMS^Williams^Zelda|200907290900|

      PID|1||I000000703^^^^MR^IMC~042-45-9998^^^^SS^IMC~I753^^^^PI^IMC~HUBTVI0002392^^^^HUB^IMC||JOE^MIKEY^^^^^L||19660424|M||CA|24 CENTRAL AVE^^PAWTUCKET^RI^02860||401-555-1254|||S||V00000021750|042-45-9998|

      NK1|1|SMOE^JOE|BR^BROTHER|700 EMPIRE BLVD^^BROOKLYN^NY^11213|333-456-5858|NONE|NOK|

      NK1|2|JOE^MIKEY|SP^SELF|24 CENTRAL AVE^^PAWTUCKET^RI^02860|401-555-1254||NOT|

      NK1|3|SELF|||||EMP|||TRUCK DRIVER|||SELF-EMPLOYED|||||||||||||||||||||RE|

      PV1|1|P|AA.NUCMED|EL|||ADESMAN^ADESMAN^JEROME^^^^^^^^^^XX|||||||PHY||||RCR||BC|||||||||||||||||||IMC||PRE|||200907290900|

      PV2|||||||||||||||||||||||||EL|||||||||||N|

      ROL|1|AD|AT|ADESMAN^ADESMAN^JEROME^^^^^^^^^^XX|

      ROL|2|AD|PP|DROBERTS^ROBERTS^DANIEL^D^^^^^^^^^XX|

      OBX|1|CE|ADM.REG 18^Was the patient given a metrocard?^ADM||N^NO||||||F|

      OBX|2|TX|ADM.REG 2^Proof of Identification:^ADM||Y||||||F|

      OBX|3|TX|ADM.REG 20^Date Packet Given:^ADM||20090729||||||F|

      OBX|4|TX|ADM.REG 21^Date Consent for Treatment Given:^ADM||20090729||||||F|

      OBX|5|CE|ADM.REG 22^How did you hear about Interfaith Medical Center?^ADM||NEWS^NEWSPAPER||||||F|

      OBX|6|CE|ADM.REG 23^What is the Patient’s Primary Language?^ADM||EN^ENGLISH||||||F|

      OBX|7|TX|ADM.REG 3^Proof of Address:^ADM||Y||||||F|

      OBX|8|TX|ADM.REG 4^Insurance Card:^ADM||Y||||||F|

      OBX|9|TX|ADM.REG 7^Does this clinic encounter need to be authorized?^ADM||Y||||||F|

      OBX|10|TX|ADM.REG 8^Was Consent for Treatment given to the patient?^ADM||Y||||||F|

      OBX|11|TX|ADM.REG 9^Was Acknowledgement of Patient Packet given to the Patient?^ADM||Y||||||F|

      OBX|12|TX|BAR.DEN12^Is this a Dental patient?^ADM||N||||||F|

      GT1|1||JOE^MIKEY||24 CENTRAL AVE^^PAWTUCKET^RI^02860|401-555-1254|||||SP|042-45-9998||||SELF|

      IN1|1|BCNY||BLUE CROSS OF NY|PO BOX 1407 CHURCH ST STA^^NEW YORK^NY^100081407||800-123-4567|||||||||JOE^MIKEY|SP|19660424|24 CENTRAL AVE^^PAWTUCKET^RI^02860||||||||||20090729|ZWILLIAMS||||||0125488896A|||||||M||VERIFIED|

      IN2|1|042-45-9998||||||||||||||||||||||||||||||||||||||||CA|S||||||||||||||||||||401-555-1254|

      The one on top: Version 2.4 — Should look like the bottom: Version 2.2

      MSH|^~&|||||200906291124||ADT^A08|6884|D|2.2|||AL|NE|

      EVN|A08|200906291123|||*ABS.IMC|200901010723|

      PID|1|HUBTVI0002277|I000000603|I650|EDTEST^ONE||19840728|F|||113 HALSEY STREET^^BROOKLYN^NY^11216||718-444-1234|||S||V00000017485|051-60-1681|

      NK1|1|EDTEST^LUEANDRINA|MO^MOTHER|113 HALSEY STREET^^BROOKLYN^NY^11216|718-444-1234||NOK|

      NK1|2|EDTEST^LUEANDRINA|MO^MOTHER|113 HALSEY STREET^^BROOKLYN^NY^11216|718-444-1234||NOT|

      NK1|3|UN||NONE^.^.^^.|||EMP||||||UNKNOWN|||||||||||||||||||||UN|

      PV1|1|E|AA.EDFT|ER|||ROBISAN^ROBINSON^SANDRA^^^^MD^^^^^^XX|||||||EMR||||ER||MCDHMO|||||||||||||||||||IMC||REG|||200901010723|

      PV2|||HEADACHE||||||||1||||||||||||||ER|||||||||||N|

      OBX|1|TX|ADM.GUAR^What is the Guarantor’s Date of Birth:^ADM||19840728||||||F|

      OBX|2|TX|ADM.REG 13^Financial Assistance Application:^ADM||Y||||||F|

      OBX|3|TX|ADM.REG 15^Benefit Assignments:^ADM||Y||||||F|

      OBX|4|TX|ADM.REG 2^Proof of Identification:^ADM||Y||||||F|

      OBX|5|TX|ADM.REG 3^Proof of Address:^ADM||Y||||||F|

      OBX|6|TX|ADM.REG 4^Insurance Card:^ADM||Y||||||F|

      OBX|7|TX|ADM.REG 9^Was Acknowledgement of Patient Packet given to the Patient?^ADM||Y||||||F|

      GT1|1||EDTEST^ONE||113 HALSEY STREET^^BROOKLYN^NY^11216|718-444-1234|||||SP|051-60-1681||||UN|NONE^.^.^.^.|

      IN1|1|AFFINHP||AFFINITY HEALTH PLAN|2500 HALSEY ST^^BRONX^NY^10461||||||||||||||||||||||||20090610|PROBERTS||||||SY77194W|||||||||VERIFIED|

    Viewing 8 reply threads
    • Author
      Replies
      • #68771
        Jim Kosloskey
        Participant

          Sebastian,

          COPY …MSH.#9.[1] (this is the Event Type component of the Message Type – the A08 of ADT^A08 to …EVN.#1.

          The elipses above is the address path leading the segments and the reset of the notation may not be perfect but essentially you are taking the second component of the MSH-9 field (Message/Event Type) and placing a copy in the first EVN field.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #68772
          Sebastien Bazile
          Participant

            thank you Jim, I’ve tried it and I only get a partial message with the EVN field.

            MESSAGE 1

            0(0).MSH(0)  :  >|^~&|||||200907291554||ADT^A08|8971|D|2.4|||AL|NE<

            0(0).EVN(0)  :  >|A08<

            0(0).PID(0)  :  ><

            0(0).PV1(0)  :  ><

            but not the whole message.

          • #68773
            Jim Kosloskey
            Participant

              Sebastien,

              Are you COPYing everything else (either with PATHCOPYs or individual COPYs)?

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #68774
              Sebastien Bazile
              Participant

                Did it with pathcopy but it’s not working. I just don’t know what to do now.  I’ll try to do it with copy.

              • #68775
                Jim Kosloskey
                Participant

                  Sebastien,

                  So you did PATHCOPYs for the PID, NK1, PV1, PV2, and OBX segments?

                  A PATHCOPY for the EVN won’t work since there is no EVN segment to PATHCOPY from.

                  email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                • #68776
                  Sebastien Bazile
                  Participant

                    Still getting the same result Jim, the pathcopy doesn’t work for anything but the MSH. I was able to get the A08 into the event type code but that’s from doing the COPYING.

                    thank you.

                  • #68777
                    Jim Kosloskey
                    Participant

                      Sebastien,

                      Well I don’t use PATHCOPY much myself (I primarily use individual field COPYs).

                      However, I would think PATHCOPY should work.

                      So did you have an Xlate which did create a message but without the EVN segment? If so all you need to do is add the EVN COPYs.

                      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                    • #68778
                      Sebastien Bazile
                      Participant

                        EVN segment has always been there.  It’s just the field for Event Type code that’s missing.

                      • #68779
                        Jim Kosloskey
                        Participant

                          Sebastien,

                          So if you have an Xlate that is building everything but the EVN-1 field,

                          Just add the COPY for the EVN-1 field from the MSH-9.1 component and that should not remove the other segments following the EVN

                          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

                      Viewing 8 reply threads
                      • The forum ‘Cloverleaf’ is closed to new topics and replies.