stripping out numerical data in OBR.13

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf stripping out numerical data in OBR.13

  • Creator
    Topic
  • #52748
    Jase Pribble
    Participant

      Hey all,

      I’m currently trying to see if there is a way to strip out any numerical data that comes over in the OBR.13.  I know a xlate table this can be done, but i’d preferably want to do this via a tcl script.

      Thanks.

      Jase

    Viewing 4 reply threads
    • Author
      Replies
      • #75366
        Jase Pribble
        Participant

          I meant to say, not letting the message pass through if it has numerical data in the OBR.13.  I don’t care if the numerical data is stripped, just want the message blocked or killed.

        • #75367
          David Barr
          Participant

            Yes, this can be done. Grab the value out of the message, check if it’s a number, set the disposition to KILL or CONTINUE based on your check. Which part of this are you having problems with?

          • #75368
            Josh Deere
            Participant

              Assuming you’ve placed the value of that field into a variable of name ‘obr_13’:

              Code:


              if {[string is integer $obr_13]} {
               return “{KILL $mh}”
              } else {
               # whatever non-killing magic you want here
              }

            • #75369
              Charlie Bursell
              Participant

                You should add the -strict flag to the string is command unless you want the empty string to also be true

              • #75370
                Josh Deere
                Participant

                  Charlie Bursell wrote:

                  You should add the -strict flag to the string is command unless you want the empty string to also be true

                  Good stuff, thanks Charlie.

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