Hi Christian,
Thanks for your quick reply, I got it to work, see below, but I'll try your
terser way though,
looks nice and short
ADT_A39_PATIENT adtMessage = (ADT_A39_PATIENT) _message.get("PATIENT");
PID pid = (PID) adtMessage.getPID();
MRG mrg = (MRG) adtMessage.getMRG();
String id1 = mrg.getPriorPatientIdentifierList(0).getCx1_ID().getValue();
String id2 = pid.getPid3_PatientIdentifierList(0).getCx1_ID().getValue();
Cheers,
Éamonn
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel