Originally posted by Weston Olmstead
I am splitting a single Laboratory message with OBR/OBX sets into multiple messages with one OBR/OBX set per message, using the supress/continue method in an xLate. What I'm finding is that if my previous set iteration contained more OBX sets than my current iteration, I still have some sets left over.
Is there a way to "clear" an outbound message structure between Iterates, to resolve situations like this? Any suggestions on how to handle this?
For example:
MSH
PID
OBR|1|
OBX|1||||FIRST SET RESULT 1
OBX|2||||FIRST SET RESULT 2
OBX|3||||FIRST SET RESULT 3
OBR|2|
OBX|1||||SECOND SET RESULT 1
Results in the following two messages:
MSH
PID
OBR|1|
OBX|1||||FIRST SET RESULT 1
OBX|2||||FIRST SET RESULT 2
OBX|3||||FIRST SET RESULT 3
MSH
PID
OBR|2|
OBX|1||||SECOND SET RESULT 1
OBX|2||||FIRST SET RESULT 2
OBX|3||||FIRST SET RESULT 3