org.hl7.fhir.Composition Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.10.07 at 09:31:25 AM MDT
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* If the element is present, it must have either a @value, an @id, or extensions
*
* Java 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Composition", propOrder = {
"identifier",
"date",
"type",
"clazz",
"title",
"status",
"confidentiality",
"subject",
"author",
"attester",
"custodian",
"event",
"encounter",
"section"
})
public class Composition
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected Identifier identifier;
@XmlElement(required = true)
protected DateTime date;
@XmlElement(required = true)
protected CodeableConcept type;
@XmlElement(name = "class")
protected CodeableConcept clazz;
@XmlElement(required = true)
protected org.hl7.fhir.String title;
@XmlElement(required = true)
protected CompositionStatus status;
protected Code confidentiality;
@XmlElement(required = true)
protected Reference subject;
@XmlElement(required = true)
protected List author;
protected List attester;
protected Reference custodian;
protected List event;
protected Reference encounter;
protected List section;
/**
* Gets the value of the identifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getIdentifier() {
return identifier;
}
/**
* Sets the value of the identifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setIdentifier(Identifier value) {
this.identifier = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setDate(DateTime value) {
this.date = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setType(CodeableConcept value) {
this.type = value;
}
/**
* Gets the value of the clazz property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getClazz() {
return clazz;
}
/**
* Sets the value of the clazz property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setClazz(CodeableConcept value) {
this.clazz = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setTitle(org.hl7.fhir.String value) {
this.title = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link CompositionStatus }
*
*/
public CompositionStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link CompositionStatus }
*
*/
public void setStatus(CompositionStatus value) {
this.status = value;
}
/**
* Gets the value of the confidentiality property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getConfidentiality() {
return confidentiality;
}
/**
* Sets the value of the confidentiality property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setConfidentiality(Code value) {
this.confidentiality = value;
}
/**
* Gets the value of the subject property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getSubject() {
return subject;
}
/**
* Sets the value of the subject property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setSubject(Reference value) {
this.subject = value;
}
/**
* 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 Jakarta XML Binding object.
* This is why there is not a set
method 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
* {@link Reference }
*
*
*/
public List getAuthor() {
if (author == null) {
author = new ArrayList();
}
return this.author;
}
/**
* 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 Jakarta XML Binding object.
* This is why there is not a set
method 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
* {@link CompositionAttester }
*
*
*/
public List getAttester() {
if (attester == null) {
attester = new ArrayList();
}
return this.attester;
}
/**
* Gets the value of the custodian property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getCustodian() {
return custodian;
}
/**
* Sets the value of the custodian property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setCustodian(Reference value) {
this.custodian = value;
}
/**
* 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 Jakarta XML Binding object.
* This is why there is not a set
method 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
* {@link CompositionEvent }
*
*
*/
public List getEvent() {
if (event == null) {
event = new ArrayList();
}
return this.event;
}
/**
* Gets the value of the encounter property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getEncounter() {
return encounter;
}
/**
* Sets the value of the encounter property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setEncounter(Reference value) {
this.encounter = value;
}
/**
* 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 Jakarta XML Binding object.
* This is why there is not a set
method 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
* {@link CompositionSection }
*
*
*/
public List getSection() {
if (section == null) {
section = new ArrayList();
}
return this.section;
}
public Composition withIdentifier(Identifier value) {
setIdentifier(value);
return this;
}
public Composition withDate(DateTime value) {
setDate(value);
return this;
}
public Composition withType(CodeableConcept value) {
setType(value);
return this;
}
public Composition withClazz(CodeableConcept value) {
setClazz(value);
return this;
}
public Composition withTitle(org.hl7.fhir.String value) {
setTitle(value);
return this;
}
public Composition withStatus(CompositionStatus value) {
setStatus(value);
return this;
}
public Composition withConfidentiality(Code value) {
setConfidentiality(value);
return this;
}
public Composition withSubject(Reference value) {
setSubject(value);
return this;
}
public Composition withAuthor(Reference... values) {
if (values!= null) {
for (Reference value: values) {
getAuthor().add(value);
}
}
return this;
}
public Composition withAuthor(Collection values) {
if (values!= null) {
getAuthor().addAll(values);
}
return this;
}
public Composition withAttester(CompositionAttester... values) {
if (values!= null) {
for (CompositionAttester value: values) {
getAttester().add(value);
}
}
return this;
}
public Composition withAttester(Collection values) {
if (values!= null) {
getAttester().addAll(values);
}
return this;
}
public Composition withCustodian(Reference value) {
setCustodian(value);
return this;
}
public Composition withEvent(CompositionEvent... values) {
if (values!= null) {
for (CompositionEvent value: values) {
getEvent().add(value);
}
}
return this;
}
public Composition withEvent(Collection values) {
if (values!= null) {
getEvent().addAll(values);
}
return this;
}
public Composition withEncounter(Reference value) {
setEncounter(value);
return this;
}
public Composition withSection(CompositionSection... values) {
if (values!= null) {
for (CompositionSection value: values) {
getSection().add(value);
}
}
return this;
}
public Composition withSection(Collection values) {
if (values!= null) {
getSection().addAll(values);
}
return this;
}
@Override
public Composition withText(Narrative value) {
setText(value);
return this;
}
@Override
public Composition withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Composition withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Composition withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Composition withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Composition withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Composition withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Composition withId(Id value) {
setId(value);
return this;
}
@Override
public Composition withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Composition withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Composition withLanguage(Code value) {
setLanguage(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final Composition that = ((Composition) object);
{
Identifier lhsIdentifier;
lhsIdentifier = this.getIdentifier();
Identifier rhsIdentifier;
rhsIdentifier = that.getIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, (this.identifier!= null), (that.identifier!= null))) {
return false;
}
}
{
DateTime lhsDate;
lhsDate = this.getDate();
DateTime rhsDate;
rhsDate = that.getDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) {
return false;
}
}
{
CodeableConcept lhsType;
lhsType = this.getType();
CodeableConcept rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) {
return false;
}
}
{
CodeableConcept lhsClazz;
lhsClazz = this.getClazz();
CodeableConcept rhsClazz;
rhsClazz = that.getClazz();
if (!strategy.equals(LocatorUtils.property(thisLocator, "clazz", lhsClazz), LocatorUtils.property(thatLocator, "clazz", rhsClazz), lhsClazz, rhsClazz, (this.clazz!= null), (that.clazz!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsTitle;
lhsTitle = this.getTitle();
org.hl7.fhir.String rhsTitle;
rhsTitle = that.getTitle();
if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, (this.title!= null), (that.title!= null))) {
return false;
}
}
{
CompositionStatus lhsStatus;
lhsStatus = this.getStatus();
CompositionStatus rhsStatus;
rhsStatus = that.getStatus();
if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) {
return false;
}
}
{
Code lhsConfidentiality;
lhsConfidentiality = this.getConfidentiality();
Code rhsConfidentiality;
rhsConfidentiality = that.getConfidentiality();
if (!strategy.equals(LocatorUtils.property(thisLocator, "confidentiality", lhsConfidentiality), LocatorUtils.property(thatLocator, "confidentiality", rhsConfidentiality), lhsConfidentiality, rhsConfidentiality, (this.confidentiality!= null), (that.confidentiality!= null))) {
return false;
}
}
{
Reference lhsSubject;
lhsSubject = this.getSubject();
Reference rhsSubject;
rhsSubject = that.getSubject();
if (!strategy.equals(LocatorUtils.property(thisLocator, "subject", lhsSubject), LocatorUtils.property(thatLocator, "subject", rhsSubject), lhsSubject, rhsSubject, (this.subject!= null), (that.subject!= null))) {
return false;
}
}
{
List lhsAuthor;
lhsAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null);
List rhsAuthor;
rhsAuthor = (((that.author!= null)&&(!that.author.isEmpty()))?that.getAuthor():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "author", lhsAuthor), LocatorUtils.property(thatLocator, "author", rhsAuthor), lhsAuthor, rhsAuthor, ((this.author!= null)&&(!this.author.isEmpty())), ((that.author!= null)&&(!that.author.isEmpty())))) {
return false;
}
}
{
List lhsAttester;
lhsAttester = (((this.attester!= null)&&(!this.attester.isEmpty()))?this.getAttester():null);
List rhsAttester;
rhsAttester = (((that.attester!= null)&&(!that.attester.isEmpty()))?that.getAttester():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "attester", lhsAttester), LocatorUtils.property(thatLocator, "attester", rhsAttester), lhsAttester, rhsAttester, ((this.attester!= null)&&(!this.attester.isEmpty())), ((that.attester!= null)&&(!that.attester.isEmpty())))) {
return false;
}
}
{
Reference lhsCustodian;
lhsCustodian = this.getCustodian();
Reference rhsCustodian;
rhsCustodian = that.getCustodian();
if (!strategy.equals(LocatorUtils.property(thisLocator, "custodian", lhsCustodian), LocatorUtils.property(thatLocator, "custodian", rhsCustodian), lhsCustodian, rhsCustodian, (this.custodian!= null), (that.custodian!= null))) {
return false;
}
}
{
List lhsEvent;
lhsEvent = (((this.event!= null)&&(!this.event.isEmpty()))?this.getEvent():null);
List rhsEvent;
rhsEvent = (((that.event!= null)&&(!that.event.isEmpty()))?that.getEvent():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "event", lhsEvent), LocatorUtils.property(thatLocator, "event", rhsEvent), lhsEvent, rhsEvent, ((this.event!= null)&&(!this.event.isEmpty())), ((that.event!= null)&&(!that.event.isEmpty())))) {
return false;
}
}
{
Reference lhsEncounter;
lhsEncounter = this.getEncounter();
Reference rhsEncounter;
rhsEncounter = that.getEncounter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) {
return false;
}
}
{
List lhsSection;
lhsSection = (((this.section!= null)&&(!this.section.isEmpty()))?this.getSection():null);
List rhsSection;
rhsSection = (((that.section!= null)&&(!that.section.isEmpty()))?that.getSection():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "section", lhsSection), LocatorUtils.property(thatLocator, "section", rhsSection), lhsSection, rhsSection, ((this.section!= null)&&(!this.section.isEmpty())), ((that.section!= null)&&(!that.section.isEmpty())))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null));
}
{
DateTime theDate;
theDate = this.getDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null));
}
{
CodeableConcept theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null));
}
{
CodeableConcept theClazz;
theClazz = this.getClazz();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "clazz", theClazz), currentHashCode, theClazz, (this.clazz!= null));
}
{
org.hl7.fhir.String theTitle;
theTitle = this.getTitle();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null));
}
{
CompositionStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
Code theConfidentiality;
theConfidentiality = this.getConfidentiality();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "confidentiality", theConfidentiality), currentHashCode, theConfidentiality, (this.confidentiality!= null));
}
{
Reference theSubject;
theSubject = this.getSubject();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null));
}
{
List theAuthor;
theAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "author", theAuthor), currentHashCode, theAuthor, ((this.author!= null)&&(!this.author.isEmpty())));
}
{
List theAttester;
theAttester = (((this.attester!= null)&&(!this.attester.isEmpty()))?this.getAttester():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attester", theAttester), currentHashCode, theAttester, ((this.attester!= null)&&(!this.attester.isEmpty())));
}
{
Reference theCustodian;
theCustodian = this.getCustodian();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "custodian", theCustodian), currentHashCode, theCustodian, (this.custodian!= null));
}
{
List theEvent;
theEvent = (((this.event!= null)&&(!this.event.isEmpty()))?this.getEvent():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "event", theEvent), currentHashCode, theEvent, ((this.event!= null)&&(!this.event.isEmpty())));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null));
}
{
List theSection;
theSection = (((this.section!= null)&&(!this.section.isEmpty()))?this.getSection():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "section", theSection), currentHashCode, theSection, ((this.section!= null)&&(!this.section.isEmpty())));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null));
}
{
DateTime theDate;
theDate = this.getDate();
strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null));
}
{
CodeableConcept theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null));
}
{
CodeableConcept theClazz;
theClazz = this.getClazz();
strategy.appendField(locator, this, "clazz", buffer, theClazz, (this.clazz!= null));
}
{
org.hl7.fhir.String theTitle;
theTitle = this.getTitle();
strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null));
}
{
CompositionStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
Code theConfidentiality;
theConfidentiality = this.getConfidentiality();
strategy.appendField(locator, this, "confidentiality", buffer, theConfidentiality, (this.confidentiality!= null));
}
{
Reference theSubject;
theSubject = this.getSubject();
strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null));
}
{
List theAuthor;
theAuthor = (((this.author!= null)&&(!this.author.isEmpty()))?this.getAuthor():null);
strategy.appendField(locator, this, "author", buffer, theAuthor, ((this.author!= null)&&(!this.author.isEmpty())));
}
{
List theAttester;
theAttester = (((this.attester!= null)&&(!this.attester.isEmpty()))?this.getAttester():null);
strategy.appendField(locator, this, "attester", buffer, theAttester, ((this.attester!= null)&&(!this.attester.isEmpty())));
}
{
Reference theCustodian;
theCustodian = this.getCustodian();
strategy.appendField(locator, this, "custodian", buffer, theCustodian, (this.custodian!= null));
}
{
List theEvent;
theEvent = (((this.event!= null)&&(!this.event.isEmpty()))?this.getEvent():null);
strategy.appendField(locator, this, "event", buffer, theEvent, ((this.event!= null)&&(!this.event.isEmpty())));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null));
}
{
List theSection;
theSection = (((this.section!= null)&&(!this.section.isEmpty()))?this.getSection():null);
strategy.appendField(locator, this, "section", buffer, theSection, ((this.section!= null)&&(!this.section.isEmpty())));
}
return buffer;
}
public void setAuthor(List value) {
this.author = value;
}
public void setAttester(List value) {
this.attester = value;
}
public void setEvent(List value) {
this.event = value;
}
public void setSection(List value) {
this.section = value;
}
}