Click or drag to resize

IMessagePersistenceService Interface

Identifies a service which maintains a log of messages received to ensure that actions are only processed once

Namespace:  SanteDB.Core.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 2.2.1
Syntax
public interface IMessagePersistenceService : IServiceImplementation

The IMessagePersistenceService type exposes the following members.

Properties
  NameDescription
Public propertyServiceName
Gets the service name
(Inherited from IServiceImplementation.)
Top
Methods
  NameDescription
Public methodGetMessage
Get a message body by message identifier
Public methodGetMessageIds
Get all message ids between the specified time(s)
Public methodGetMessageInfo
Get message extended attributes
Public methodGetMessageResponseMessage
Get the response to the supplied request message identifier
Public methodGetMessageState
Get the current state of a message processing by the unique identifier of the message
Public methodPersistMessage
Instructs the message persistence service to store an inbound message
Public methodPersistMessageInfo
Persist metadata about the message
Public methodPersistResultMessage
Persist the result of a message request (i.e. the result of the request)
Top
Remarks

In a health context, certain types of messages which represent data triggers (such as an admit, discharge, order, etc.) may trigger a business process which, in turn, kicks off another business process. Sometimes this process can take a long time to complete, or (due to network issues) the caller may disconnect prior to receiving a response. This service is responsible for storing that a message has been received by the SanteDB infrastructure and is currently being (or was already) processed, and allows SanteDB to simply return the already executed message back to the caller.

Note: This service is only currently used by the HL7v2 service

See Also