Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Message access in Xlate
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
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?
In more simple words, If HL7 message is coming to the inbound thread. I want to access it in the xlate tcl.
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