|
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 only 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 EasyHL7MC40.EasyHL7XMLMessage Private oMessage As EasyHL7MC40.EasyHL7XMLMessage Public oMessage As EasyHL7MC40.EasyHL7XMLMessage Friend oMessage As EasyHL7MC40.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 EasyHL7MC40.EasyHL7XMLMessage Private oMessage As New EasyHL7MC40.EasyHL7XMLMessage Public oMessage As New EasyHL7MC40.EasyHL7XMLMessage Friend oMessage As New EasyHL7MC40.EasyHL7XMLMessage
|