Class Name: |
HL7PlusFileInfo |
HL7+ Category: |
Partially Restricted (contains some features which require the HL7PlusController object) |
Description: |
General purpose file information object with some HL7+ specific features |
*All example code is in Visual Basic.Net
Dim oFileInfo As New HL7PlusFileInfo("C:\HL7\SomeFile.hl7") With oFileInfo MessageBox.Show("This file is named: " & oFileInfo.FileTitleNoExtension) 'Where MyController is a HL7PlusController object Dim iCount As Integer = oFileInfo.CountHL7PlusMessagesInFile(MyController) If .IsError Then MessageBox.Show(.LastError, "Error Counting") Return End If MessageBox.Show("The file contains " & iCount.ToString & " HL7 Messages.") Dim oList As List(Of HL7PlusMessage) = .GetHL7PlusMessages(MyController) If .IsError Then MessageBox.Show(.LastError, "Error Getting Messages") Return End If 'oList is now a List object containing a HL7PlusMessage object for every 'message in the file. End With |
|
|
|
This object class uses our standard HL7PlusException Class interface for error handling wherever possible.
See the HL7PlusException Implementation Reference
|