I have the following OBX segments: (small group of about 20/message)
OBX|11|TX|71020|| ||||||F|||20130530153358||nmiller^^^^^^52
OBX|12|TX|71020|| ||||||F|||20130530153358||nmiller^^^^^^52
OBX|13|TX|71020|| ||||||F|||20130530153358||nmiller^^^^^^52
OBX|14|TX|71020|| ||||||F|||20130530153358||nmiller^^^^^^52
OBX|15|TX|71020||Patient Name: Summer K TestLake MPI #: 0000415561 ||||||F|||20130530153358||nmiller^^^^^^52
OBX|16|TX|71020||Age: 50Years Sex: Female ||||||F|||20130530153358||nmiller^^^^^^52
OBX|17|TX|71020||Date of Birth: 1963/05/09 Accession #: 3000005837 ||||||F|||20130530153358||nmiller^^^^^^52
OBX|18|TX|71020||PCP: CC:MICHAEL
I need to get the double spaces out from OBX5 when that’s all that is in it, or just remove the entire line.
I’ve tried the following regsub script, with no luck, trying to use hex code:
set var $xlateInVals
regsub -all — {x20x20} $var “” var1
set xlateOutVals $var1
I know this should be simple, but I’m just not experienced enough to know of other options.
Anyone got suggestions?
Thanks.