Message access in Xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Message access in Xlate

  • Creator
    Topic
  • #54722
    Tahir Shaikh
    Participant

      Hi,

      Is there any way to access the raw HL7 message in Xlate-TCl

      I know there is a way to access message metadata using xpmmetaget $xlateId but is any way to get the original message?

      Thanks,

      Tahir

    Viewing 2 reply threads
    • Author
      Replies
      • #82717
        Rob Lindsey
        Participant

          Are you trying to get the entire data message as it comes into the Xlate or are you trying to get the message before it ran through any TCL Procs?

        • #82718
          Tahir Shaikh
          Participant

            In more simple words, If HL7 message is coming to the inbound thread. I want to access it in the xlate tcl.

          • #82719
            Charlie Bursell
            Participant

              Two methods I used.  There may be others that are more esoteric.

              1. In an IB or pre-xlate proc store a copy in the USERDATA field of the message metadata.

              2.  In a pre-xlate proc store a copy of the message in a global or namespace variable.  I prefer namespace since it is more private.

              Unless you diddle with the interpreters, the pre-xlate proc and Xlate share the same interpreter and there fore the same globals and namespaces

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