Class MessageHeader
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class MessageHeader extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR MessageHeader Resource (infrastructure.exchange)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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageHeader.DestinationBlock class for child element: MessageHeader.destination (who.focus)static classMessageHeader.ResponseBlock class for child element: MessageHeader.response ()static classMessageHeader.SourceBlock class for child element: MessageHeader.source (who.actor)
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.ReferenceClientParamAUTHORFluent Client search parameter constant for authorstatic ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamDATAFluent Client search parameter constant for datastatic ca.uhn.fhir.rest.gclient.StringClientParamDESTINATIONFluent Client search parameter constant for destinationstatic ca.uhn.fhir.rest.gclient.UriClientParamDESTINATION_URIFluent Client search parameter constant for destination-uristatic ca.uhn.fhir.rest.gclient.ReferenceClientParamENTERERFluent Client search parameter constant for entererstatic ca.uhn.fhir.rest.gclient.TokenClientParamEVENTFluent Client search parameter constant for eventstatic ca.uhn.fhir.model.api.IncludeINCLUDE_AUTHORConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_DATAConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_ENTERERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_RECEIVERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_RESPONSIBLEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_TARGETConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamRECEIVERFluent Client search parameter constant for receiverstatic ca.uhn.fhir.rest.gclient.TokenClientParamRESPONSE_IDFluent Client search parameter constant for response-idstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamRESPONSIBLEFluent Client search parameter constant for responsiblestatic ca.uhn.fhir.rest.gclient.StringClientParamSOURCEFluent Client search parameter constant for sourcestatic ca.uhn.fhir.rest.gclient.UriClientParamSOURCE_URIFluent Client search parameter constant for source-uristatic StringSP_AUTHORSearch parameter constant for authorstatic StringSP_CODESearch parameter constant for codestatic StringSP_DATASearch parameter constant for datastatic StringSP_DESTINATIONSearch parameter constant for destinationstatic StringSP_DESTINATION_URISearch parameter constant for destination-uristatic StringSP_ENTERERSearch parameter constant for entererstatic StringSP_EVENTSearch parameter constant for eventstatic StringSP_RECEIVERSearch parameter constant for receiverstatic StringSP_RESPONSE_IDSearch parameter constant for response-idstatic StringSP_RESPONSIBLESearch parameter constant for responsiblestatic StringSP_SOURCESearch parameter constant for sourcestatic StringSP_SOURCE_URISearch parameter constant for source-uristatic StringSP_TARGETSearch parameter constant for targetstatic StringSP_TIMESTAMPSearch parameter constant for timestampstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamTARGETFluent Client search parameter constant for targetstatic ca.uhn.fhir.rest.gclient.DateClientParamTIMESTAMPFluent Client search parameter constant for timestamp-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description MessageHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceReferenceDtaddData()Adds and returns a new value for data ()MessageHeader.DestinationaddDestination()Adds and returns a new value for destination (who.focus)MessageHeaderaddDestination(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)ResourceReferenceDtgetAuthor()Gets the value(s) for author (who.author).List<ResourceReferenceDt>getData()Gets the value(s) for data ().List<MessageHeader.Destination>getDestination()Gets the value(s) for destination (who.focus).MessageHeader.DestinationgetDestinationFirstRep()Gets the first repetition for destination (who.focus), creating it if it does not already exist.ResourceReferenceDtgetEnterer()Gets the value(s) for enterer (who.author).CodingDtgetEvent()Gets the value(s) for event (what).CodeableConceptDtgetReason()Gets the value(s) for reason (why).ResourceReferenceDtgetReceiver()Gets the value(s) for receiver (who.focus).StringgetResourceName()MessageHeader.ResponsegetResponse()Gets the value(s) for response ().ResourceReferenceDtgetResponsible()Gets the value(s) for responsible (who.witness).MessageHeader.SourcegetSource()Gets the value(s) for source (who.actor).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()DategetTimestamp()Gets the value(s) for timestamp (when.init).ca.uhn.fhir.model.primitive.InstantDtgetTimestampElement()Gets the value(s) for timestamp (when.init).booleanisEmpty()MessageHeadersetAuthor(ResourceReferenceDt theValue)Sets the value(s) for author (who.author)MessageHeadersetData(List<ResourceReferenceDt> theValue)Sets the value(s) for data ()MessageHeadersetDestination(List<MessageHeader.Destination> theValue)Sets the value(s) for destination (who.focus)MessageHeadersetEnterer(ResourceReferenceDt theValue)Sets the value(s) for enterer (who.author)MessageHeadersetEvent(CodingDt theValue)Sets the value(s) for event (what)MessageHeadersetReason(CodeableConceptDt theValue)Sets the value(s) for reason (why)MessageHeadersetReceiver(ResourceReferenceDt theValue)Sets the value(s) for receiver (who.focus)MessageHeadersetResponse(MessageHeader.Response theValue)Sets the value(s) for response ()MessageHeadersetResponsible(ResourceReferenceDt theValue)Sets the value(s) for responsible (who.witness)MessageHeadersetSource(MessageHeader.Source theValue)Sets the value(s) for source (who.actor)MessageHeadersetTimestamp(ca.uhn.fhir.model.primitive.InstantDt theValue)Sets the value(s) for timestamp (when.init)MessageHeadersetTimestamp(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for timestamp (when.init)MessageHeadersetTimestampWithMillisPrecision(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
-
-
-
-
Field Detail
-
SP_TIMESTAMP
public static final String SP_TIMESTAMP
Search parameter constant for timestampDescription:
Type: date
Path: MessageHeader.timestamp
- See Also:
- Constant Field Values
-
TIMESTAMP
public static final ca.uhn.fhir.rest.gclient.DateClientParam TIMESTAMP
Fluent Client search parameter constant for timestampDescription:
Type: date
Path: MessageHeader.timestamp
-
SP_EVENT
public static final String SP_EVENT
Search parameter constant for eventDescription:
Type: token
Path: MessageHeader.event
- See Also:
- Constant Field Values
-
EVENT
public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVENT
Fluent Client search parameter constant for eventDescription:
Type: token
Path: MessageHeader.event
-
SP_RESPONSE_ID
public static final String SP_RESPONSE_ID
Search parameter constant for response-idDescription:
Type: token
Path: MessageHeader.response.identifier
- See Also:
- Constant Field Values
-
RESPONSE_ID
public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESPONSE_ID
Fluent Client search parameter constant for response-idDescription:
Type: token
Path: MessageHeader.response.identifier
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: MessageHeader.response.code
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: MessageHeader.response.code
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter constant for sourceDescription:
Type: string
Path: MessageHeader.source.name
- See Also:
- Constant Field Values
-
SOURCE
public static final ca.uhn.fhir.rest.gclient.StringClientParam SOURCE
Fluent Client search parameter constant for sourceDescription:
Type: string
Path: MessageHeader.source.name
-
SP_SOURCE_URI
public static final String SP_SOURCE_URI
Search parameter constant for source-uriDescription:
Type: uri
Path: MessageHeader.source.endpoint
- See Also:
- Constant Field Values
-
SOURCE_URI
public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_URI
Fluent Client search parameter constant for source-uriDescription:
Type: uri
Path: MessageHeader.source.endpoint
-
SP_DESTINATION
public static final String SP_DESTINATION
Search parameter constant for destinationDescription:
Type: string
Path: MessageHeader.destination.name
- See Also:
- Constant Field Values
-
DESTINATION
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESTINATION
Fluent Client search parameter constant for destinationDescription:
Type: string
Path: MessageHeader.destination.name
-
SP_DESTINATION_URI
public static final String SP_DESTINATION_URI
Search parameter constant for destination-uriDescription:
Type: uri
Path: MessageHeader.destination.endpoint
- See Also:
- Constant Field Values
-
DESTINATION_URI
public static final ca.uhn.fhir.rest.gclient.UriClientParam DESTINATION_URI
Fluent Client search parameter constant for destination-uriDescription:
Type: uri
Path: MessageHeader.destination.endpoint
-
SP_DATA
public static final String SP_DATA
Search parameter constant for dataDescription:
Type: reference
Path: MessageHeader.data
- See Also:
- Constant Field Values
-
DATA
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DATA
Fluent Client search parameter constant for dataDescription:
Type: reference
Path: MessageHeader.data
-
SP_RECEIVER
public static final String SP_RECEIVER
Search parameter constant for receiverDescription:
Type: reference
Path: MessageHeader.receiver
- See Also:
- Constant Field Values
-
RECEIVER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECEIVER
Fluent Client search parameter constant for receiverDescription:
Type: reference
Path: MessageHeader.receiver
-
SP_AUTHOR
public static final String SP_AUTHOR
Search parameter constant for authorDescription:
Type: reference
Path: MessageHeader.author
- See Also:
- Constant Field Values
-
AUTHOR
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR
Fluent Client search parameter constant for authorDescription:
Type: reference
Path: MessageHeader.author
-
SP_RESPONSIBLE
public static final String SP_RESPONSIBLE
Search parameter constant for responsibleDescription:
Type: reference
Path: MessageHeader.responsible
- See Also:
- Constant Field Values
-
RESPONSIBLE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESPONSIBLE
Fluent Client search parameter constant for responsibleDescription:
Type: reference
Path: MessageHeader.responsible
-
SP_ENTERER
public static final String SP_ENTERER
Search parameter constant for entererDescription:
Type: reference
Path: MessageHeader.enterer
- See Also:
- Constant Field Values
-
ENTERER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTERER
Fluent Client search parameter constant for entererDescription:
Type: reference
Path: MessageHeader.enterer
-
SP_TARGET
public static final String SP_TARGET
Search parameter constant for targetDescription:
Type: reference
Path: MessageHeader.destination.target
- See Also:
- Constant Field Values
-
TARGET
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET
Fluent Client search parameter constant for targetDescription:
Type: reference
Path: MessageHeader.destination.target
-
INCLUDE_AUTHOR
public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:author".
-
INCLUDE_DATA
public static final ca.uhn.fhir.model.api.Include INCLUDE_DATA
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:data".
-
INCLUDE_ENTERER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTERER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:enterer".
-
INCLUDE_RECEIVER
public static final ca.uhn.fhir.model.api.Include INCLUDE_RECEIVER
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:receiver".
-
INCLUDE_RESPONSIBLE
public static final ca.uhn.fhir.model.api.Include INCLUDE_RESPONSIBLE
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:responsible".
-
INCLUDE_TARGET
public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET
Constant for fluent queries to be used to add include statements. Specifies the path value of "MessageHeader:target".
-
-
Constructor Detail
-
MessageHeader
public MessageHeader()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getTimestampElement
public ca.uhn.fhir.model.primitive.InstantDt 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
public Date 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
public MessageHeader setTimestamp(ca.uhn.fhir.model.primitive.InstantDt theValue)
Sets the value(s) for timestamp (when.init)Definition: The time that the message was sent
-
setTimestampWithMillisPrecision
public MessageHeader setTimestampWithMillisPrecision(Date theDate)
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
public CodingDt 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
public MessageHeader setEvent(CodingDt theValue)
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
public MessageHeader.Response 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
public MessageHeader setResponse(MessageHeader.Response theValue)
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
public MessageHeader.Source 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
public MessageHeader setSource(MessageHeader.Source theValue)
Sets the value(s) for source (who.actor)Definition: The source application from which this message originated
-
getDestination
public List<MessageHeader.Destination> 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
public MessageHeader setDestination(List<MessageHeader.Destination> theValue)
Sets the value(s) for destination (who.focus)Definition: The destination application which the message is intended for
-
addDestination
public MessageHeader.Destination addDestination()
Adds and returns a new value for destination (who.focus)Definition: The destination application which the message is intended for
-
addDestination
public MessageHeader addDestination(MessageHeader.Destination theValue)
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
public MessageHeader.Destination 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
public ResourceReferenceDt 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
public MessageHeader setEnterer(ResourceReferenceDt theValue)
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
public ResourceReferenceDt 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
public MessageHeader setAuthor(ResourceReferenceDt theValue)
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
public ResourceReferenceDt 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
public MessageHeader setReceiver(ResourceReferenceDt theValue)
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
public ResourceReferenceDt 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
public MessageHeader setResponsible(ResourceReferenceDt theValue)
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
public CodeableConceptDt 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
public MessageHeader setReason(CodeableConceptDt theValue)
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
public List<ResourceReferenceDt> 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
public MessageHeader setData(List<ResourceReferenceDt> theValue)
Sets the value(s) for data ()Definition: The actual data of the message - a reference to the root/focus class of the event.
-
addData
public ResourceReferenceDt 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
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-