Originally posted by Ariba Jones
I need to remove the period from the physician's middle initial in an MFN^M02 message.
Field STF-3.3 has the physician's middle initial, but with a period. The receiving system wants to have this punctuation mark removed.
I have a tcl proc used in an xlate that removes the dashes from the patient's ssn. I thought I would be able to edit that tcl proc to fit this situation. I made the change to my ssn tcl proc and attached it appropriately (with a new name) in my new xlate for this interface. When I run my xlate in the Testing Tool, it does not appear to work. I still see the period in the STF-3.3 field in the output.
Can anyone tell me what I am doing wrong here? Is there another approach I should take?
Here is my ssn tcl that is working fine in both test and production.
proc ssn_nodash {} {
upvar xlateInVals inVals xlateOutVals outVals
regsub -all -- "-" $inVals "" outVals
}
Here is my physician tcl proc (a modified version of the ssn tcl proc):
proc doc_nodash {} {
upvar xlateInVals inVals xlateOutVals outVals
regsub -all -- "." $inVals "" outVals
}
Thanks in advance.
Ariba Jones