Help with Escape Characters in OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Help with Escape Characters in OBX

  • Creator
    Topic
  • #49151
    Gina Borden
    Participant

      We put in a fix to change / to an Escape Character when the transcription used the wrong slash.

      # This line replaces any instances of a backslash with the HL7 escape sequence

      regsub -all \B $xlateInVals \E\ xlateOutVals

      Now the same message is coming with true Escape Characters:

      DICTATED HISTORY: E||

      which translates like this:

      E E DICTATEDE HISTORY:E EEEEE< I need to accomodate both situations, but I can’t seem to figure out how to do it. Any help would be appreciated.

    Viewing 0 reply threads
    • Author
      Replies
      • #60912
        Charlie Bursell
        Participant

          Take a look at the string map command.  You can map as many changes as you like.

          string map $var

          Where maplist is a list of pairs.  The first element of the pair is the substring or character to find while the second element is the replacement value.

          The neat thing is you do not have to escape meta charaters as you would with regsub

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