Hi,
I have a HL7 message which I successfully parsed. However on closer
inspection, the value of PATIENT_RESULTRepetitionsUsed is always 0.
Can you please tell me why this is coz there should be 1 large set of patient
results in there. Perhaps I am not clear what "RESULTRepetitionsUsed"
represents ?
Code
====
PipeParser parser = new PipeParser();
NHapi.Base.Model.IMessage ORUR01_msg = parser.Parse(message1);
ORU_R01 ORUR01 = ORUR01_msg as ORU_R01; <-- successful
for (int i = 0; i < ORUR01_msg.PATIENT_RESULTRepetitionsUsed; i++) <-- 0 value
{
ORU_R01_PATIENT_RESULT xresult = ORUR01.GetPATIENT_RESULT(i);
intA = xresult.PATIENT.PID.PatientID.ID.Value);
intB = xresult.PATIENT.PID.GetPatientIdentifierList()[m].ID.Value);
}
Sample HL7 msg
==============
MSH|^~\&|PATHLab||||200801241334||ORU^R01|123678|P|2.4|
PID|1|4609251647|D0558979||ANDREWS^JOHN^^^MR||19740731|M|||43 NEWALL
PLACE^INTAKE^STRATFORD^^S6 5GB^^^^||01302 866618||||||||||||||||||
OBR|1||J129001R|H005^FBC |||20060424000000|||||^|Essential
thrombocythaemia,|20060424085200|V.Blood^^^|K164^RAJA^S^^^Dr^^OMNI-
Lab||||||20060424113500||Haematology|F|||I3^INMAN (I3)
^AJ^^^DR||||PETE&SMITH&JANE DOE^^20060424113500||
OBX|1|NM|H0001^Haemoglobin||12.4|^g/dL.|12.6 - 18.0|L|||F||||
OBX|2|NM|H0006^WBC||3.8|^x 10\S\9/L|4.0 - 12.0|L|||F||||
Thanks
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel