COPY =CON to OBR-4.1 (use appropriate address path here).
On some releases of Cloverleaf you may need to COPY the value PREPARE CONVALESCENT PLASMA to a temp variable first and then do the IF against the temp variable.
If there could many relationships of text in OBR-4.2 to a value or set of values in OBR-4.1 then a Table would be the best bet. No IF needed then just a TABLE Action.
This reply was modified 5 years ago by Jim Kosloskey.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
We went with Jim’s suggestion of going with a table because there could be additional codes that will need to be converted. Here are the steps we took to determine if the result text was what we were looking for, and if so, to update the result code:
created a table with the result text requiring a special code in the IN side and the desired replacement result code in the OUT side. The Use Default Value is selected, and allowed to stay Null.
in the xlt enter TABLE operation, use text in OBR.4[1] as the Source, with the new table, write the Destination value to a variable
using IF operation, if the variable value is NOT null, use the variable as the Source, and COPY the value to the OBR#4[0]