This page is part of the FHIR Specification (v0.11: DSTU 1 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Resource Message - Formal Definitions 6.9.10

Formal definitions for the elements in the message resource.

Message
DefinitionThe root for a transmission either requesting or responding to an action. The resource(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle of which the Message resource instance is the first resource in the bundle.
Control1..1
RequirementsMany implementations are not prepared to use REST and need a message based infrastructure.
Message.identifier
DefinitionThe identifier of this message.
Control1..1
Typeid
CommentsThis must be unique within the scope of this stream of messages.
Message.timestamp
DefinitionThe time that the message was sent.
Control1..1
Typeinstant
RequirementsAllows limited detection of out-of-order and delayed transmission. Also supports audit.
Message.event
DefinitionCode that identifies the event this message represents and connects it with the event definition in the FHIR specification.
Control1..1
BindingMessageEvent : the Event List in the messaging framework
Typecode
Is Modifiertrue
RequirementsDrives the behavior associated with this message.
To DoConsider changing to Coding to support profile-defined events.
Message.response
DefinitionInformation about the message that this message is a response to. Only present if this message is a response.
Control0..1
Is Modifiertrue
Message.response.identifier
DefinitionThe id of the message that this a response to.
Control1..1
Typeid
RequirementsAllows receiver to know what message is being responded to.
Message.response.code
DefinitionCode that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.
Control1..1
BindingResponseCode : The kind of response to a message (see http://hl7.org/fhir/response-code for values)
Typecode
Is Modifiertrue
RequirementsAllows the sender of the acknowledge message to know if the request was successful or if action is needed.
CommentsThis is a generic response to the request Message. Specific data for the response will be found in Message.data.
Message.response.details
DefinitionFull details of any issues found in the message.
Control0..1
TypeResource(OperationOutcome)
RequirementsAllows the sender of the message to determine what the specific issues are.
CommentsThis must be contained in the bundle. If any of the issues are errors, the response code must be an error.
Message.source
DefinitionThe source application from which this message originated.
Control1..1
RequirementsAllows replies, supports audit.
Message.source.name
DefinitionHuman readable name for the target system.
Control0..1
Typestring
RequirementsMay be used to support audit.
Message.source.software
DefinitionMay include configuration or other information useful in debugging.
Control1..1
Typestring
RequirementsSupports audit and possibly interface engine behavior.
Message.source.version
DefinitionCan convey versions of multiple systems in situations where a message passes through multiple hands.
Control0..1
Typestring
RequirementsSupports audit and possibly interface engine behavior.
Message.source.contact
DefinitionAn e-mail, phone, website or other contact point to use to resolve issues with message communications.
Control0..1
TypeContact
RequirementsAllows escalation of technical issues.
Message.source.endpoint
DefinitionIdentifies the routing target to send acknowledgements to.
Control1..1
Typeuri
RequirementsIdentifies where to send responses, may influence security permissions.
CommentsThe id may be a non-resolvable URI for systems that do not use standard network-based addresses.
Message.destination
DefinitionThe destination application which the message is intended for.
Control1..1
RequirementsIndicates where message is to be sent to for routing purposes. Allows verification of "am I the intended recipient".
Message.destination.name
DefinitionHuman readable name for the source system.
Control0..1
Typestring
RequirementsMay be used for routing of response and/or to support audit.
Message.destination.target
DefinitionIdentifies the target end system in situations where the initial message transmission is to an intermediary system.
Control0..1
TypeResource(Device)
RequirementsSupports multi-hop routing.
Message.destination.endpoint
DefinitionIndicates where the message should be routed to.
Control1..1
Typeuri
RequirementsIdentifies where to route the message.
CommentsThe id may be a non-resolvable URI for systems that do not use standard network-based addresses.
Message.enterer
DefinitionThe person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.
Control0..1
TypeResource(Practitioner)
RequirementsNeed to know for audit/traceback requirements and possibly for authorization.
CommentsUsually only for the request, but can be used in a response.
Message.author
DefinitionThe logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the Message. Can provide other authors in extensions.
Control0..1
TypeResource(Practitioner)
RequirementsNeed to know for audit/traceback requirements and possibly for authorization.
CommentsUsually only for the request, but can be used in a response.
Message.receiver
DefinitionAllows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.
Control0..1
TypeResource(Practitioner|Organization)
RequirementsAllows routing beyond just the application level.
Message.responsible
DefinitionThe person or organization that accepts overall responsibility for the contents of the Message. The implication is that the message event happened under the policies of the responsible party.
Control0..1
TypeResource(Practitioner|Organization)
RequirementsNeed to know for audit/traceback requirements and possibly for authorization.
CommentsUsually only for the request, but can be used in a response.
Message.effective
DefinitionThe effective time - the real world time of the event that the message represents. Usually this is just a starting time, but some message events also have an end time (do x for period y).
Control0..1
TypePeriod
RequirementsNeed to know for understanding the content of the message, may govern receiver's behavior.
CommentsUsually only for the request, but can be used in a response.
To DoGrahame thinks this is not 80/20. Also, that it really should be domain modeled, not tucked away here.
Message.reason
DefinitionCoded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message.
Control0..1
BindingEventReason : (Value Set Definition)
TypeCodeableConcept
RequirementsNeed to be able to track why resources are being changed and report in the audit log/history of the resource. May affect authorization.
Message.data
DefinitionThe actual data of the message - a reference to the root/focus class of the event.
Control0..*
TypeResource(Any)
RequirementsEvery message event is about actual data, a single resource, that is identified in the definition of the event, and perhaps some or all linked resources.
CommentsThe data is defined where the transaction type is defined. The transaction data is always included in the bundle that is the full message. Only the root resource is specified. The resources it references should be contained in the bundle but are not also listed here. Multiple repetitions are allowed to cater for merges and other situations with multiple focal targets.