HL7DataTypesXML() |
Top Previous Next |
Object: EHL7.HL7Vendors FileName: EHL7.dll
METHOD
Name: HL7DataTypesXML() Parameters: 1) strDataType (optional String) specify a specific datatype to return Returns: XML String Description: Returns an XML string with information for all of the HL7 Datatypes defined for the currently opened vendor.
See Also: OpenVendor(), EasyHL7.exe
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.HL7DataTypesXML() If strXML = "" Then MsgBox myVendorObj.LastError Set myVendorObj = Nothing Exit Sub End If End Sub
Example XML String:
<DATATYPES COUNT="53"> <DATATYPE ID="3BBE1E1C-C64E-43C3-910D-4E38D88DEAD1" HL7TYPE="AD" BASETYPE="Demographics" DESCRIPTION="Address" MAXCOMPONENTS="8" INSTRUCTIONS="2.8.1 <street address (ST)> ^ < other designation (ST)> ^ <city (ST)> ^ <state or province (ST)> ^ <zip or postal code (ST)> ^ <country (ID)> ^ <address type (ID)> ^ <other geographic designation (ST)>" />
<DATATYPE ID="90EC74E6-6BDA-46D3-A1D0-5ABEA0D0755F" HL7TYPE="CD" BASETYPE="Waveform" DESCRIPTION="Channel definition" MAXCOMPONENTS="8" INSTRUCTIONS="2.8.2 For waveform data only, see Chapter 7, Section 7.15.3. <channel identifier (*)> ^ <channel number (NM)> & <channel name (ST)> ^ <electrode names (*) > ^ <channel sensitivity/units (*) > ^ <calibration parameters (*)> ^ <sampling frequency (NM)> ^ <m" />
<DATATYPE ID="3F09BF0E-2D17-49E1-B854-D6FE2F41E961" HL7TYPE="CE" BASETYPE="Code Values" DESCRIPTION="Coded element" MAXCOMPONENTS="6" INSTRUCTIONS="2.8.3 <identifier (ST)> ^ <text (ST)> ^ <name of coding system (ST)> ^ <alternate identifier (ST)> ^ <alternate text (ST)> ^ <name of alternate coding system (ST)>" /> ...MORE... </DATATYPES>
|