The sending vendor is sending an ORU for transcription reports with all data in one OBX-5 separated by a ~ to seperate the fields into 80 character lines. The receiving vendor is saying that he needs br in order to break the lines in his report display.
I have the following code in an xlate that works with a : as the character to replace:
{ { OP ITERATE }
{ BASIS 1(0).1(0).1(0).OBX.#5 }
{ VAR %f1 }
{ TYPE field }
{ BODY {
{ { OP COPY }
{ ERR 0 }
{ PRE {
set var [string map
set xlateOutVals
}}
{ IN 1(0).1(0).1(0).OBX.#5(%f1) }
{ OUT 1(0).1(0).1(0).OBX.#5(%f1) }
}
}}
This will replace every : throughout the field with br. But whenever I try to replace the : with ~, it doesn’t seem to see that character. I’ve tried everything I can think of to tell the code to recognize ~ as a delimiter to be replaced, but can’t get it figured out. I’m sure it is something simple but I’ve been working on this for 3 days now and can’t see anything straight any more! Can someone help?
(Disclaimer: I’m not very tcl literate!)
Beth Palmateer
Salina Regional Health Center