public class MessageHeader extends BaseResource implements IResource
Definition: The header for a message exchange that is 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 in which the MessageHeader resource instance is the first resource in the bundle
Requirements: Many implementations are not prepared to use REST and need a messaging based infrastructure
Profile Definition: http://hl7.org/fhir/profiles/MessageHeader
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageHeader.Destination
Block class for child element: MessageHeader.destination (Message Destination Application(s))
|
static class |
MessageHeader.Response
Block class for child element: MessageHeader.response (If this is a reply to prior message)
|
static class |
MessageHeader.Source
Block class for child element: MessageHeader.source (Message Source Application)
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
MessageHeader() |
| Modifier and Type | Method and Description |
|---|---|
ResourceReferenceDt |
addData()
Adds and returns a new value for data (The actual content of the message)
|
MessageHeader.Destination |
addDestination()
Adds and returns a new value for destination (Message Destination Application(s))
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
ResourceReferenceDt |
getAuthor()
Gets the value(s) for author (The source of the decision).
|
List<ResourceReferenceDt> |
getData()
Gets the value(s) for data (The actual content of the message).
|
List<MessageHeader.Destination> |
getDestination()
Gets the value(s) for destination (Message Destination Application(s)).
|
MessageHeader.Destination |
getDestinationFirstRep()
Gets the first repetition for destination (Message Destination Application(s)),
creating it if it does not already exist.
|
ResourceReferenceDt |
getEnterer()
Gets the value(s) for enterer (The source of the data entry).
|
CodingDt |
getEvent()
Gets the value(s) for event (Code for the event this message represents).
|
IdDt |
getIdentifier()
Gets the value(s) for identifier (Id of this message).
|
CodeableConceptDt |
getReason()
Gets the value(s) for reason (Cause of event).
|
ResourceReferenceDt |
getReceiver()
Gets the value(s) for receiver (Intended \"real-world\" recipient for the data).
|
MessageHeader.Response |
getResponse()
Gets the value(s) for response (If this is a reply to prior message).
|
ResourceReferenceDt |
getResponsible()
Gets the value(s) for responsible (Final responsibility for event).
|
MessageHeader.Source |
getSource()
Gets the value(s) for source (Message Source Application).
|
InstantDt |
getTimestamp()
Gets the value(s) for timestamp (Time that the message was sent).
|
boolean |
isEmpty() |
MessageHeader |
setAuthor(ResourceReferenceDt theValue)
Sets the value(s) for author (The source of the decision)
|
MessageHeader |
setData(List<ResourceReferenceDt> theValue)
Sets the value(s) for data (The actual content of the message)
|
MessageHeader |
setDestination(List<MessageHeader.Destination> theValue)
Sets the value(s) for destination (Message Destination Application(s))
|
MessageHeader |
setEnterer(ResourceReferenceDt theValue)
Sets the value(s) for enterer (The source of the data entry)
|
MessageHeader |
setEvent(CodingDt theValue)
Sets the value(s) for event (Code for the event this message represents)
|
MessageHeader |
setIdentifier(IdDt theValue)
Sets the value(s) for identifier (Id of this message)
|
MessageHeader |
setIdentifier(String theId)
Sets the value for identifier (Id of this message)
|
MessageHeader |
setReason(CodeableConceptDt theValue)
Sets the value(s) for reason (Cause of event)
|
MessageHeader |
setReceiver(ResourceReferenceDt theValue)
Sets the value(s) for receiver (Intended \"real-world\" recipient for the data)
|
MessageHeader |
setResponse(MessageHeader.Response theValue)
Sets the value(s) for response (If this is a reply to prior message)
|
MessageHeader |
setResponsible(ResourceReferenceDt theValue)
Sets the value(s) for responsible (Final responsibility for event)
|
MessageHeader |
setSource(MessageHeader.Source theValue)
Sets the value(s) for source (Message Source Application)
|
MessageHeader |
setTimestamp(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for timestamp (Time that the message was sent)
|
MessageHeader |
setTimestamp(InstantDt theValue)
Sets the value(s) for timestamp (Time that the message was sent)
|
MessageHeader |
setTimestampWithMillisPrecision(Date theDate)
Sets the value for timestamp (Time that the message was sent)
|
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatapublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic IdDt getIdentifier()
null.
Definition: The identifier of this message
public MessageHeader setIdentifier(IdDt theValue)
Definition: The identifier of this message
public MessageHeader setIdentifier(String theId)
Definition: The identifier of this message
public InstantDt getTimestamp()
null.
Definition: The time that the message was sent
public MessageHeader setTimestamp(InstantDt theValue)
Definition: The time that the message was sent
public MessageHeader setTimestamp(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: The time that the message was sent
public MessageHeader setTimestampWithMillisPrecision(Date theDate)
Definition: The time that the message was sent
public CodingDt getEvent()
null.
Definition: Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\"
public MessageHeader setEvent(CodingDt theValue)
Definition: Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\"
public MessageHeader.Response getResponse()
null.
Definition: Information about the message that this message is a response to. Only present if this message is a response.
public MessageHeader setResponse(MessageHeader.Response theValue)
Definition: Information about the message that this message is a response to. Only present if this message is a response.
public MessageHeader.Source getSource()
null.
Definition: The source application from which this message originated
public MessageHeader setSource(MessageHeader.Source theValue)
Definition: The source application from which this message originated
public List<MessageHeader.Destination> getDestination()
null.
Definition: The destination application which the message is intended for
public MessageHeader setDestination(List<MessageHeader.Destination> theValue)
Definition: The destination application which the message is intended for
public MessageHeader.Destination addDestination()
Definition: The destination application which the message is intended for
public MessageHeader.Destination getDestinationFirstRep()
Definition: The destination application which the message is intended for
public ResourceReferenceDt getEnterer()
null.
Definition: The 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
public MessageHeader setEnterer(ResourceReferenceDt theValue)
Definition: The 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
public ResourceReferenceDt getAuthor()
null.
Definition: The 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 MessageHeader. Can provide other authors in extensions
public MessageHeader setAuthor(ResourceReferenceDt theValue)
Definition: The 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 MessageHeader. Can provide other authors in extensions
public ResourceReferenceDt getReceiver()
null.
Definition: Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.
public MessageHeader setReceiver(ResourceReferenceDt theValue)
Definition: Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.
public ResourceReferenceDt getResponsible()
null.
Definition: The 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
public MessageHeader setResponsible(ResourceReferenceDt theValue)
Definition: The 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
public CodeableConceptDt getReason()
null.
Definition: Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message
public MessageHeader setReason(CodeableConceptDt theValue)
Definition: Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message
public List<ResourceReferenceDt> getData()
null.
Definition: The actual data of the message - a reference to the root/focus class of the event.
public MessageHeader setData(List<ResourceReferenceDt> theValue)
Definition: The actual data of the message - a reference to the root/focus class of the event.
public ResourceReferenceDt addData()
Definition: The actual data of the message - a reference to the root/focus class of the event.
Copyright © 2014 University Health Network. All rights reserved.