I'm probably be missing something, but you should be able to do it the same
way you'd construct any other message. I.e:
ACK ack = new ACK();
// .... populate MSH
ack.getMSA().getAcknowledgementCode().setValue("AR");
ack.getERR().getErrorCodeAndLocation(0).getCodeIdentifyingError().getIdentifier().setValue("Error1234");
Also, Roger, that is quite interesting. I'll throw a link to it on our links
page.
Cheers,
James
On Thu, May 21, 2009 at 8:12 AM, Asanka Abeysinghe <
[email protected]> wrote:
> Hi Roger,
> Thank you for the response, nice blog post.
> Problem that I have is I want to construct the ACK with a ERR segment from
> scratch, that I don't have a original message at the point I know only an
> error happen after forwarding the original message.
> Any clue on constructing the message from the scratch.
> - Asanka
>
> Roger Searjeant wrote:
>
> I have posted a short piece (+ code) on ACK/NAKs in HAPI, see:
> http://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.htmlhttp://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.html
>
> Hope this is some help to you.
>
> Roger.
>
>
> asanka wrote:
>
>
> Hi,
> How do we handle Errors, using a ACK with a ERR segment ? what is the
> support for this in HAPI library.
> Regards
> Asanka
>
> _______________________________________________
> Hl7api-devel mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel