The EasyHL7XMLMessage Object

PreviousNext

Reading and Writing HL7 data.

(c) 2007-2008 Hermetech International Ltd.

Use the EasyHL7XMLMessage Object to read / write HL7 data. Message objects can only be created by HL7Vendor Objects (see the NewEasyHL7XMLMessage method).

 

Important Note: This object is included for backward compatibility with the EasyHL7 ActiveX components. It differs significantly (although it shares many similar names and functions) from the EasyHL7Message object. It is EXTREMELY important to know the functional differences between these two objects if you intend to use both of them.

 

The PRIMARY difference is the use of internal objects. The object returned from a call to EasyHL7XMLMessage.AddSegment() or GetSegment(), etc. is NOT an HL7MessageSegment object, and as such, should be left untyped or declared as general 'Object' data types.

 

 

For more info see: Properties and Methods

 

 

Object Creation:

 

Dim oMessage As EHL7_MC2005.EasyHL7XMLMessage

Private oMessage As EHL7_MC2005.EasyHL7XMLMessage

Public oMessage As EHL7_MC2005.EasyHL7XMLMessage

Friend oMessage As EHL7_MC2005.EasyHL7XMLMessage

 

Then Instantiate the Object like so:

'Where oVendor is a valid HL7Vendor object with an open vendor definition

oMessage = oVendor.NewEasyHL7XMLMessage()

 

 

DO NOT DO THIS:

 

Dim oMessage As New EHL7_MC2005.EasyHL7XMLMessage

Private oMessage As New EHL7_MC2005.EasyHL7XMLMessage

Public oMessage As New EHL7_MC2005.EasyHL7XMLMessage

Friend oMessage As New EHL7_MC2005.EasyHL7XMLMessage