Class Composition
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Composition
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Composition 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 Composition complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Composition"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/> <element name="date" type="{http://hl7.org/fhir}dateTime"/> <element name="type" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="class" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="title" type="{http://hl7.org/fhir}string"/> <element name="status" type="{http://hl7.org/fhir}CompositionStatus"/> <element name="confidentiality" type="{http://hl7.org/fhir}code" minOccurs="0"/> <element name="subject" type="{http://hl7.org/fhir}Reference"/> <element name="author" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded"/> <element name="attester" type="{http://hl7.org/fhir}Composition.Attester" maxOccurs="unbounded" minOccurs="0"/> <element name="custodian" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="event" type="{http://hl7.org/fhir}Composition.Event" maxOccurs="unbounded" minOccurs="0"/> <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="section" type="{http://hl7.org/fhir}Composition.Section" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<CompositionAttester>attesterprotected java.util.List<Reference>authorprotected CodeableConceptclazzprotected Codeconfidentialityprotected Referencecustodianprotected DateTimedateprotected Referenceencounterprotected java.util.List<CompositionEvent>eventprotected Identifieridentifierprotected java.util.List<CompositionSection>sectionprotected CompositionStatusstatusprotected Referencesubjectprotected Stringtitleprotected CodeableConcepttype-
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 Composition()
-
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)java.util.List<CompositionAttester>getAttester()Gets the value of the attester property.java.util.List<Reference>getAuthor()Gets the value of the author property.CodeableConceptgetClazz()Gets the value of the clazz property.CodegetConfidentiality()Gets the value of the confidentiality property.ReferencegetCustodian()Gets the value of the custodian property.DateTimegetDate()Gets the value of the date property.ReferencegetEncounter()Gets the value of the encounter property.java.util.List<CompositionEvent>getEvent()Gets the value of the event property.IdentifiergetIdentifier()Gets the value of the identifier property.java.util.List<CompositionSection>getSection()Gets the value of the section property.CompositionStatusgetStatus()Gets the value of the status property.ReferencegetSubject()Gets the value of the subject property.StringgetTitle()Gets the value of the title property.CodeableConceptgetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetClazz(CodeableConcept value)Sets the value of the clazz property.voidsetConfidentiality(Code value)Sets the value of the confidentiality property.voidsetCustodian(Reference value)Sets the value of the custodian property.voidsetDate(DateTime value)Sets the value of the date property.voidsetEncounter(Reference value)Sets the value of the encounter property.voidsetIdentifier(Identifier value)Sets the value of the identifier property.voidsetStatus(CompositionStatus value)Sets the value of the status property.voidsetSubject(Reference value)Sets the value of the subject property.voidsetTitle(String value)Sets the value of the title property.voidsetType(CodeableConcept value)Sets the value of the type property.java.lang.StringtoString()CompositionwithAttester(java.util.Collection<CompositionAttester> values)CompositionwithAttester(CompositionAttester... values)CompositionwithAuthor(java.util.Collection<Reference> values)CompositionwithAuthor(Reference... values)CompositionwithClazz(CodeableConcept value)CompositionwithConfidentiality(Code value)CompositionwithContained(java.util.Collection<ResourceContainer> values)CompositionwithContained(ResourceContainer... values)CompositionwithCustodian(Reference value)CompositionwithDate(DateTime value)CompositionwithEncounter(Reference value)CompositionwithEvent(java.util.Collection<CompositionEvent> values)CompositionwithEvent(CompositionEvent... values)CompositionwithExtension(java.util.Collection<Extension> values)CompositionwithExtension(Extension... values)CompositionwithId(Id value)CompositionwithIdentifier(Identifier value)CompositionwithImplicitRules(Uri value)CompositionwithLanguage(Code value)CompositionwithMeta(Meta value)CompositionwithModifierExtension(java.util.Collection<Extension> values)CompositionwithModifierExtension(Extension... values)CompositionwithSection(java.util.Collection<CompositionSection> values)CompositionwithSection(CompositionSection... values)CompositionwithStatus(CompositionStatus value)CompositionwithSubject(Reference value)CompositionwithText(Narrative value)CompositionwithTitle(String value)CompositionwithType(CodeableConcept 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 Identifier identifier
-
date
protected DateTime date
-
type
protected CodeableConcept type
-
clazz
protected CodeableConcept clazz
-
title
protected String title
-
status
protected CompositionStatus status
-
confidentiality
protected Code confidentiality
-
subject
protected Reference subject
-
author
protected java.util.List<Reference> author
-
attester
protected java.util.List<CompositionAttester> attester
-
custodian
protected Reference custodian
-
event
protected java.util.List<CompositionEvent> event
-
encounter
protected Reference encounter
-
section
protected java.util.List<CompositionSection> section
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
Gets the value of the identifier property.- Returns:
- possible object is
Identifier
-
setIdentifier
public void setIdentifier(Identifier value)
Sets the value of the identifier property.- Parameters:
value- allowed object isIdentifier
-
getDate
public DateTime getDate()
Gets the value of the date property.- Returns:
- possible object is
DateTime
-
setDate
public void setDate(DateTime value)
Sets the value of the date property.- Parameters:
value- allowed object isDateTime
-
getType
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getClazz
public CodeableConcept getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
CodeableConcept
-
setClazz
public void setClazz(CodeableConcept value)
Sets the value of the clazz property.- Parameters:
value- allowed object isCodeableConcept
-
getTitle
public String getTitle()
Gets the value of the title property.- Returns:
- possible object is
String
-
setTitle
public void setTitle(String value)
Sets the value of the title property.- Parameters:
value- allowed object isString
-
getStatus
public CompositionStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
CompositionStatus
-
setStatus
public void setStatus(CompositionStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isCompositionStatus
-
getConfidentiality
public Code getConfidentiality()
Gets the value of the confidentiality property.- Returns:
- possible object is
Code
-
setConfidentiality
public void setConfidentiality(Code value)
Sets the value of the confidentiality property.- Parameters:
value- allowed object isCode
-
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
-
getAuthor
public java.util.List<Reference> getAuthor()
Gets the value of the author 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 author property.For example, to add a new item, do as follows:
getAuthor().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getAttester
public java.util.List<CompositionAttester> getAttester()
Gets the value of the attester 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 attester property.For example, to add a new item, do as follows:
getAttester().add(newItem);Objects of the following type(s) are allowed in the list
CompositionAttester
-
getCustodian
public Reference getCustodian()
Gets the value of the custodian property.- Returns:
- possible object is
Reference
-
setCustodian
public void setCustodian(Reference value)
Sets the value of the custodian property.- Parameters:
value- allowed object isReference
-
getEvent
public java.util.List<CompositionEvent> getEvent()
Gets the value of the event 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 event property.For example, to add a new item, do as follows:
getEvent().add(newItem);Objects of the following type(s) are allowed in the list
CompositionEvent
-
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
-
getSection
public java.util.List<CompositionSection> getSection()
Gets the value of the section 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 section property.For example, to add a new item, do as follows:
getSection().add(newItem);Objects of the following type(s) are allowed in the list
CompositionSection
-
withIdentifier
public Composition withIdentifier(Identifier value)
-
withDate
public Composition withDate(DateTime value)
-
withType
public Composition withType(CodeableConcept value)
-
withClazz
public Composition withClazz(CodeableConcept value)
-
withTitle
public Composition withTitle(String value)
-
withStatus
public Composition withStatus(CompositionStatus value)
-
withConfidentiality
public Composition withConfidentiality(Code value)
-
withSubject
public Composition withSubject(Reference value)
-
withAuthor
public Composition withAuthor(Reference... values)
-
withAuthor
public Composition withAuthor(java.util.Collection<Reference> values)
-
withAttester
public Composition withAttester(CompositionAttester... values)
-
withAttester
public Composition withAttester(java.util.Collection<CompositionAttester> values)
-
withCustodian
public Composition withCustodian(Reference value)
-
withEvent
public Composition withEvent(CompositionEvent... values)
-
withEvent
public Composition withEvent(java.util.Collection<CompositionEvent> values)
-
withEncounter
public Composition withEncounter(Reference value)
-
withSection
public Composition withSection(CompositionSection... values)
-
withSection
public Composition withSection(java.util.Collection<CompositionSection> values)
-
withText
public Composition withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Composition withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Composition withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Composition withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Composition withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Composition withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Composition withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Composition withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Composition withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Composition withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Composition 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
-
-