EnsLib.HL7.Operation.ReplyStandard
abstract class EnsLib.HL7.Operation.ReplyStandard extends EnsLib.HL7.Operation.Standard, EnsLib.EDI.ServiceInterface
This is an abstract superclass for HL7 Operations that can receive a reply to a sent HL7 messageProperty Inventory
Method Inventory
- GetSegmentTerminator()
- IOLogDiscard()
- OnGetReplyAction()
- OnInit()
- OnMessage()
- OnReplyDocument()
- SendMessage()
- buildReplyActionMap()
Parameters
Properties
A comma-separated list of codes specifying what action this Operation will take on receipt of various types of ACK response messages and other reply status conditions.
The format of the list is:
<code>=<action>,<code>=<action>,...
Types of reply status condition are identified by a specification code:
A <code> value starting with a colon - e.g. :<char><char> represents a literal value found in field MSA:1 of the response message.
Also, the following special code values may be used:
- :?A - matches AA or CA values (Accept)
- :?E - matches AE or CE values (Error)
- :?R - matches AR or CR values (Reject)
- :_ - matches replies with an empty MSA:1 field
- :* - matches any MSA:1 value not matched otherwise (default=F)
- :~ - matches replies that do not contain an MSA segment
- :I? - matches where the reply MSA:2 ControlId does not match the ControlId of the original message
- :T? - matches where the reply MSH:9 Type name does not match the schema's declared reply type for the original message
The default behavior is ':?R=RF,:?E=S,:~=S,:?A=C,:*=S,:I?=W,:T?=C'
This means for NACKs received with error code AR or CR retry, while codes AE or CE suspend the current outbound
message and move on to the next.
Also, the following standard status conditions may be used:
- E - Error status returned from message handler
- E#<statuscode> - Error status returned from message handler has status code equal to <statuscode>
- E*<text> - Error status returned from message handler contains text string <text>
- X - there is no reply message at all
The following values for <actions> may be used alone or in combinations:
- C - Treat the message as Completed OK.
- W - Log a warning. If no other non-warning <actions> are triggered, the message will be treated as Completed OK.
- R - Retry the message according to the configured RetryInterval and FailureTimeout; finally Fail unless a different action is also specified.
- S - Suspend the message, log an error, and move on to try the next message.
- D - Disable the Operation, log an error and restore the message to the front of the Operation's queue.
- F - Fail with an error and move on to try the next message from the Operation's queue.
The default behavior is 'E=F'. Thus any error status will result in the error being logged and returned to the caller, no retries will be attempted, and the Operation will move on to try the next message from its queue.
All codes where <actions> consists of only 'W' (for 'log a Warning') will be evaluated, and a warning will be generated for each matching <code>. Other <code> values will be evaluated in left-to-right order, executing the first matching <code> that has a non-warning <actions> value. As noted in the details for the 'W' flag, an error that only triggers 'W' <actions> will be treated as Completed OK.
The options for this setting are as follows:
- None : Don't save or index any reply messages.
- NotOKs : Save replies that are not a simple OK ACK message: e.g. error NACKS and query responses.
- All : Save a copy of all reply messages sent back to the remote system.
- IndexNotOKs : Save replies that are not a simple OK ACK message and index them using the configured SearchTable. This is the default behaviour, unless IndexReplies, SaveOKACKs or IndexACKs has been overridden in this class.
- IndexAll : Save a copy of all reply messages and index them using the configured SearchTable.
Methods
Inherited Members
Inherited Properties
- %AlertStartTime
- %ConfigName
- %ConfigQueueName
- %LastActionTime
- %LastHandledTime
- %LastReportedError
- %QuitTask
- %RequestHeader
- %SessionId
- %SuperSession
- %WarnedLatest
- %isShadow
- Adapter
- AlertGroups
- AlertOnError
- AlertRetryGracePeriod
- ArchiveIO
- BusinessPartner
- DefCharEncoding
- DeferResponse
- FailureTimeout
- Framing
- IOLogEntry
- InactivityTimeout
- NoFailWhileDisconnected
- QueueCountAlert
- QueueWaitAlert
- Retry
- RetryCount
- RetryInterval
- SearchTableClass
- SendSuperSession
- Separators
- SuspendMessage
- ThrottleDelay
- Validation
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnClose()
- %OnNew()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %SuperSessionSet()
- %ValidateObject()
- AdapterName()
- AssignOneSetting()
- CloseIOLogEntry()
- DeferResponse()
- EnumerateSettingsClose()
- EnumerateSettingsExecute()
- EnumerateSettingsFetch()
- GenerateSuperSession()
- GetDeferredResponseToken()
- GetMessageList()
- GetProductionSettingValue()
- GetProductionSettings()
- GetPropertyConnections()
- GetSettings()
- GetShadowInstance()
- IncludeSuperSession()
- NewIOLogEntry()
- OnDocumentEnd()
- OnDocumentStart()
- OnError()
- OnFailureTimeout()
- OnGenerateSuperSession()
- OnGetConnections()
- OnKeepalive()
- OnMonitor()
- OnPostDocument()
- OnPreDocument()
- OnProductionStart()
- OnProductionStop()
- OnTearDown()
- OnValidate()
- OutputFramedToDevice()
- OutputFramedToIOStream()
- QueueName()
- SaveIOLogEntry()
- SendAlert()
- SendDeferredResponse()
- SendRequestAsync()
- SendRequestSync()
- SetOutFraming()
- resolveDocType()
- validateAndIndex()