Filing this bug in regards to a message on the HAPI mailing list from Paulo Ferreira. ORM_O01 in 2.5 (and maybe others) has an group called ORDER_DETAIL which can start with one of several segments:
<OBR|
RQD|
RQ1|
RXO|
ODS|
ODT>
HAPI does not parse this correctly if the message contains an order of a type other than OBR
For 2.5 this scheme is used in the structures ORR_O02, OSR_Q06, PGL_PC6, PPG_PCG, PPP_PCB, PPR_PC1, PPT_PCL, PPV_PCA, PRR_PC5, PTR_PCF
Fix checked in