Two HL7 versions at same time.

Discussion of open issues, suggestions and bugs regarding to (known as Delphi HL7) HL7 Components
Post Reply
lucas.amiune
Posts: 25
Joined: Mon Oct 29, 2012 7:41 pm

Two HL7 versions at same time.

Post by lucas.amiune »

Hi There,

I'm trying to make a software where can recieve two versions of HL7 messages, 2.3.1 and 2.5.
I'd like to know if there is any type of cast that I can use.

i.e.

var
msg: THL7Message
begin
if version = '2.3.1' then
msg := TbsORM_O01_231.Create;

if version = '2.5' then
msg := TbsORM_O01_25.Create
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

Re: Two HL7 versions at same time.

Post by admin »

Hi,

You can use TBSHL7Message type.

var
msg: TBSHL7Message
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests