- This topic has 11 replies, 6 voices, and was last updated 16 years, 3 months ago by .
-
Topic
-
I have a situation where I am translating patient race in a tclproc (xlate isn’t appropriate for this circumstance) and the resulting ADT HL7 message ends up with an extra x0d at the end of the message after the tclproc processes the ADT message. Tclproc is attached. When the ADT comes into the engine it has one x0d at the end of the message (found through turning up engine debug log).
I have put echo statements in my tclproc to find out more and discovered that when I split the inbound ADT message on /r, I get an extra element in my list at the end that is {}. This “segment” at the very end and completely empty (null maybe?). There is no actual segment beyond the ZAD at the end. Generally, the tclproc split creates this:
{MSH|||||||} {EVN||||} {PID||||} …. {IN1|||} {IN2|||} {ZAD|||} {}
and after it rebulids the message the split shows us this generally:
{MSH|||||||} {EVN||||} {PID||||} …. {IN1|||} {IN2|||} {ZAD|||} {} {}
How can I keep this from happening in my tclproc? Is there a null character doing this?
Thank you!
- The forum ‘Cloverleaf’ is closed to new topics and replies.