Append a new value in MSH

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Append a new value in MSH

  • Creator
    Topic
  • #54980
    Albert Sinha
    Participant

      MSH-3.2 Sending Application/UniversalID

      MSH-4.2 Sending Facility/UniversalID

      MSH-5.2 Receiving Application/UniversalID

      MSH-6.2 Receiving Facility/UniversalID

      what is the best approach to append this UniversalID  in these fields as subfields in an ADT message. need some suggestion and help from the experts.

    Viewing 3 reply threads
    • Author
      Replies
      • #83665
        Jim Kosloskey
        Participant

          Using Xlate?

          So you want |SendingApp^UniversalID| ?

          What version of HL/7?

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

        • #83666
          Albert Sinha
          Participant

            HL7 2.5.1  using XLATE or TCL  whatever will work best.

          • #83667
            Albert Sinha
            Participant

              Yes that is correct sendingapp^universalID  for all the other MSH fields as I listed.

            • #83668
              Jim Kosloskey
              Participant

                Assuming the UniversalID is a literal (I am using App and UniversalID as literals here).

                in an Xlate (along with other Actions to populate the reset of the message)

                COPY

                =App             –> 0(0).MSH(0).#3.[0]     <- This sets the first component

                =UniversalID  –> 0(0).MSH(0).#3.[1]     <- This sets the second component

                Then do the same for the other MSH fields.

                If you already have an Xlate add these Actions in the appropriate place. If you do not have an Xlate, then you will need to build out the rest of the message with appropriate Xlate Actions.

                How fast depends on how much of an Xlate already exists and what you need to do if it does not exist.

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

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