From 2.2 to 2.4 (C++ RAD 2010)

Discussion of open issues, suggestions and bugs regarding to (known as Delphi HL7) HL7 Components
Post Reply
araknide
Posts: 3
Joined: Thu Jun 30, 2011 12:45 pm

From 2.2 to 2.4 (C++ RAD 2010)

Post 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
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

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

Post 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
araknide
Posts: 3
Joined: Thu Jun 30, 2011 12:45 pm

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

Post 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;
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

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

Post by admin »

Hi,
Please send your message and code to : support@delphihl7.com
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests