Multiple Changes to outgoing HL7 message

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Multiple Changes to outgoing HL7 message

  • Creator
    Topic
  • #48191
    Ariba Jones
    Participant

    I have been asked by the receiving system to make several changes to the ADT messages that I will send out to them.  I am not sure how to approach this.  I am not a TCL writer.  I have not written a TCL script before.  I am wondering if there is another way that I could perform these changes without having to write a TCL script or if a TCL script is required, does anyone have one already out there?

    The following changes need to be made:

    PID, 3  eliminate all but 3.1 portion (including sub-component separators)

    PID,17 eliminate all but 17.1 portion

    PID,18 eliminate all but 18.1 portion

    PV1,18  eliminate all but 18.1 portion

    SSN should not include the -‘s (dashes).

    Can anyone help?  Does anyone have a TCL script, if necessary?

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

      Ariba,

      You should only need Tcl for the last issue (assuming you are using an Xlate). Everything else should be accomplishable within your Xlate.

      I am certain many folks have various Xlate Tcl scripts to remove the dashes from the SSN.

      If you want to discuss this off line email me at michiliman@comcast.net

      Jim Kosloskey

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

    • #57964
      John Perks
      Participant

      You can remove the dashes in an xlate COPY with minimal tcl code in the pre Input/Output panel:

      regsub -all {-} [lindex $xlateInVals 0] {} xlateOutVals

      It’s still tcl, but at least it is not an entire proc.

      John Perks

      jjp1576@bjc.org

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10