BOM

Top  Previous  Next

Object: EHL7.HL7Vendors

FileName: EHL7.dll

 

PROPERTY

 

Name: BOM (Beginning 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 Ascii character 11 (Hex '0B').  When parsing files received via TCP/IP from the vendor each HL7 message should begin with this character(s) before each MSH segment.

 

 

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.BOM)

End Sub