Our HCIS sends out ORU messages with multiple OBR segments. Each OBR is followed by 1 or more OBX segmment. Based on the order, of OBR and OBX segments it is possible to tell which OBX belong to wich OBR. Once the HL7 is received by BizTalk
and makes its way through the BTAHL72xReceivePipeline, the resulting XML does not retain the original order, not does it group the correlating OBR and OBX segments into a parent element as one would normally do in XML with this type of data relationship.
How can we go about correlating the correct OBR and OBX segments together?