Page 1 of 1

From 2.2 to 2.4 (C++ RAD 2010)

Posted: Wed Oct 19, 2011 3:04 pm
by araknide
Hi all,

In the examples (HL7 2.2) you fill the Patient object with:

Code: Select all

Patient = msg->PATIENTRESULT[0]->PATIENT->PID->PatientName
What is the equivalent for 2.4 ? Obviously it does not work as is.

Thanks

Claudio

Re: From 2.2 to 2.4 (C++ RAD 2010)

Posted: Wed Oct 19, 2011 7:17 pm
by admin
Hi,

Your message ORU_R01. For v2.4 you need TdiORU_R01_24 class.
Check your msg variable definition.

for HL7 v.24, ORU_R01 class definition :
http://www.delphihl7.com/doc/html/diHL7 ... 01_24.html

Re: From 2.2 to 2.4 (C++ RAD 2010)

Posted: Thu Oct 20, 2011 6:39 am
by araknide
And that's ok, thanks.

But I cannot understand why in my code compilation stops in last line with error
E2193 Too few parameters in call to '_fastcall TdiOBX_24::GetObservationValue(int)'

Code: Select all

   TdiORU_R01_24 * msg;
   TdiPN_24 * Patient;
   TdiORU_R01_PATIENTRESULT_ORDEROBSERVATION_OBSERVATION_24 * obs;
   AnsiString Surname;


   msg     = new TdiORU_R01_24;
   Patient = new TdiPN_24;
   obs     = new TdiORU_R01_PATIENTRESULT_ORDEROBSERVATION_OBSERVATION_24;

   Surname = msg->PATIENTRESULT[0]->PATIENT->PID->PatientName->Familyname->Surname->AsString;

Re: From 2.2 to 2.4 (C++ RAD 2010)

Posted: Thu Oct 20, 2011 9:01 am
by admin
Hi,
Please send your message and code to : support@delphihl7.com
Thanks.