Package org.hl7.fhir.dstu2.model
Class MessageHeader
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.MessageHeader
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class MessageHeader extends DomainResource
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageHeader.MessageDestinationComponentstatic classMessageHeader.MessageHeaderResponseComponentstatic classMessageHeader.MessageSourceComponentstatic classMessageHeader.ResponseTypestatic classMessageHeader.ResponseTypeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceauthorThe logical author of the message - the person or device that decided the described event should happen.protected PractitionerauthorTargetThe actual object that is the target of the reference (The logical author of the message - the person or device that decided the described event should happen.protected List<Reference>dataThe actual data of the message - a reference to the root/focus class of the event.protected List<Resource>dataTargetThe actual objects that are the target of the reference (The actual data of the message - a reference to the root/focus class of the event.)protected List<MessageHeader.MessageDestinationComponent>destinationThe destination application which the message is intended for.protected ReferenceentererThe person or device that performed the data entry leading to this message.protected PractitionerentererTargetThe actual object that is the target of the reference (The person or device that performed the data entry leading to this message.protected CodingeventCode that identifies the event this message represents and connects it with its definition.protected CodeableConceptreasonCoded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.protected ReferencereceiverAllows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.protected ResourcereceiverTargetThe actual object that is the target of the reference (Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.)protected MessageHeader.MessageHeaderResponseComponentresponseInformation about the message that this message is a response to.protected ReferenceresponsibleThe person or organization that accepts overall responsibility for the contents of the message.protected ResourceresponsibleTargetThe actual object that is the target of the reference (The person or organization that accepts overall responsibility for the contents of the message.protected MessageHeader.MessageSourceComponentsourceThe source application from which this message originated.static StringSP_AUTHORstatic StringSP_CODEstatic StringSP_DATAstatic StringSP_DESTINATIONstatic StringSP_DESTINATIONURIstatic StringSP_ENTERERstatic StringSP_EVENTstatic StringSP_RECEIVERstatic StringSP_RESPONSEIDstatic StringSP_RESPONSIBLEstatic StringSP_SOURCEstatic StringSP_SOURCEURIstatic StringSP_TARGETstatic StringSP_TIMESTAMPprotected InstantTypetimestampThe time that the message was sent.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description MessageHeader()MessageHeader(InstantType timestamp, Coding event, MessageHeader.MessageSourceComponent source)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
timestamp
protected InstantType timestamp
The time that the message was sent.
-
event
protected Coding event
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".
-
response
protected MessageHeader.MessageHeaderResponseComponent response
Information about the message that this message is a response to. Only present if this message is a response.
-
source
protected MessageHeader.MessageSourceComponent source
The source application from which this message originated.
-
destination
protected List<MessageHeader.MessageDestinationComponent> destination
The destination application which the message is intended for.
-
enterer
protected Reference enterer
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.
-
entererTarget
protected Practitioner entererTarget
The actual object that is the target of the reference (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.)
-
author
protected Reference author
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.
-
authorTarget
protected Practitioner authorTarget
The actual object that is the target of the reference (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.)
-
receiver
protected Reference receiver
Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.
-
receiverTarget
protected Resource receiverTarget
The actual object that is the target of the reference (Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.)
-
responsible
protected Reference responsible
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.
-
responsibleTarget
protected Resource responsibleTarget
The actual object that is the target of the reference (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.)
-
reason
protected CodeableConcept reason
Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.
-
data
protected List<Reference> data
The actual data of the message - a reference to the root/focus class of the event.
-
dataTarget
protected List<Resource> dataTarget
The actual objects that are the target of the reference (The actual data of the message - a reference to the root/focus class of the event.)
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_DATA
public static final String SP_DATA
- See Also:
- Constant Field Values
-
SP_RECEIVER
public static final String SP_RECEIVER
- See Also:
- Constant Field Values
-
SP_AUTHOR
public static final String SP_AUTHOR
- See Also:
- Constant Field Values
-
SP_DESTINATION
public static final String SP_DESTINATION
- See Also:
- Constant Field Values
-
SP_SOURCE
public static final String SP_SOURCE
- See Also:
- Constant Field Values
-
SP_TARGET
public static final String SP_TARGET
- See Also:
- Constant Field Values
-
SP_DESTINATIONURI
public static final String SP_DESTINATIONURI
- See Also:
- Constant Field Values
-
SP_SOURCEURI
public static final String SP_SOURCEURI
- See Also:
- Constant Field Values
-
SP_RESPONSIBLE
public static final String SP_RESPONSIBLE
- See Also:
- Constant Field Values
-
SP_RESPONSEID
public static final String SP_RESPONSEID
- See Also:
- Constant Field Values
-
SP_ENTERER
public static final String SP_ENTERER
- See Also:
- Constant Field Values
-
SP_EVENT
public static final String SP_EVENT
- See Also:
- Constant Field Values
-
SP_TIMESTAMP
public static final String SP_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageHeader
public MessageHeader()
-
MessageHeader
public MessageHeader(InstantType timestamp, Coding event, MessageHeader.MessageSourceComponent source)
-
-
Method Detail
-
getTimestampElement
public InstantType getTimestampElement()
- Returns:
timestamp(The time that the message was sent.). This is the underlying object with id, value and extensions. The accessor "getTimestamp" gives direct access to the value
-
hasTimestampElement
public boolean hasTimestampElement()
-
hasTimestamp
public boolean hasTimestamp()
-
setTimestampElement
public MessageHeader setTimestampElement(InstantType value)
- Parameters:
value-timestamp(The time that the message was sent.). This is the underlying object with id, value and extensions. The accessor "getTimestamp" gives direct access to the value
-
getTimestamp
public Date getTimestamp()
- Returns:
- The time that the message was sent.
-
setTimestamp
public MessageHeader setTimestamp(Date value)
- Parameters:
value- The time that the message was sent.
-
getEvent
public Coding getEvent()
- Returns:
event(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".)
-
hasEvent
public boolean hasEvent()
-
setEvent
public MessageHeader setEvent(Coding value)
- Parameters:
value-event(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.MessageHeaderResponseComponent getResponse()
- Returns:
response(Information about the message that this message is a response to. Only present if this message is a response.)
-
hasResponse
public boolean hasResponse()
-
setResponse
public MessageHeader setResponse(MessageHeader.MessageHeaderResponseComponent value)
- Parameters:
value-response(Information about the message that this message is a response to. Only present if this message is a response.)
-
getSource
public MessageHeader.MessageSourceComponent getSource()
- Returns:
source(The source application from which this message originated.)
-
hasSource
public boolean hasSource()
-
setSource
public MessageHeader setSource(MessageHeader.MessageSourceComponent value)
- Parameters:
value-source(The source application from which this message originated.)
-
getDestination
public List<MessageHeader.MessageDestinationComponent> getDestination()
- Returns:
destination(The destination application which the message is intended for.)
-
hasDestination
public boolean hasDestination()
-
addDestination
public MessageHeader.MessageDestinationComponent addDestination()
- Returns:
destination(The destination application which the message is intended for.)
-
addDestination
public MessageHeader addDestination(MessageHeader.MessageDestinationComponent t)
-
getEnterer
public Reference getEnterer()
- Returns:
enterer(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.)
-
hasEnterer
public boolean hasEnterer()
-
setEnterer
public MessageHeader setEnterer(Reference value)
- Parameters:
value-enterer(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.)
-
getEntererTarget
public Practitioner getEntererTarget()
- Returns:
entererThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (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.)
-
setEntererTarget
public MessageHeader setEntererTarget(Practitioner value)
- Parameters:
value-entererThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (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 Reference getAuthor()
- Returns:
author(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.)
-
hasAuthor
public boolean hasAuthor()
-
setAuthor
public MessageHeader setAuthor(Reference value)
- Parameters:
value-author(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.)
-
getAuthorTarget
public Practitioner getAuthorTarget()
- Returns:
authorThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (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.)
-
setAuthorTarget
public MessageHeader setAuthorTarget(Practitioner value)
- Parameters:
value-authorThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (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 Reference getReceiver()
- Returns:
receiver(Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.)
-
hasReceiver
public boolean hasReceiver()
-
setReceiver
public MessageHeader setReceiver(Reference value)
- Parameters:
value-receiver(Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.)
-
getReceiverTarget
public Resource getReceiverTarget()
- Returns:
receiverThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient.)
-
setReceiverTarget
public MessageHeader setReceiverTarget(Resource value)
- Parameters:
value-receiverThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (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 Reference getResponsible()
- Returns:
responsible(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.)
-
hasResponsible
public boolean hasResponsible()
-
setResponsible
public MessageHeader setResponsible(Reference value)
- Parameters:
value-responsible(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.)
-
getResponsibleTarget
public Resource getResponsibleTarget()
- Returns:
responsibleThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (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.)
-
setResponsibleTarget
public MessageHeader setResponsibleTarget(Resource value)
- Parameters:
value-responsibleThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (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 CodeableConcept getReason()
- Returns:
reason(Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.)
-
hasReason
public boolean hasReason()
-
setReason
public MessageHeader setReason(CodeableConcept value)
- Parameters:
value-reason(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<Reference> getData()
- Returns:
data(The actual data of the message - a reference to the root/focus class of the event.)
-
hasData
public boolean hasData()
-
addData
public Reference addData()
- Returns:
data(The actual data of the message - a reference to the root/focus class of the event.)
-
addData
public MessageHeader addData(Reference t)
-
getDataTarget
public List<Resource> getDataTarget()
- Returns:
data(The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The actual data of the message - a reference to the root/focus class of the event.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public MessageHeader copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected MessageHeader typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-