Package com.ibm.fhir.model.resource
Class MessageHeader
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.MessageHeader
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageHeader.Builderstatic classMessageHeader.DestinationThe destination application which the message is intended for.static classMessageHeader.ResponseInformation about the message that this message is a response to.static classMessageHeader.SourceThe source application from which this message originated.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource
id, implicitRules, language, meta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static MessageHeader.Builderbuilder()booleanequals(Object obj)ReferencegetAuthor()The logical author of the message - the person or device that decided the described event should happen.CanonicalgetDefinition()Permanent link to the MessageDefinition for this message.List<MessageHeader.Destination>getDestination()The destination application which the message is intended for.ReferencegetEnterer()The person or device that performed the data entry leading to this message.ElementgetEvent()Code that identifies the event this message represents and connects it with its definition.List<Reference>getFocus()The actual data of the message - a reference to the root/focus class of the event.CodeableConceptgetReason()Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.MessageHeader.ResponsegetResponse()Information about the message that this message is a response to.ReferencegetResponsible()The person or organization that accepts overall responsibility for the contents of the message.ReferencegetSender()Identifies the sending system to allow the use of a trust relationship.MessageHeader.SourcegetSource()The source application from which this message originated.booleanhasChildren()inthashCode()MessageHeader.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getEvent
public Element getEvent()
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://terminology.hl7.org/CodeSystem/message-events". Alternatively uri to the EventDefinition.- Returns:
- An immutable object of type
Elementthat is non-null.
-
getDestination
public List<MessageHeader.Destination> getDestination()
The destination application which the message is intended for.- Returns:
- An unmodifiable list containing immutable objects of type
MessageHeader.Destinationthat may be empty.
-
getSender
public Reference getSender()
Identifies the sending system to allow the use of a trust relationship.- Returns:
- An immutable object of type
Referencethat may be null.
-
getEnterer
public Reference getEnterer()
The person or device that performed the data entry leading to this message. When there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions.- Returns:
- An immutable object of type
Referencethat may be null.
-
getAuthor
public Reference getAuthor()
The logical author of the message - the person or device that decided the described event should happen. When there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions.- Returns:
- An immutable object of type
Referencethat may be null.
-
getSource
public MessageHeader.Source getSource()
The source application from which this message originated.- Returns:
- An immutable object of type
MessageHeader.Sourcethat is non-null.
-
getResponsible
public Reference getResponsible()
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.- Returns:
- An immutable object of type
Referencethat may be null.
-
getReason
public CodeableConcept getReason()
Coded indication of the cause for the event - indicates a reason for the occurrence of the event that is a focus of this message.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getResponse
public MessageHeader.Response getResponse()
Information about the message that this message is a response to. Only present if this message is a response.- Returns:
- An immutable object of type
MessageHeader.Responsethat may be null.
-
getFocus
public List<Reference> getFocus()
The actual data of the message - a reference to the root/focus class of the event.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getDefinition
public Canonical getDefinition()
Permanent link to the MessageDefinition for this message.- Returns:
- An immutable object of type
Canonicalthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public MessageHeader.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static MessageHeader.Builder builder()
-
-