Two HL7 versions at same time.
Posted: Wed Jul 06, 2016 7:01 pm
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
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