Page 1 of 1

Two HL7 versions at same time.

Posted: Wed Jul 06, 2016 7:01 pm
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

Re: Two HL7 versions at same time.

Posted: Wed Jul 06, 2016 8:17 pm
by admin
Hi,

You can use TBSHL7Message type.

var
msg: TBSHL7Message