Re: [HAPI-devel] HELP: how to get the number of repetitions for MFN_M15

2010-06-09 Thread christian ohr
Hi Mark, MSH-9 is slightly misformatted - this causes HAPI to skip creating the MSH segment and therefore no MFN_M15 but a ca.uhn.hl7v2.model.GenericMessage$V25 is created and you get the ClassCastException. Simply replace |MFN^M15^MFN M15| with |MFN^M15^MFN_M15| (note the underscore instead of

Re: [HAPI-devel] segment delimiter issue: HL7Exception: ca.uhn.hl7v2.HL7Exception: Can't process message of version '2.5 MSA'

2010-06-09 Thread christian ohr
Hi, the segment delimiter \r is lost somewhere when transmitting the web service (or replaced by a space). As a result ...P|2.5\rMSA|A... becomes ...P|2.5 MSA|A... and HAPI complains about not knowing the HL7 version "2.5 MSA". Make sure the segment delimiters are preserved. regards Christian

[HAPI-devel] Problem with OMGO19

2010-06-09 Thread Fabio Daprile
Hello everybody, i have a problem when parsing OMG_O19 messages containing more than 1 order. I receive this message: MSH|^~\&|SGP-CHMARTIN|SGPUSER|^SOFTO|^SOFTO|20100528095538||OMG^O19^OMG_O19|SGP0330385|P|2.5||8859/1 PID|1||AAA~CF~""STP~60423