Class MessageHeader
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.MessageHeader
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class MessageHeader extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for MessageHeader complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="MessageHeader"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="timestamp" type="{http://hl7.org/fhir}instant"/> <element name="event" type="{http://hl7.org/fhir}Coding"/> <element name="response" type="{http://hl7.org/fhir}MessageHeader.Response" minOccurs="0"/> <element name="source" type="{http://hl7.org/fhir}MessageHeader.Source"/> <element name="destination" type="{http://hl7.org/fhir}MessageHeader.Destination" maxOccurs="unbounded" minOccurs="0"/> <element name="enterer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="receiver" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="responsible" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="reason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="data" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Referenceauthorprotected java.util.List<Reference>dataprotected java.util.List<MessageHeaderDestination>destinationprotected Referenceentererprotected Codingeventprotected CodeableConceptreasonprotected Referencereceiverprotected MessageHeaderResponseresponseprotected Referenceresponsibleprotected MessageHeaderSourcesourceprotected Instanttimestamp-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description MessageHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ReferencegetAuthor()Gets the value of the author property.java.util.List<Reference>getData()Gets the value of the data property.java.util.List<MessageHeaderDestination>getDestination()Gets the value of the destination property.ReferencegetEnterer()Gets the value of the enterer property.CodinggetEvent()Gets the value of the event property.CodeableConceptgetReason()Gets the value of the reason property.ReferencegetReceiver()Gets the value of the receiver property.MessageHeaderResponsegetResponse()Gets the value of the response property.ReferencegetResponsible()Gets the value of the responsible property.MessageHeaderSourcegetSource()Gets the value of the source property.InstantgetTimestamp()Gets the value of the timestamp property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAuthor(Reference value)Sets the value of the author property.voidsetEnterer(Reference value)Sets the value of the enterer property.voidsetEvent(Coding value)Sets the value of the event property.voidsetReason(CodeableConcept value)Sets the value of the reason property.voidsetReceiver(Reference value)Sets the value of the receiver property.voidsetResponse(MessageHeaderResponse value)Sets the value of the response property.voidsetResponsible(Reference value)Sets the value of the responsible property.voidsetSource(MessageHeaderSource value)Sets the value of the source property.voidsetTimestamp(Instant value)Sets the value of the timestamp property.java.lang.StringtoString()MessageHeaderwithAuthor(Reference value)MessageHeaderwithContained(java.util.Collection<ResourceContainer> values)MessageHeaderwithContained(ResourceContainer... values)MessageHeaderwithData(java.util.Collection<Reference> values)MessageHeaderwithData(Reference... values)MessageHeaderwithDestination(java.util.Collection<MessageHeaderDestination> values)MessageHeaderwithDestination(MessageHeaderDestination... values)MessageHeaderwithEnterer(Reference value)MessageHeaderwithEvent(Coding value)MessageHeaderwithExtension(java.util.Collection<Extension> values)MessageHeaderwithExtension(Extension... values)MessageHeaderwithId(Id value)MessageHeaderwithImplicitRules(Uri value)MessageHeaderwithLanguage(Code value)MessageHeaderwithMeta(Meta value)MessageHeaderwithModifierExtension(java.util.Collection<Extension> values)MessageHeaderwithModifierExtension(Extension... values)MessageHeaderwithReason(CodeableConcept value)MessageHeaderwithReceiver(Reference value)MessageHeaderwithResponse(MessageHeaderResponse value)MessageHeaderwithResponsible(Reference value)MessageHeaderwithSource(MessageHeaderSource value)MessageHeaderwithText(Narrative value)MessageHeaderwithTimestamp(Instant value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
timestamp
protected Instant timestamp
-
event
protected Coding event
-
response
protected MessageHeaderResponse response
-
source
protected MessageHeaderSource source
-
destination
protected java.util.List<MessageHeaderDestination> destination
-
enterer
protected Reference enterer
-
author
protected Reference author
-
receiver
protected Reference receiver
-
responsible
protected Reference responsible
-
reason
protected CodeableConcept reason
-
data
protected java.util.List<Reference> data
-
-
Method Detail
-
getTimestamp
public Instant getTimestamp()
Gets the value of the timestamp property.- Returns:
- possible object is
Instant
-
setTimestamp
public void setTimestamp(Instant value)
Sets the value of the timestamp property.- Parameters:
value- allowed object isInstant
-
getEvent
public Coding getEvent()
Gets the value of the event property.- Returns:
- possible object is
Coding
-
setEvent
public void setEvent(Coding value)
Sets the value of the event property.- Parameters:
value- allowed object isCoding
-
getResponse
public MessageHeaderResponse getResponse()
Gets the value of the response property.- Returns:
- possible object is
MessageHeaderResponse
-
setResponse
public void setResponse(MessageHeaderResponse value)
Sets the value of the response property.- Parameters:
value- allowed object isMessageHeaderResponse
-
getSource
public MessageHeaderSource getSource()
Gets the value of the source property.- Returns:
- possible object is
MessageHeaderSource
-
setSource
public void setSource(MessageHeaderSource value)
Sets the value of the source property.- Parameters:
value- allowed object isMessageHeaderSource
-
getDestination
public java.util.List<MessageHeaderDestination> getDestination()
Gets the value of the destination property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the destination property.For example, to add a new item, do as follows:
getDestination().add(newItem);Objects of the following type(s) are allowed in the list
MessageHeaderDestination
-
getEnterer
public Reference getEnterer()
Gets the value of the enterer property.- Returns:
- possible object is
Reference
-
setEnterer
public void setEnterer(Reference value)
Sets the value of the enterer property.- Parameters:
value- allowed object isReference
-
getAuthor
public Reference getAuthor()
Gets the value of the author property.- Returns:
- possible object is
Reference
-
setAuthor
public void setAuthor(Reference value)
Sets the value of the author property.- Parameters:
value- allowed object isReference
-
getReceiver
public Reference getReceiver()
Gets the value of the receiver property.- Returns:
- possible object is
Reference
-
setReceiver
public void setReceiver(Reference value)
Sets the value of the receiver property.- Parameters:
value- allowed object isReference
-
getResponsible
public Reference getResponsible()
Gets the value of the responsible property.- Returns:
- possible object is
Reference
-
setResponsible
public void setResponsible(Reference value)
Sets the value of the responsible property.- Parameters:
value- allowed object isReference
-
getReason
public CodeableConcept getReason()
Gets the value of the reason property.- Returns:
- possible object is
CodeableConcept
-
setReason
public void setReason(CodeableConcept value)
Sets the value of the reason property.- Parameters:
value- allowed object isCodeableConcept
-
getData
public java.util.List<Reference> getData()
Gets the value of the data property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the data property.For example, to add a new item, do as follows:
getData().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
withTimestamp
public MessageHeader withTimestamp(Instant value)
-
withEvent
public MessageHeader withEvent(Coding value)
-
withResponse
public MessageHeader withResponse(MessageHeaderResponse value)
-
withSource
public MessageHeader withSource(MessageHeaderSource value)
-
withDestination
public MessageHeader withDestination(MessageHeaderDestination... values)
-
withDestination
public MessageHeader withDestination(java.util.Collection<MessageHeaderDestination> values)
-
withEnterer
public MessageHeader withEnterer(Reference value)
-
withAuthor
public MessageHeader withAuthor(Reference value)
-
withReceiver
public MessageHeader withReceiver(Reference value)
-
withResponsible
public MessageHeader withResponsible(Reference value)
-
withReason
public MessageHeader withReason(CodeableConcept value)
-
withData
public MessageHeader withData(Reference... values)
-
withData
public MessageHeader withData(java.util.Collection<Reference> values)
-
withText
public MessageHeader withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public MessageHeader withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public MessageHeader withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public MessageHeader withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public MessageHeader withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public MessageHeader withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public MessageHeader withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public MessageHeader withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public MessageHeader withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public MessageHeader withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public MessageHeader withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-