We have a complex process that takes a textual finding from a radiology result from an OBX and applies formatting to it. In the xlate when we find "Findings:" at the beginning of an OBX, we flip OBX-3 from &GDT to &IMP so it files in the correct item in Epic. The problem is that the simple xltp that does the searching isn't always working. It works consistently in a Tcl test, but when I resend the message to the beginning of the route, the resulting message still has the &GDTs, a clear sign that the XLTP didn't work
Here are a few examples of the contents of the OBX5 that fail...
Findings: Blood Pressure Response to Stress: The patient
Findings:. Exam Quality/Artifacts/Incidental The overall quality of
Findings: Perfusion LV: The perfusion images are normal without Findings:
The xlate grabs this string and throws it into a variable that is passed into the following code...
lassign $xlateInVals obx
set xlateOutVals [string match -nocase "Findings:*" $obx]
Out of about 50 messages yesterday, this code returned 1 to the xlate exactly 0 times. Grrr. Thinking that the xlate may be tripping up on the string match, I decided to try the more resource intensive regexp as follows...
lassign $xlateInVals obx
set xlateOutVals [regexp -- "^Findings:" $obx]
Still no dice. what am I missing?