problem

Discussion of open issues, suggestions and bugs regarding to (known as Delphi HL7) HL7 Components
Post Reply
zhousong
Posts: 3
Joined: Wed Jul 27, 2011 5:59 am

problem

Post by zhousong »

TdiPN_26 can not be find when I try your software with your example.
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

Re: problem

Post by admin »

Hi,

Each message contains its own version information.
Example is for HL7 v 2.2

MSH|^~\&|ABL735^ABL735 Operating Theatres|ABL735^ABL735 Operating Theatres|||20010516135518||ORU^R01|20010516135518|P^not present|2.2

You must use v2.2 component.
zhousong
Posts: 3
Joined: Wed Jul 27, 2011 5:59 am

Re: problem

Post by zhousong »

Attached and please find the picture.

Source codes:
var
msg : TdiORU_R01_26;
Patient : TdiPN_26;
MsgStr : AnsiString;
i : integer;
begin

MsgStr :=
'MSH|^~\&|ABL735^ABL735 Operating Theatres|ABL735^ABL735 Operating Theatres|||'+
'20010516135518||ORU^R01|20010516135518|P^not present|2.6' + #13 +
.......
msg := TdiORU_R01_26.Create;
msg.AsString := Msg; //Parse message


Complie info:
[Error] Unit1.pas(54): Undeclared identifier: 'TdiPN_26'
[Error] Unit1.pas(94): Incompatible types: 'String' and 'TdiORU_R01_26'
Attachments
1.JPG
1.JPG (44.39 KiB) Viewed 12368 times
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

Re: problem

Post by admin »

Hi,

Each version has its own structure. Can not switch to another version, by changing only the version information.
Version 2.6 does not contains 'PN' Data Type.

Please download and install : http://www.delphihl7.com/download/DelphiHL7v22Trial.exe

Try compile with this.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests