Homepage › 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
July 11, 2005 at 3:49 pm
#56998
Charlie Bursell
Participant
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