If the OBX-5 field is repeating (meaning it was built by the sending system with the field repetition separator defined in MSH-2 present) then simply ITERATE on the field and construct a new OBX segment with each repetition.
Otherwise it will depend on how the OBX-5 field is constructed by the sending system. Many vendors do it many different ways.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.