I have an ORU message that has 3 OBR segments with multiple OBX segments for each OBR. I have been asked to create a message for each OBR. I have been able to achieve this by putting a Continue in the OBR group iteration. The problem I am having is that the second OBR always has more OBX segments than the third OBR which causes the last part of the second message to append to end of the third message. For example if the second OBR has 10 OBX lines and the third OBR has 6 OBX lines my last message has the 6 OBX lines that are supposed to be there and then the last 4 OBX lines from the second message for a total of 10 lines instead of 6. I was able to find some reference to this problem before in the archives but I coulsn’t make much sense of the solution. If someone has a good way of clearing out the OBX lines from the previous message I would greatly appreciate your help. This has been very frustrating! Thanks.
Scott Baker – Sr. Technical Analyst
Information Services
H