Converting T to & in ADT message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Converting T to & in ADT message

  • Creator
    Topic
  • #48794
    Ariba Jones
    Participant

      Star sends T instead of the ampersand(&) in the HL7 messages.

    Viewing 13 reply threads
    • Author
      Replies
      • #59711
        Barbi
        Participant

          Here is the code I am using:

          regsub -all {\T\$} $xlateInVals {&} xlateOutVals

          I need to change the T to and & in a result message.  

          thanks

          Barbi

        • #59712
          Ariba Jones
          Participant

            Thanks, Barbi.  I will try this and see what happens.

            Ariba

          • #59713
            Anonymous
            Participant

              Put this tps in the outbound otherwise the message will be truncated since “&” is the special character.

              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

            • #59714
              Ariba Jones
              Participant

                Are you saying to put this as the TPS Outbound Data on the Outbound tab of the outbound thread?

                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

              • #59715
                Jim Kosloskey
                Participant

                  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.

                • #59716
                  Ariba Jones
                  Participant

                    Jim,

                    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

                  • #59717
                    Jim Kosloskey
                    Participant

                      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.

                    • #59718
                      Ariba Jones
                      Participant

                        Jim,

                        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

                      • #59719
                        garry r fisher
                        Participant

                          Its the HL7 committee’s fault for using & as a special character. I don’t know about you but I use this a common abbreviation for ‘and’ on a regular basis and have done for nearly 30 years since somebody introduced it to me:-)

                          Regards

                          Garry

                        • #59720
                          Jim Kosloskey
                          Participant

                            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.

                          • #59721
                            Anonymous

                              Ariba, which Cerner product are you using?  Millennium Open Engine supports standard escaped characters in most fields. The properties ENABLEESCAPES=”1″ (true) and ESCAPEDELIMITER=”” must be applied to the inbound comm server.  Use the OEN_PROC_VIEW utility to apply the properties. Millennium OE also supports variable HL7 message delimiters with the HL7DELIMS property, with default being

                            • #59722
                              garry r fisher
                              Participant

                                Sorry Jim,

                                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

                              • #59723
                                Jim Kosloskey
                                Participant

                                  Garry,

                                  My apologies for misinterpreting your post.

                                  Jim Kosloskey

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

                                • #59724
                                  Ariba Jones
                                  Participant

                                    David,

                                    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

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