I have a problem where I want to grab data from multiple OBX.5 fields (obviously the inbound OBX segment iterates) and place specific data in a single OBX segment. This is working fine most of the time via basic iterate functionality with IF statements picking out the desired data, which is placed in variables to be CONCAT’ed in the outbound OBX.5 field. However, the order of the inbound OBX segments appear to impact whether I can grab my data in the IF statement. For example, my primary hook in a nested IF statement (which is the basis of the outbound OBX) needs to occur after the other OBX’s from which I am grabbing data and placing in variables. Otherwise, I do not collect all the desired pieces. Any input is appreciated.
Thank you.