Re: [HAPI-devel] HAPI don't read NTE segment from a ORM^O01 message

2012-08-01 Thread Paulo Ferreira
Thanks a lot James, I'll follow your recomendations. Cheers, Paulo. On 1 August 2012 15:08, James Agnew wrote: > Hi Paolo, > > Looks like you've found a bug in HAPI's structures. > > You're right, according to HL7 2.5 the ORDER_DETAIL structure can start > with any one of a number of segments b

Re: [HAPI-devel] HAPI don't read NTE segment from a ORM^O01 message

2012-08-01 Thread James Agnew
Hi Paolo, Looks like you've found a bug in HAPI's structures. You're right, according to HL7 2.5 the ORDER_DETAIL structure can start with any one of a number of segments but should only have one of them. HAPI shows them all as mandatory, which is why your code only works if the first mandatory o

[HAPI-devel] HAPI don't read NTE segment from a ORM^O01 message

2012-08-01 Thread Paulo Ferreira
Hi, Hi have this message: MSH|^~\&|SINUS|1030101^AMARES|PDS|PDS|20120712145441.837+0100||ORM^O01|MSG1|P|2.5||UNICODE UTF-8 PID|||193661868||ANTONIO^LOPES^GOMES||19421220|M|||Rua do Bom Jardim^^Porto^^4420-554^PT||+351965546354|3 ORC|RE|0|75430^MED_MEDICACAO_CRONICA1^^^20070228^201