Creating many ORU messages from one in an Xlate
I am stuck on a problem, and hope that someone may have solved this before. I need to break up one ORU message with repeating OBR and OBX segments, but not duplicate the result data. For example, the incoming message is:
MSH
PID
ORC
OBR
OBX
OBR
OBX
OBX
OBR
OBX....
I need to have:
MSH, PID, ORC, OBR, OBX
then
MSH,PID,ORC, OBR, OBX, OBX
and
MSH,PID,ORC, OBR, OBX...
without repeating the OBR and OBX data amongst the messages. I have tried various builds in my Xlate and HL7 config, but I keep on repeating the OBR/OBX data in my multiple messages. Any help...
Thanks,
Gordon