SubComponentDelimiter

Top  Previous  Next

Object: EHL7.HL7Vendors

FileName: EHL7.dll

 

PROPERTY

 

Name: SubComponentDelimiter

DataType: String

Mode: Readonly

Description: The single character used to separate SubComponents within the components of HL7 fields.  Refer to the HL7 guidelines for encoding characters as well as your vendor's HL7 implementation guide.

 

For the value almost universally employed for Encoding Characters ("^~\&") the SubComponentDelimiter is "&".

 

See Also: EncodingChars, FieldSeparator, SegmentDelimiter

Example:

 

Private Sub VendorTest()

Dim myVendorObj As New EHL7.HL7Vendors

Dim strVendorID As String

Dim myMsg 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

myMsg = "Component Delimiter = " & myVendorObj.ComponentDelimiter & vbCRLF & _

         "Repeat Delimiter = " & myVendorObj.RepeatDelimiter & vbCRLF & _

         "Escape Delimiter = " & myVendorObj.EscapeDelimiter & vbCRLF & _

         "SubComponent Delimiter = " & myVendorObj.SubComponentDelimiter

MsgBox myMsg

Set myVendorObj = Nothing

End Sub