Class Communication
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Communication
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Communication 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 Communication complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Communication"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="category" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="sender" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="recipient" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="payload" type="{http://hl7.org/fhir}Communication.Payload" maxOccurs="unbounded" minOccurs="0"/> <element name="medium" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="status" type="{http://hl7.org/fhir}CommunicationStatus" minOccurs="0"/> <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="sent" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="received" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="reason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="requestDetail" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptcategoryprotected Referenceencounterprotected java.util.List<Identifier>identifierprotected java.util.List<CodeableConcept>mediumprotected java.util.List<CommunicationPayload>payloadprotected java.util.List<CodeableConcept>reasonprotected DateTimereceivedprotected java.util.List<Reference>recipientprotected ReferencerequestDetailprotected Referencesenderprotected DateTimesentprotected CommunicationStatusstatusprotected Referencesubject-
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 Communication()
-
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)CodeableConceptgetCategory()Gets the value of the category property.ReferencegetEncounter()Gets the value of the encounter property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.java.util.List<CodeableConcept>getMedium()Gets the value of the medium property.java.util.List<CommunicationPayload>getPayload()Gets the value of the payload property.java.util.List<CodeableConcept>getReason()Gets the value of the reason property.DateTimegetReceived()Gets the value of the received property.java.util.List<Reference>getRecipient()Gets the value of the recipient property.ReferencegetRequestDetail()Gets the value of the requestDetail property.ReferencegetSender()Gets the value of the sender property.DateTimegetSent()Gets the value of the sent property.CommunicationStatusgetStatus()Gets the value of the status property.ReferencegetSubject()Gets the value of the subject property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCategory(CodeableConcept value)Sets the value of the category property.voidsetEncounter(Reference value)Sets the value of the encounter property.voidsetReceived(DateTime value)Sets the value of the received property.voidsetRequestDetail(Reference value)Sets the value of the requestDetail property.voidsetSender(Reference value)Sets the value of the sender property.voidsetSent(DateTime value)Sets the value of the sent property.voidsetStatus(CommunicationStatus value)Sets the value of the status property.voidsetSubject(Reference value)Sets the value of the subject property.java.lang.StringtoString()CommunicationwithCategory(CodeableConcept value)CommunicationwithContained(java.util.Collection<ResourceContainer> values)CommunicationwithContained(ResourceContainer... values)CommunicationwithEncounter(Reference value)CommunicationwithExtension(java.util.Collection<Extension> values)CommunicationwithExtension(Extension... values)CommunicationwithId(Id value)CommunicationwithIdentifier(java.util.Collection<Identifier> values)CommunicationwithIdentifier(Identifier... values)CommunicationwithImplicitRules(Uri value)CommunicationwithLanguage(Code value)CommunicationwithMedium(java.util.Collection<CodeableConcept> values)CommunicationwithMedium(CodeableConcept... values)CommunicationwithMeta(Meta value)CommunicationwithModifierExtension(java.util.Collection<Extension> values)CommunicationwithModifierExtension(Extension... values)CommunicationwithPayload(java.util.Collection<CommunicationPayload> values)CommunicationwithPayload(CommunicationPayload... values)CommunicationwithReason(java.util.Collection<CodeableConcept> values)CommunicationwithReason(CodeableConcept... values)CommunicationwithReceived(DateTime value)CommunicationwithRecipient(java.util.Collection<Reference> values)CommunicationwithRecipient(Reference... values)CommunicationwithRequestDetail(Reference value)CommunicationwithSender(Reference value)CommunicationwithSent(DateTime value)CommunicationwithStatus(CommunicationStatus value)CommunicationwithSubject(Reference value)CommunicationwithText(Narrative 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
-
identifier
protected java.util.List<Identifier> identifier
-
category
protected CodeableConcept category
-
sender
protected Reference sender
-
recipient
protected java.util.List<Reference> recipient
-
payload
protected java.util.List<CommunicationPayload> payload
-
medium
protected java.util.List<CodeableConcept> medium
-
status
protected CommunicationStatus status
-
encounter
protected Reference encounter
-
sent
protected DateTime sent
-
received
protected DateTime received
-
reason
protected java.util.List<CodeableConcept> reason
-
subject
protected Reference subject
-
requestDetail
protected Reference requestDetail
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier 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 identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getCategory
public CodeableConcept getCategory()
Gets the value of the category property.- Returns:
- possible object is
CodeableConcept
-
setCategory
public void setCategory(CodeableConcept value)
Sets the value of the category property.- Parameters:
value- allowed object isCodeableConcept
-
getSender
public Reference getSender()
Gets the value of the sender property.- Returns:
- possible object is
Reference
-
setSender
public void setSender(Reference value)
Sets the value of the sender property.- Parameters:
value- allowed object isReference
-
getRecipient
public java.util.List<Reference> getRecipient()
Gets the value of the recipient 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 recipient property.For example, to add a new item, do as follows:
getRecipient().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getPayload
public java.util.List<CommunicationPayload> getPayload()
Gets the value of the payload 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 payload property.For example, to add a new item, do as follows:
getPayload().add(newItem);Objects of the following type(s) are allowed in the list
CommunicationPayload
-
getMedium
public java.util.List<CodeableConcept> getMedium()
Gets the value of the medium 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 medium property.For example, to add a new item, do as follows:
getMedium().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getStatus
public CommunicationStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
CommunicationStatus
-
setStatus
public void setStatus(CommunicationStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isCommunicationStatus
-
getEncounter
public Reference getEncounter()
Gets the value of the encounter property.- Returns:
- possible object is
Reference
-
setEncounter
public void setEncounter(Reference value)
Sets the value of the encounter property.- Parameters:
value- allowed object isReference
-
getSent
public DateTime getSent()
Gets the value of the sent property.- Returns:
- possible object is
DateTime
-
setSent
public void setSent(DateTime value)
Sets the value of the sent property.- Parameters:
value- allowed object isDateTime
-
getReceived
public DateTime getReceived()
Gets the value of the received property.- Returns:
- possible object is
DateTime
-
setReceived
public void setReceived(DateTime value)
Sets the value of the received property.- Parameters:
value- allowed object isDateTime
-
getReason
public java.util.List<CodeableConcept> getReason()
Gets the value of the reason 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 reason property.For example, to add a new item, do as follows:
getReason().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getSubject
public Reference getSubject()
Gets the value of the subject property.- Returns:
- possible object is
Reference
-
setSubject
public void setSubject(Reference value)
Sets the value of the subject property.- Parameters:
value- allowed object isReference
-
getRequestDetail
public Reference getRequestDetail()
Gets the value of the requestDetail property.- Returns:
- possible object is
Reference
-
setRequestDetail
public void setRequestDetail(Reference value)
Sets the value of the requestDetail property.- Parameters:
value- allowed object isReference
-
withIdentifier
public Communication withIdentifier(Identifier... values)
-
withIdentifier
public Communication withIdentifier(java.util.Collection<Identifier> values)
-
withCategory
public Communication withCategory(CodeableConcept value)
-
withSender
public Communication withSender(Reference value)
-
withRecipient
public Communication withRecipient(Reference... values)
-
withRecipient
public Communication withRecipient(java.util.Collection<Reference> values)
-
withPayload
public Communication withPayload(CommunicationPayload... values)
-
withPayload
public Communication withPayload(java.util.Collection<CommunicationPayload> values)
-
withMedium
public Communication withMedium(CodeableConcept... values)
-
withMedium
public Communication withMedium(java.util.Collection<CodeableConcept> values)
-
withStatus
public Communication withStatus(CommunicationStatus value)
-
withEncounter
public Communication withEncounter(Reference value)
-
withSent
public Communication withSent(DateTime value)
-
withReceived
public Communication withReceived(DateTime value)
-
withReason
public Communication withReason(CodeableConcept... values)
-
withReason
public Communication withReason(java.util.Collection<CodeableConcept> values)
-
withSubject
public Communication withSubject(Reference value)
-
withRequestDetail
public Communication withRequestDetail(Reference value)
-
withText
public Communication withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Communication withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Communication withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Communication withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Communication withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Communication withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Communication withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Communication withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Communication withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Communication withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Communication 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
-
-