OBX|5|CE|^^^CFZ^CEFAZOLIN^LB||S^S^REACTION~<=2^<=2^MIC|||S|||F|||201203121124|ML^MAIN LAB^L|
I’ve created the following CONCAT action in my xlate.
SOURCE
1(0).1(%g2).1(%g3).OBX(0).#3(0).[4]
=+
1(0).1(%g2).1(%g3).OBX(0).#5(1).[0]
=+
1(0).1(%g2).1(%g3).OBX(0).#5(0).[0]
DESTINATION
1(0).1(%g2).1(%g3).OBX(0).#3(0).[1]
I’ve included the following pre-proc TCL snippet in the action.
set output [split $xlateInVals +]
set xlateOutVals “[format “%-40s %-20s %-20s” [lindex $output 0] [lindex $output 1] [lindex $output 2]]”
echo $xlateOutVals
The echo shows that my xlateOutVals are nicely spaced the way I’d want them to be, but in the testing tool’s output, the new segment has stripped away the space characters.
ECHO
CEFAZOLIN <=2 S
HL7
1(0).1(2).1(4).OBX(0) : >|5|TX|CFZ^CEFAZOLIN<=2S<
Am I missing something, or am I trying to do something that violates the HL7 standard enforced by Cloverleaf.