Class 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
Java 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 InstanttimestampFields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text -
Constructor Summary
Constructors Constructor Description MessageHeader() -
Method Summary
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, setTextMethods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
Constructor Details
-
MessageHeader
public MessageHeader()
-
-
Method Details
-
getTimestamp
Gets the value of the timestamp property.- Returns:
- possible object is
Instant
-
setTimestamp
Sets the value of the timestamp property.- Parameters:
value- allowed object isInstant
-
getEvent
Gets the value of the event property.- Returns:
- possible object is
Coding
-
setEvent
Sets the value of the event property.- Parameters:
value- allowed object isCoding
-
getResponse
Gets the value of the response property.- Returns:
- possible object is
MessageHeaderResponse
-
setResponse
Sets the value of the response property.- Parameters:
value- allowed object isMessageHeaderResponse
-
getSource
Gets the value of the source property.- Returns:
- possible object is
MessageHeaderSource
-
setSource
Sets the value of the source property.- Parameters:
value- allowed object isMessageHeaderSource
-
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
Gets the value of the enterer property.- Returns:
- possible object is
Reference
-
setEnterer
Sets the value of the enterer property.- Parameters:
value- allowed object isReference
-
getAuthor
Gets the value of the author property.- Returns:
- possible object is
Reference
-
setAuthor
Sets the value of the author property.- Parameters:
value- allowed object isReference
-
getReceiver
Gets the value of the receiver property.- Returns:
- possible object is
Reference
-
setReceiver
Sets the value of the receiver property.- Parameters:
value- allowed object isReference
-
getResponsible
Gets the value of the responsible property.- Returns:
- possible object is
Reference
-
setResponsible
Sets the value of the responsible property.- Parameters:
value- allowed object isReference
-
getReason
Gets the value of the reason property.- Returns:
- possible object is
CodeableConcept
-
setReason
Sets the value of the reason property.- Parameters:
value- allowed object isCodeableConcept
-
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
-
withEvent
-
withResponse
-
withSource
-
withDestination
-
withDestination
-
withEnterer
-
withAuthor
-
withReceiver
-
withResponsible
-
withReason
-
withData
-
withData
-
withText
- Overrides:
withTextin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withContained
- Overrides:
withContainedin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withExtension
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
- Overrides:
withModifierExtensionin classDomainResource
-
withId
- Overrides:
withIdin classDomainResource
-
withMeta
- Overrides:
withMetain classDomainResource
-
withImplicitRules
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
- 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
-