Anyone,
I have the following message structure ...
-------------------------------------------------------
MSH|^~\&||LABONE||DDU5|20060901064300||ORU^R01|H|P|2.3.1||||||||
PID|1|161543|26319083|14568-1|ARMSTRONG^GARY^^^^||19470718|M||^|^^^UT^||||||
|||||||||||||
PV1|1||||||131313^ROBERTS
OBR|1|161543|26319083|2001^CBC (COMPLETE BLOOD COUNT) WITH
DIFF^L|||20060831035000||||N||||~~~||||||||||F
OBX|1|ST|2908^NEUTROPHILS^L||51|^%^L|42 - 77|||||
...
--------------------------------------------------------
my code ...
--------------------------------------------------------
Parser p = new GenericParser();
Message hapiMsg = null;
try {
// The parse method performs the actual parsing
hapiMsg = p.parse(msg);
if (!hapiMsg.getVersion().equals("2.3.1")) {
// throw an exception ...
}
ORU_R01 oru = (ORU_R01)hapiMsg;
MSH msh = oru.getMSH();
...
--------------------------------------------------------
the above code executes fine but I'm having a bit of trouble geting the PID
line as well as a list of OBX lines. Would someone be willing to share some
example code. The example from the website doesn't really work - probably
because its in the 2.2 spec.
Thanks in advance.
Chad
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel