GetHL7Table()

Top  Previous  Next

Object: EHL7.HL7Vendors

FileName: EHL7.dll

 

METHOD

 

Name: GetHL7Table()

Parameters: 1) TableID (Long) The HL7 Table ID.

Returns: XML String

Description: Returns an XML string with information for all of the for all of the elements in a particular HL7 Table (refer to HL7 documentation on HL7 Tables). 

 

See Also: HL7TablesXML()

 

Example:

Private Sub VendorTest()

Dim myVendorObj As New EHL7.HL7Vendors

Dim strVendorID As String

Dim strXML As String

myVendorObj.VendorPath = "C:\EasyHL7"

'Process the XML        

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

strXML = myVendorObj.GetHL7Table(2222)

End Sub

 

Example XML String:

 

<HL7TABLE TABLEID="2222" NAME="My Test Table" COUNT="2">

<ITEM CODE="A" VALUE="Value A" ITEMGUID="815403430F36E647AE6324BFE95D1CAA" />

<ITEM CODE="B" VALUE="Value B" ITEMGUID="96342010F06E674E82A2F415F8C61A91" />

</HL7TABLE>

 

*Notes:

The TABLEID attribute is the HL7 Table ID.

The NAME attribute is the name of the table

The COUNT attribute is the number of elements in the table

The ITEMGUID attribute is the GUID assigned to the table item by EasyHL7. 

 

An empty HL7 table would look like this

 

<HL7TABLE TABLEID="2222" NAME="My Test Table" COUNT="0">

</HL7TABLE>