You will need to utilize switches to handle the repeating segments. You will need to define the segments that repeat and the exception field within that segment that is different with each new instance of that segment. This tells ConnectR to make another stored procedure call each time a different value is found in the repeating segment.
In your case you will have a switch for the OBR segment with an exception of OBR4 and a switch for the OBX segment with an exception of OBX3. You will likely not need one for ORC. Here is an example of the switches on a typical lab result interface.
You do not have the required permissions to view the files attached to this post.