
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBlock class for child element: MessageHeader.destination (who.focus)static classBlock class for child element: MessageHeader.response ()static classBlock class for child element: MessageHeader.source (who.actor)
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for authorstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for datastatic final ca.uhn.fhir.rest.gclient.StringClientParamFluent Client search parameter constant for destinationstatic final ca.uhn.fhir.rest.gclient.UriClientParamFluent Client search parameter constant for destination-uristatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for entererstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for eventstatic final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for receiverstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for response-idstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for responsiblestatic final ca.uhn.fhir.rest.gclient.StringClientParamFluent Client search parameter constant for sourcestatic final ca.uhn.fhir.rest.gclient.UriClientParamFluent Client search parameter constant for source-uristatic final StringSearch parameter constant for authorstatic final StringSearch parameter constant for codestatic final StringSearch parameter constant for datastatic final StringSearch parameter constant for destinationstatic final StringSearch parameter constant for destination-uristatic final StringSearch parameter constant for entererstatic final StringSearch parameter constant for eventstatic final StringSearch parameter constant for receiverstatic final StringSearch parameter constant for response-idstatic final StringSearch parameter constant for responsiblestatic final StringSearch parameter constant for sourcestatic final StringSearch parameter constant for source-uristatic final StringSearch parameter constant for targetstatic final StringSearch parameter constant for timestampstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for targetstatic final ca.uhn.fhir.rest.gclient.DateClientParamFluent Client search parameter constant for timestampFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResourceRES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResourceINCLUDE_ALL, WILDCARD_ALL_SET
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.FhirVersionEnumGets the value(s) for timestamp (when.init).ca.uhn.fhir.model.primitive.InstantDtGets the value(s) for timestamp (when.init).booleanisEmpty()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.BaseResourcegetContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toStringMethods inherited from class ca.uhn.fhir.model.api.BaseElementaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBasefhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResourcegetIdElement, isDeleted, setId, setIdMethods inherited from interface ca.uhn.fhir.model.api.IResourcegetContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
- 
Field Details- 
SP_TIMESTAMPSearch parameter constant for timestampDescription: 
 Type: date
 Path: MessageHeader.timestamp
 - See Also:
 
- 
TIMESTAMPFluent Client search parameter constant for timestampDescription: 
 Type: date
 Path: MessageHeader.timestamp
 
- 
SP_EVENTSearch parameter constant for eventDescription: 
 Type: token
 Path: MessageHeader.event
 - See Also:
 
- 
EVENTFluent Client search parameter constant for eventDescription: 
 Type: token
 Path: MessageHeader.event
 
- 
SP_RESPONSE_IDSearch parameter constant for response-idDescription: 
 Type: token
 Path: MessageHeader.response.identifier
 - See Also:
 
- 
RESPONSE_IDFluent Client search parameter constant for response-idDescription: 
 Type: token
 Path: MessageHeader.response.identifier
 
- 
SP_CODESearch parameter constant for codeDescription: 
 Type: token
 Path: MessageHeader.response.code
 - See Also:
 
- 
CODEFluent Client search parameter constant for codeDescription: 
 Type: token
 Path: MessageHeader.response.code
 
- 
SP_SOURCESearch parameter constant for sourceDescription: 
 Type: string
 Path: MessageHeader.source.name
 - See Also:
 
- 
SOURCEFluent Client search parameter constant for sourceDescription: 
 Type: string
 Path: MessageHeader.source.name
 
- 
SP_SOURCE_URISearch parameter constant for source-uriDescription: 
 Type: uri
 Path: MessageHeader.source.endpoint
 - See Also:
 
- 
SOURCE_URIFluent Client search parameter constant for source-uriDescription: 
 Type: uri
 Path: MessageHeader.source.endpoint
 
- 
SP_DESTINATIONSearch parameter constant for destinationDescription: 
 Type: string
 Path: MessageHeader.destination.name
 - See Also:
 
- 
DESTINATIONFluent Client search parameter constant for destinationDescription: 
 Type: string
 Path: MessageHeader.destination.name
 
- 
SP_DESTINATION_URISearch parameter constant for destination-uriDescription: 
 Type: uri
 Path: MessageHeader.destination.endpoint
 - See Also:
 
- 
DESTINATION_URIFluent Client search parameter constant for destination-uriDescription: 
 Type: uri
 Path: MessageHeader.destination.endpoint
 
- 
SP_DATASearch parameter constant for dataDescription: 
 Type: reference
 Path: MessageHeader.data
 - See Also:
 
- 
DATAFluent Client search parameter constant for dataDescription: 
 Type: reference
 Path: MessageHeader.data
 
- 
SP_RECEIVERSearch parameter constant for receiverDescription: 
 Type: reference
 Path: MessageHeader.receiver
 - See Also:
 
- 
RECEIVERFluent Client search parameter constant for receiverDescription: 
 Type: reference
 Path: MessageHeader.receiver
 
- 
SP_AUTHORSearch parameter constant for authorDescription: 
 Type: reference
 Path: MessageHeader.author
 - See Also:
 
- 
AUTHORFluent Client search parameter constant for authorDescription: 
 Type: reference
 Path: MessageHeader.author
 
- 
SP_RESPONSIBLESearch parameter constant for responsibleDescription: 
 Type: reference
 Path: MessageHeader.responsible
 - See Also:
 
- 
RESPONSIBLEFluent Client search parameter constant for responsibleDescription: 
 Type: reference
 Path: MessageHeader.responsible
 
- 
SP_ENTERERSearch parameter constant for entererDescription: 
 Type: reference
 Path: MessageHeader.enterer
 - See Also:
 
- 
ENTERERFluent Client search parameter constant for entererDescription: 
 Type: reference
 Path: MessageHeader.enterer
 
- 
SP_TARGETSearch parameter constant for targetDescription: 
 Type: reference
 Path: MessageHeader.destination.target
 - See Also:
 
- 
TARGETFluent Client search parameter constant for targetDescription: 
 Type: reference
 Path: MessageHeader.destination.target
 
- 
INCLUDE_AUTHORConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:author".
- 
INCLUDE_DATAConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:data".
- 
INCLUDE_ENTERERConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:enterer".
- 
INCLUDE_RECEIVERConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:receiver".
- 
INCLUDE_RESPONSIBLEConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:responsible".
- 
INCLUDE_TARGETConstant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:target".
 
- 
- 
Constructor Details- 
MessageHeaderpublic MessageHeader()
 
- 
- 
Method Details- 
isEmpty- Specified by:
- isEmptyin interface- org.hl7.fhir.instance.model.api.IBase
 
- 
getAllPopulatedChildElementsOfTypepublic <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
- getAllPopulatedChildElementsOfTypein interface- ca.uhn.fhir.model.api.ICompositeElement
 
- 
getTimestampElementGets 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 
- 
getTimestampGets 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 
- 
setTimestampSets the value(s) for timestamp (when.init)Definition: The time that the message was sent 
- 
setTimestampWithMillisPrecisionSets the value for timestamp (when.init)Definition: The time that the message was sent 
- 
setTimestamppublic 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 
- 
getEventGets 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\" 
- 
setEventSets 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\" 
- 
getResponseGets 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. 
- 
setResponseSets 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. 
- 
getSourceGets 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 
- 
setSourceSets the value(s) for source (who.actor)Definition: The source application from which this message originated 
- 
getDestinationGets 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 
- 
setDestinationSets the value(s) for destination (who.focus)Definition: The destination application which the message is intended for 
- 
addDestinationAdds and returns a new value for destination (who.focus)Definition: The destination application which the message is intended for 
- 
addDestinationAdds 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 be- null)
 
- 
getDestinationFirstRepGets 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 
- 
getEntererGets 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 
- 
setEntererSets 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 
- 
getAuthorGets 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 
- 
setAuthorSets 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 
- 
getReceiverGets 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. 
- 
setReceiverSets 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. 
- 
getResponsibleGets 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 
- 
setResponsibleSets 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 
- 
getReasonGets 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 
- 
setReasonSets 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 
- 
getDataGets 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. 
- 
setDataSets the value(s) for data ()Definition: The actual data of the message - a reference to the root/focus class of the event. 
- 
addDataAdds 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:
- getResourceNamein interface- ca.uhn.fhir.model.api.IResource
 
- 
getStructureFhirVersionEnum- Specified by:
- getStructureFhirVersionEnumin interface- org.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
- getStructureFhirVersionEnumin interface- ca.uhn.fhir.model.api.IResource
 
 
-