Class Name: |
HL7PlusFileAnalyzer |
HL7+ Category: |
Restricted (Accessed through the HL7PlusController object) |
Description: |
File analysis and HL7 message retrieval from HL7 data files |
*All example code is in Visual Basic.Net
'Where MyController is a HL7PlusController object
Dim oAnalyzer As HL7PlusFileAnalyzer oAnalyzer = MyController.NewHL7PlusFileAnalyzer() If IsNothing(oAnalyzer) Then 'An Error occurred MessageBox.Show(MyController.LastError, "Error") Return End If With oAnalyzer .AnalyzeHL7File("C:\HL7\SomeFile.hl7") If .IsError Then MessageBox.Show(.LastError, "Analysis Error") 'IMPORTANT. I'm done with the object so clear it. .Clear() Return End If Dim iCount As Integer = .FileMessageCount If iCount = 0 Then MessageBox.Show("No HL7 Messages in " & .SourceFileTitle, "No Messages") 'IMPORTANT. I'm done with the object so clear it. .Clear() Return End If Dim oList As List(Of HL7PlusMessage) = .GetHL7PlusMessages() Dim objMsg As HL7PlusMessage For Each objMsg In oList '.....Code '.....Code Next 'IMPORTANT. I'm done with the object so clear it. .Clear() Return
|
Enumerator Name: EHFA_ErrorType
Description: Used to describe the current error state of the object Members: EHFA_NoError = 0 EHFA_SystemError = 1 EHFA_FileIsBlank = 2 EHFA_FileHasNoMessages = 3 EHFA_FileDoesNotExist = 4 EHFA_InvalidPropertyValues = 5 EHFA_NoFileIsOpen = 6 EHFA_MessageNotFound = 7 EHFA_FileAccessError = 8 EHFA_AnalysisCancelled = 99 EHFA_InvalidObjectState = 100
|
|
|
|
This object class uses our standard HL7PlusException Class interface for error handling wherever possible.
See the HL7PlusException Implementation Reference
|