retrieve full ADT MSH.9 tag with Xlate

Clovertech Forums Cloverleaf retrieve full ADT MSH.9 tag with Xlate

  • Creator
    Topic
  • #120499
    petitPadawan
    Participant

      Hello,
      i am newbie in cloverleaf,
      I want to create an xlate which allows to retrieve all the MSH9 tag
      I can’t do it,
      But I manage to recover the fields msh9.1 then msh9.2 then msh9.3 and I concatenate everything.
      0(0).MSH(0).#9(0).[0]
      0(0).MSH(0).#9(0).[1]
      0(0).MSH(0).#9(0).[2]

      I would like to avoid the concatenation step.
      Isn’t it possible to have a command 0(0).MSH(0).#9(0).[*] or other?
      thank you

    Viewing 1 reply thread
    • Author
      Replies
      • #120500
        Jim Kosloskey
        Participant

          Do you want the HL/7 components combined without any separators? If so, then the way you are doing it is the way to do it (unless you want to use Tcl).

          Remember, in the Xlate you are referencing a parsed, structured message (HL/7). There are separators and, where identified, they will be preserved by default.

          To ‘get rid’ of them (if that is what you want to do) you have to use things other than the COPY or other move Actions.

          If you are attempting to do something else, let us know (like what the destination field is).

          If you would like to chat off-line, email me.

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

        • #120501
          Jim Kosloskey
          Participant

            To answer your specific question, the Xlate Address Path notation does not provide what you want (* as a global reference).

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

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.