huzaifa.kamal wrote:
>
> Hey Can somebody help me in generating a HL7 ack using HAPI.
>
> I have a application A which receives a HL7 msg. and generate an ACk for
> it.... can u plz help me in it... i m new to this HAPI domain.
>
You can use the following code snippet to create an ack.
MSH msh = (MSH) message.get("MSH");
ACK retVal;
try {
// This method takes in the MSH segment of an incoming message,
and generates an
// appropriate ACK
retVal = (ACK) DefaultApplication.makeACK(msh);
} catch (IOException e) {
throw new HL7Exception(e);
}
message is the input message and if you look at the samples provided with
HAPI you can find more details.
--
View this message in context:
http://www.nabble.com/HL7-Ack-tp23632630p23650936.html
Sent from the hl7api-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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