OutboundExtension

Top  Previous  Next

Object: EHL7.EHL7Processor

FileName: EHL7.dll

 

PROPERTY

 

Name: OutboundExtension

DataType: String

Mode: Read/Write

Description: The file extension that the processor should use when saving messages in the folder designated in the OutboundPath property. This property is ignored unless the CompleteAction property is set to ehpArchiveFile.

 

*The value CANNOT be a wildcard character *

 

Example:

'Declare the object

Private WithEvents myProcessorObj As EHL7.EHL7Processor

 

Private Sub Form_Load()

'Instantiate the object

Set myProcessorObj = New EHL7.EHL7Processor

myProcessorObj.IniFileName = "C:\EasyHL7\MyProfile.ini"

If Not myProcessorObj.OpenProfile() Then

       MsgBox myProcessorObj.LastError

       myProcessorObj.ClearErrors

End If

'I want to read in HL7 files and export to XML

myProcessorObj.InboundExtension = "*"

myProcessorObj.InboundFormat = InputHL7

myProcessorObj.OutboundExtension = "xml"

myProcessorObj.OutboundFormat = OutputXML

If Not myProcessorObj.ProcessProfile() Then

       MsgBox myProcessorObj.LastError

       myProcessorObj.ClearErrors

End If

End Sub

 

Private Sub PauseButton_Click

If Not myProcessorObj.InProcess Then Exit Sub

'It is running now either pause processing or resume

If Not myProcessorObj.Paused Then

   myProcessorObj.Paused = True 'Pause It

Else

   myProcessorObj.Paused = False 'Resume

End If

End Sub

 

 

See Also: OutboundPath, InboundPath, InboundFormat, OutboundFormat