EOM

Top  Previous  Next

Object: EHL7.HL7Vendors

FileName: EHL7.dll

 

PROPERTY

 

Name: EOM (End of Message)

DataType: String

Mode: Readonly

Description: See the HL7 rules for parsing characters. The parsing character(s) used by EasyHL7 when reading HL7 messages using the Vendor and the EHL7Message Object.  The HL7 standard default value is 2 characters:

1.Ascii character 28 (Hex '1B')
2.Ascii character 13 (Hex '0D') 

 

When parsing files received via TCP/IP from the vendor each HL7 transaction set should end with these character(s).  If the file/transmission contains more than one HL7 message then officially this character string should appear at the very end of the file rather than between each message.

 

See Also: VendorsXML(), UpdateVendor(), ParsingCharacters

 

Example:

 

Private Sub VendorTest()

Dim myVendorObj As New EHL7.HL7Vendors

Dim strVendorID As String

myVendorObj.VendorPath = "C:\EasyHL7"

strVendorID = myVendorObj.GetVendorID("Default","2.3")

If strVendorID = "" Then

    MsgBox myVendorObj.LastError

    Set myVendorObj = Nothing

    Exit Sub

End If

If Not MyVendorObj.OpenVendor(strVendorID) Then

    MsgBox myVendorObj.LastError

    Set myVendorObj = Nothing

    Exit Sub

End If

MsgBox "Ascii Value: " & Asc(myVendorObj.EOM)

End Sub