Class 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:
  • Field Details

  • Constructor Details

  • Method Details

    • 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

      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

      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

      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

      Parameters:
      value - response (Information about the message that this message is a response to. Only present if this message is a response.)
    • getSource

      Returns:
      source (The source application from which this message originated.)
    • hasSource

      public boolean hasSource()
    • setSource

      Parameters:
      value - source (The source application from which this message originated.)
    • getDestination

      Returns:
      destination (The destination application which the message is intended for.)
    • hasDestination

      public boolean hasDestination()
    • addDestination

      Returns:
      destination (The destination application which the message is intended for.)
    • addDestination

    • 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

      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

      Returns:
      enterer The 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

      Parameters:
      value - enterer The 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

      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

      Returns:
      author The 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

      Parameters:
      value - author The 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

      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

      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

      Returns:
      receiver The 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

      Parameters:
      value - receiver The 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

      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

      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

      Returns:
      responsible The 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

      Parameters:
      value - responsible The 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

      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

      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

    • 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:
      listChildren in class DomainResource
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public MessageHeader copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected MessageHeader typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource