Class MessageHeader
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
Definition: The header for a message exchange that is either requesting or responding to an action. The reference(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
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: MessageHeader.destination (who.focus)static class
Block class for child element: MessageHeader.response ()static class
Block class for child element: MessageHeader.source (who.actor) -
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for authorstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for datastatic final ca.uhn.fhir.rest.gclient.StringClientParam
Fluent Client search parameter constant for destinationstatic final ca.uhn.fhir.rest.gclient.UriClientParam
Fluent Client search parameter constant for destination-uristatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for entererstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for eventstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for receiverstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for response-idstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for responsiblestatic final ca.uhn.fhir.rest.gclient.StringClientParam
Fluent Client search parameter constant for sourcestatic final ca.uhn.fhir.rest.gclient.UriClientParam
Fluent Client search parameter constant for source-uristatic final String
Search parameter constant for authorstatic final String
Search parameter constant for codestatic final String
Search parameter constant for datastatic final String
Search parameter constant for destinationstatic final String
Search parameter constant for destination-uristatic final String
Search parameter constant for entererstatic final String
Search parameter constant for eventstatic final String
Search parameter constant for receiverstatic final String
Search parameter constant for response-idstatic final String
Search parameter constant for responsiblestatic final String
Search parameter constant for sourcestatic final String
Search parameter constant for source-uristatic final String
Search parameter constant for targetstatic final String
Search parameter constant for timestampstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for targetstatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for timestampFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddData()
Adds and returns a new value for data ()Adds and returns a new value for destination (who.focus)addDestination
(MessageHeader.Destination theValue) Adds a given new value for destination (who.focus)<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for author (who.author).getData()
Gets the value(s) for data ().Gets the value(s) for destination (who.focus).Gets the first repetition for destination (who.focus), creating it if it does not already exist.Gets the value(s) for enterer (who.author).getEvent()
Gets the value(s) for event (what).Gets the value(s) for reason (why).Gets the value(s) for receiver (who.focus).Gets the value(s) for response ().Gets the value(s) for responsible (who.witness).Gets the value(s) for source (who.actor).ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for timestamp (when.init).ca.uhn.fhir.model.primitive.InstantDt
Gets the value(s) for timestamp (when.init).boolean
isEmpty()
setAuthor
(ResourceReferenceDt theValue) Sets the value(s) for author (who.author)setData
(List<ResourceReferenceDt> theValue) Sets the value(s) for data ()setDestination
(List<MessageHeader.Destination> theValue) Sets the value(s) for destination (who.focus)setEnterer
(ResourceReferenceDt theValue) Sets the value(s) for enterer (who.author)Sets the value(s) for event (what)setReason
(CodeableConceptDt theValue) Sets the value(s) for reason (why)setReceiver
(ResourceReferenceDt theValue) Sets the value(s) for receiver (who.focus)setResponse
(MessageHeader.Response theValue) Sets the value(s) for response ()setResponsible
(ResourceReferenceDt theValue) Sets the value(s) for responsible (who.witness)setSource
(MessageHeader.Source theValue) Sets the value(s) for source (who.actor)setTimestamp
(ca.uhn.fhir.model.primitive.InstantDt theValue) Sets the value(s) for timestamp (when.init)setTimestamp
(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for timestamp (when.init)setTimestampWithMillisPrecision
(Date theDate) Sets the value for timestamp (when.init)Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_TIMESTAMP
Search parameter constant for timestampDescription:
Type: date
Path: MessageHeader.timestamp
- See Also:
-
TIMESTAMP
Fluent Client search parameter constant for timestampDescription:
Type: date
Path: MessageHeader.timestamp
-
SP_EVENT
Search parameter constant for eventDescription:
Type: token
Path: MessageHeader.event
- See Also:
-
EVENT
Fluent Client search parameter constant for eventDescription:
Type: token
Path: MessageHeader.event
-
SP_RESPONSE_ID
Search parameter constant for response-idDescription:
Type: token
Path: MessageHeader.response.identifier
- See Also:
-
RESPONSE_ID
Fluent Client search parameter constant for response-idDescription:
Type: token
Path: MessageHeader.response.identifier
-
SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: MessageHeader.response.code
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: MessageHeader.response.code
-
SP_SOURCE
Search parameter constant for sourceDescription:
Type: string
Path: MessageHeader.source.name
- See Also:
-
SOURCE
Fluent Client search parameter constant for sourceDescription:
Type: string
Path: MessageHeader.source.name
-
SP_SOURCE_URI
Search parameter constant for source-uriDescription:
Type: uri
Path: MessageHeader.source.endpoint
- See Also:
-
SOURCE_URI
Fluent Client search parameter constant for source-uriDescription:
Type: uri
Path: MessageHeader.source.endpoint
-
SP_DESTINATION
Search parameter constant for destinationDescription:
Type: string
Path: MessageHeader.destination.name
- See Also:
-
DESTINATION
Fluent Client search parameter constant for destinationDescription:
Type: string
Path: MessageHeader.destination.name
-
SP_DESTINATION_URI
Search parameter constant for destination-uriDescription:
Type: uri
Path: MessageHeader.destination.endpoint
- See Also:
-
DESTINATION_URI
Fluent Client search parameter constant for destination-uriDescription:
Type: uri
Path: MessageHeader.destination.endpoint
-
SP_DATA
Search parameter constant for dataDescription:
Type: reference
Path: MessageHeader.data
- See Also:
-
DATA
Fluent Client search parameter constant for dataDescription:
Type: reference
Path: MessageHeader.data
-
SP_RECEIVER
Search parameter constant for receiverDescription:
Type: reference
Path: MessageHeader.receiver
- See Also:
-
RECEIVER
Fluent Client search parameter constant for receiverDescription:
Type: reference
Path: MessageHeader.receiver
-
SP_AUTHOR
Search parameter constant for authorDescription:
Type: reference
Path: MessageHeader.author
- See Also:
-
AUTHOR
Fluent Client search parameter constant for authorDescription:
Type: reference
Path: MessageHeader.author
-
SP_RESPONSIBLE
Search parameter constant for responsibleDescription:
Type: reference
Path: MessageHeader.responsible
- See Also:
-
RESPONSIBLE
Fluent Client search parameter constant for responsibleDescription:
Type: reference
Path: MessageHeader.responsible
-
SP_ENTERER
Search parameter constant for entererDescription:
Type: reference
Path: MessageHeader.enterer
- See Also:
-
ENTERER
Fluent Client search parameter constant for entererDescription:
Type: reference
Path: MessageHeader.enterer
-
SP_TARGET
Search parameter constant for targetDescription:
Type: reference
Path: MessageHeader.destination.target
- See Also:
-
TARGET
Fluent Client search parameter constant for targetDescription:
Type: reference
Path: MessageHeader.destination.target
-
INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:author". -
INCLUDE_DATA
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:data". -
INCLUDE_ENTERER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:enterer". -
INCLUDE_RECEIVER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:receiver". -
INCLUDE_RESPONSIBLE
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:responsible". -
INCLUDE_TARGET
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:target".
-
-
Constructor Details
-
MessageHeader
public MessageHeader()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getTimestampElement
Gets the value(s) for timestamp (when.init). creating it if it does not exist. Will not returnnull
.Definition: The time that the message was sent
-
getTimestamp
Gets the value(s) for timestamp (when.init). creating it if it does not exist. This method may returnnull
.Definition: The time that the message was sent
-
setTimestamp
Sets the value(s) for timestamp (when.init)Definition: The time that the message was sent
-
setTimestampWithMillisPrecision
Sets the value for timestamp (when.init)Definition: The time that the message was sent
-
setTimestamp
public MessageHeader setTimestamp(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for timestamp (when.init)Definition: The time that the message was sent
-
getEvent
Gets the value(s) for event (what). creating it if it does not exist. Will not returnnull
.Definition: Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-events\"
-
setEvent
Sets the value(s) for event (what)Definition: Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-events\"
-
getResponse
Gets the value(s) for response (). creating it if it does not exist. Will not returnnull
.Definition: Information about the message that this message is a response to. Only present if this message is a response.
-
setResponse
Sets the value(s) for response ()Definition: Information about the message that this message is a response to. Only present if this message is a response.
-
getSource
Gets the value(s) for source (who.actor). creating it if it does not exist. Will not returnnull
.Definition: The source application from which this message originated
-
setSource
Sets the value(s) for source (who.actor)Definition: The source application from which this message originated
-
getDestination
Gets the value(s) for destination (who.focus). creating it if it does not exist. Will not returnnull
.Definition: The destination application which the message is intended for
-
setDestination
Sets the value(s) for destination (who.focus)Definition: The destination application which the message is intended for
-
addDestination
Adds and returns a new value for destination (who.focus)Definition: The destination application which the message is intended for
-
addDestination
Adds a given new value for destination (who.focus)Definition: The destination application which the message is intended for
- Parameters:
theValue
- The destination to add (must not benull
)
-
getDestinationFirstRep
Gets the first repetition for destination (who.focus), creating it if it does not already exist.Definition: The destination application which the message is intended for
-
getEnterer
Gets the value(s) for enterer (who.author). creating it if it does not exist. Will not returnnull
.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
-
setEnterer
Sets the value(s) for enterer (who.author)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
-
getAuthor
Gets the value(s) for author (who.author). creating it if it does not exist. Will not returnnull
.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
-
setAuthor
Sets the value(s) for author (who.author)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
-
getReceiver
Gets the value(s) for receiver (who.focus). creating it if it does not exist. Will not returnnull
.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.
-
setReceiver
Sets the value(s) for receiver (who.focus)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.
-
getResponsible
Gets the value(s) for responsible (who.witness). creating it if it does not exist. Will not returnnull
.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
-
setResponsible
Sets the value(s) for responsible (who.witness)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
-
getReason
Gets the value(s) for reason (why). creating it if it does not exist. Will not returnnull
.Definition: Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message
-
setReason
Sets the value(s) for reason (why)Definition: Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message
-
getData
Gets the value(s) for data (). creating it if it does not exist. Will not returnnull
.Definition: The actual data of the message - a reference to the root/focus class of the event.
-
setData
Sets the value(s) for data ()Definition: The actual data of the message - a reference to the root/focus class of the event.
-
addData
Adds and returns a new value for data ()Definition: The actual data of the message - a reference to the root/focus class of the event.
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-