› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Converting T to & in ADT message
regsub -all {\T\$} $xlateInVals {&} xlateOutVals
I need to change the T to and & in a result message.
thanks
Barbi
Ariba
In my situation, I am getting & from HIS. when the engine takes the message, it will discard anything after the “&”. So I had to put a tps script to convert the “&” to T. Receiving systems are handling well.
Hope this helps.
reggie
Another question….I need this change to occur for any value that may come in the message that has the T. So, I don’t necessarily know where the T will appear. Will putting this proc in the TPS Outbound Data field take care of that?
Thanks,
Ariba
I would not use an xltp type Tcl script. Rather I would use a TPS script and place it in the Outbound Tps (probably pre-write).
The script would replace all occurrences of T – but why stop there? Why not make allowances for all of the control characters as outlined in the HL/7 specification?
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
I think what you are telling me is that you would put the code that Barbi suggested to me and put that in a tcl proc (Script Editor) and then attach that proc to the Outbound TPS. Is that correct?
I have not thought about all control characters as defined by HL7 because I hadn’t been asked to. I actually didn’t realize that Cerner was having an issue with the T until last week. I actually would have thought that any system that uses HL7 would be able to decipher things like this.
I am learning a lot with this project though.
Ariba
Well you could use the essence of the provided script (that is the regsub portion) However, all of the xltp type references (xlateOutVals for example) are not effective in a Tps type Tcl proc.
But yes place it in the Outbound Tps (I think pre-write).
Now please excuse me for getting on a soap box…
It is shameful that Cerner or any vendor which claims to be HL/7 compliant does not support use of the HL/7 specified escaping technique.
Personally I would try to shame the vendor into modifying their system to be compliant.
Of course that does not always work and so, luckily, we can make adaptations in Cloverleaf(R) to make up for the vendor’s shortcoming (I would remind them of those shortcomings every chance I get).
It is amazing to me how many vendors do not even know about this escaping technique much less support it.
I am off the soapbox now…
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
I totally agree with you! I have been saying this to the Cerner person from the very beginning of this project. I can’t believe some (I really should say most) of the changes that I have been asked to make so that Cerner would actually accept the HL7 messages from me.
I think it is ridiculous that Cerner doesn’t support this HL7 escaping technique.
Believe me, every time I get a chance, I will mention this to them.
Ariba
Regards
Garry
I respectfully disagree.
It really does not matter what characters you use for separators (you can define MSH-1 and 2) the possibility exists the characters could be used as data.
Knowing that, the committee wisely (in my opinion) provided for a mechanism to escape those characters.
It is the vendors who apparently are incapable of following a standard.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
My comment was tongue in cheek but it was amusing to read this as I’ve recently had the same problem with a couple of vendors.
Interestingly, one site insisted that we trap EVERY non-valid/escape character that could accidently be entered on the keyboard of the third party vendor’s system so I have a set of regsub’s for all HL7 control chars.
Regards
Garry
My apologies for misinterpreting your post.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
We are using Cerner Millenium. I don’t actually work with the Cerner portion of this though. Persons at our sister hospital do that part. I will mention this to them though.
Thanks,
Ariba