On Wed, Aug 1, 2012 at 10:17 AM, James Agnew <ja...@jamesagnew.ca> wrote:
> It's probably as simple as using the get(String) method on your ACK
> message. HAPI does store any segments that aren't a part of the "official"
> structure, but you need to ask for them by string/name instead of using the
> regular accessor.
>
> Message ack = initiator.sendAndReceive(.....);
> PID pid = (PID)ack.get("PID");
>
Yes, we used this approach successfully.
The following code might be helpful in terms of figuring out where in the
> message things have ended up:
> System.out.println(ack.printStructure());
>
"Message.printStructure()" is very helpful because it explicitly identifies
those segments that HAPI considers non-standard.
Derek
--
Derek Mahar
Senior Software Developer
Intelerad Medical Systems Incorporated
895 de la Gauchetiere W. Suite 400
Montreal, QC, Canada, H3B 4G1
Tel: 514.931.6222 x7754
Fax: 514.931.4653
derek.ma...@intelerad.com
www.intelerad.com
--
This email or any attachments may contain confidential or legally
privileged information intended for the sole use of the addressees. Any
use, redistribution, disclosure, or reproduction of this information,
except as intended, is prohibited. If you received this email in error,
please notify the sender and remove all copies of the message, including
any attachments.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel