a little tcl help

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf a little tcl help

  • Creator
    Topic
  • #50683
    Kevin Crist
    Participant

      i am sending assigned patient location to a system that needs the bed location to look like this 4E^412-2^^. Currently it is 4E^412^2. I know i could copy over subfields but this is for orders in hl7 2.2 and there is only the 0. How would i do this using a little tcl?

      Thanks in advance.

    Viewing 2 reply threads
    • Author
      Replies
      • #67088
        Gary Atkinson
        Participant

          You don’t need to use tcl.  Just concat the .[1] and .[2] with a ‘-‘ in a xlate.  I believe even if your variant does not have the sub fields it should still work.

        • #67089
          Tom Rioux
          Participant

            Kevin,

            Gary is right.  I have double checked it on my xlate that uses 2.2.  You can do it in the xlate without need for tcl.

            Tom Rioux

          • #67090
            Kevin Crist
            Participant

              i see. Wasnt aware of that, but now i know. Worked like a charm.

              Thanks guys.

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