Re: [HAPI-devel] HL7 Error Handling and ACK

2012-10-23 Thread Eugene Berman
y > attachments without reading, forwarding or saving them. Thank you. > > > > > From:James Agnew > To:Eugene Berman > Cc:"[email protected]" > > Date:10/22/2012 10:58 AM > Subject:Re: [HAPI-devel] HL7

Re: [HAPI-devel] HL7 Error Handling and ACK

2012-10-23 Thread James Agnew
t; To:Eugene Berman > Cc: "[email protected]" < > [email protected]> > Date:10/22/2012 10:58 AM > Subject:Re: [HAPI-devel] HL7 Error Handling and ACK > -- > > > > Hi E

Re: [HAPI-devel] HL7 Error Handling and ACK

2012-10-22 Thread christian ohr
On trunk I generalized validation quite a bit. There's the concept of ExceptionHandlers that act upon every issue that occurs during validation; one of the implementations constructs a (configurable) acknowledgement message containing properly configured MSA and ERR segments. cheers Christian

Re: [HAPI-devel] HL7 Error Handling and ACK

2012-10-22 Thread Tom . Bonavia
10:58 AM Subject:Re: [HAPI-devel] HL7 Error Handling and ACK Hi Eugene, Re. multiple errors: The HL7 "ACK" message type actually allows you to specify the details of more than one error in your response, using the repeatable ERR segment. The generateAck(String, HL7Exception

Re: [HAPI-devel] HL7 Error Handling and ACK

2012-10-22 Thread James Agnew
Hi Eugene, Re. multiple errors: The HL7 "ACK" message type actually allows you to specify the details of more than one error in your response, using the repeatable ERR segment. The *generateAck(String, HL7Exception)* method only populates the first one, since this is a common use case, but there i

[HAPI-devel] HL7 Error Handling and ACK

2012-10-19 Thread Eugene Berman
I'm very new to HAPI, so sorry for the stupid questions :) I'm trying to figure out what is the best way to generate ACK message in case I have multiple processing errors. E.g. I receive a message and then validation fails, producing multiple errors. The generateACK() method only accepts one HL7