Reply To: adding space to phone number in frl from hl7

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf adding space to phone number in frl from hl7 Reply To: adding space to phone number in frl from hl7

#56998
Charlie Bursell
Participant

    Let me get on my soapbox again  ðŸ™‚

    XlateInVals and XlateOutVals are lists and should be treated as such!!

    With that said.  Try this

    # if phone number less than 10 characters, leave as is

    set inph [lindex $xlateInVals 0]  ;# Remove from list contex

    if {[string length $inph] >= 10} {

         regsub -all — {-} $inph {} inph

         regsub — {(…)(…)} $inph {(1)2-} inph

         set xlateOutVals

      }

      Make sure the FRL field receiving this is at least 13 characters wide

      Charlie