All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.DocumentManifest Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// 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.09.27 at 11:16:19 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 DocumentManifest complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="DocumentManifest">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="masterIdentifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="recipient" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="author" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="created" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="source" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}DocumentReferenceStatus"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="content" type="{http://hl7.org/fhir}DocumentManifest.Content" maxOccurs="unbounded"/>
 *         <element name="related" type="{http://hl7.org/fhir}DocumentManifest.Related" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DocumentManifest", propOrder = { "masterIdentifier", "identifier", "subject", "recipient", "type", "author", "created", "source", "status", "description", "content", "related" }) public class DocumentManifest extends DomainResource implements Equals2, HashCode2, ToString2 { protected Identifier masterIdentifier; protected List identifier; protected Reference subject; protected List recipient; protected CodeableConcept type; protected List author; protected DateTime created; protected Uri source; @XmlElement(required = true) protected DocumentReferenceStatus status; protected org.hl7.fhir.String description; @XmlElement(required = true) protected List content; protected List related; /** * Gets the value of the masterIdentifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getMasterIdentifier() { return masterIdentifier; } /** * Sets the value of the masterIdentifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setMasterIdentifier(Identifier value) { this.masterIdentifier = value; } /** * 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 Jakarta XML Binding object. * This is why there is not a set method 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 * {@link Identifier } * * */ public List getIdentifier() { if (identifier == null) { identifier = new ArrayList(); } return this.identifier; } /** * 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 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 Jakarta XML Binding object. * This is why there is not a set method 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 * {@link Reference } * * */ public List getRecipient() { if (recipient == null) { recipient = new ArrayList(); } return this.recipient; } /** * 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 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 created property. * * @return * possible object is * {@link DateTime } * */ public DateTime getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link DateTime } * */ public void setCreated(DateTime value) { this.created = value; } /** * Gets the value of the source property. * * @return * possible object is * {@link Uri } * */ public Uri getSource() { return source; } /** * Sets the value of the source property. * * @param value * allowed object is * {@link Uri } * */ public void setSource(Uri value) { this.source = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link DocumentReferenceStatus } * */ public DocumentReferenceStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link DocumentReferenceStatus } * */ public void setStatus(DocumentReferenceStatus value) { this.status = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDescription(org.hl7.fhir.String value) { this.description = value; } /** * Gets the value of the content 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 content property. * *

* For example, to add a new item, do as follows: *

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DocumentManifestContent } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } /** * Gets the value of the related 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 related property. * *

* For example, to add a new item, do as follows: *

     *    getRelated().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DocumentManifestRelated } * * */ public List getRelated() { if (related == null) { related = new ArrayList(); } return this.related; } public DocumentManifest withMasterIdentifier(Identifier value) { setMasterIdentifier(value); return this; } public DocumentManifest withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public DocumentManifest withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public DocumentManifest withSubject(Reference value) { setSubject(value); return this; } public DocumentManifest withRecipient(Reference... values) { if (values!= null) { for (Reference value: values) { getRecipient().add(value); } } return this; } public DocumentManifest withRecipient(Collection values) { if (values!= null) { getRecipient().addAll(values); } return this; } public DocumentManifest withType(CodeableConcept value) { setType(value); return this; } public DocumentManifest withAuthor(Reference... values) { if (values!= null) { for (Reference value: values) { getAuthor().add(value); } } return this; } public DocumentManifest withAuthor(Collection values) { if (values!= null) { getAuthor().addAll(values); } return this; } public DocumentManifest withCreated(DateTime value) { setCreated(value); return this; } public DocumentManifest withSource(Uri value) { setSource(value); return this; } public DocumentManifest withStatus(DocumentReferenceStatus value) { setStatus(value); return this; } public DocumentManifest withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public DocumentManifest withContent(DocumentManifestContent... values) { if (values!= null) { for (DocumentManifestContent value: values) { getContent().add(value); } } return this; } public DocumentManifest withContent(Collection values) { if (values!= null) { getContent().addAll(values); } return this; } public DocumentManifest withRelated(DocumentManifestRelated... values) { if (values!= null) { for (DocumentManifestRelated value: values) { getRelated().add(value); } } return this; } public DocumentManifest withRelated(Collection values) { if (values!= null) { getRelated().addAll(values); } return this; } @Override public DocumentManifest withText(Narrative value) { setText(value); return this; } @Override public DocumentManifest withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public DocumentManifest withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public DocumentManifest withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public DocumentManifest withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public DocumentManifest withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public DocumentManifest withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public DocumentManifest withId(Id value) { setId(value); return this; } @Override public DocumentManifest withMeta(Meta value) { setMeta(value); return this; } @Override public DocumentManifest withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public DocumentManifest 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 DocumentManifest that = ((DocumentManifest) object); { Identifier lhsMasterIdentifier; lhsMasterIdentifier = this.getMasterIdentifier(); Identifier rhsMasterIdentifier; rhsMasterIdentifier = that.getMasterIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "masterIdentifier", lhsMasterIdentifier), LocatorUtils.property(thatLocator, "masterIdentifier", rhsMasterIdentifier), lhsMasterIdentifier, rhsMasterIdentifier, (this.masterIdentifier!= null), (that.masterIdentifier!= null))) { return false; } } { List lhsIdentifier; lhsIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); List rhsIdentifier; rhsIdentifier = (((that.identifier!= null)&&(!that.identifier.isEmpty()))?that.getIdentifier():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) { 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 lhsRecipient; lhsRecipient = (((this.recipient!= null)&&(!this.recipient.isEmpty()))?this.getRecipient():null); List rhsRecipient; rhsRecipient = (((that.recipient!= null)&&(!that.recipient.isEmpty()))?that.getRecipient():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "recipient", lhsRecipient), LocatorUtils.property(thatLocator, "recipient", rhsRecipient), lhsRecipient, rhsRecipient, ((this.recipient!= null)&&(!this.recipient.isEmpty())), ((that.recipient!= null)&&(!that.recipient.isEmpty())))) { 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; } } { 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; } } { DateTime lhsCreated; lhsCreated = this.getCreated(); DateTime rhsCreated; rhsCreated = that.getCreated(); if (!strategy.equals(LocatorUtils.property(thisLocator, "created", lhsCreated), LocatorUtils.property(thatLocator, "created", rhsCreated), lhsCreated, rhsCreated, (this.created!= null), (that.created!= null))) { return false; } } { Uri lhsSource; lhsSource = this.getSource(); Uri rhsSource; rhsSource = that.getSource(); if (!strategy.equals(LocatorUtils.property(thisLocator, "source", lhsSource), LocatorUtils.property(thatLocator, "source", rhsSource), lhsSource, rhsSource, (this.source!= null), (that.source!= null))) { return false; } } { DocumentReferenceStatus lhsStatus; lhsStatus = this.getStatus(); DocumentReferenceStatus 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; } } { org.hl7.fhir.String lhsDescription; lhsDescription = this.getDescription(); org.hl7.fhir.String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { List lhsContent; lhsContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); List rhsContent; rhsContent = (((that.content!= null)&&(!that.content.isEmpty()))?that.getContent():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, ((this.content!= null)&&(!this.content.isEmpty())), ((that.content!= null)&&(!that.content.isEmpty())))) { return false; } } { List lhsRelated; lhsRelated = (((this.related!= null)&&(!this.related.isEmpty()))?this.getRelated():null); List rhsRelated; rhsRelated = (((that.related!= null)&&(!that.related.isEmpty()))?that.getRelated():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "related", lhsRelated), LocatorUtils.property(thatLocator, "related", rhsRelated), lhsRelated, rhsRelated, ((this.related!= null)&&(!this.related.isEmpty())), ((that.related!= null)&&(!that.related.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 theMasterIdentifier; theMasterIdentifier = this.getMasterIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "masterIdentifier", theMasterIdentifier), currentHashCode, theMasterIdentifier, (this.masterIdentifier!= null)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { Reference theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null)); } { List theRecipient; theRecipient = (((this.recipient!= null)&&(!this.recipient.isEmpty()))?this.getRecipient():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "recipient", theRecipient), currentHashCode, theRecipient, ((this.recipient!= null)&&(!this.recipient.isEmpty()))); } { CodeableConcept theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= 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()))); } { DateTime theCreated; theCreated = this.getCreated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "created", theCreated), currentHashCode, theCreated, (this.created!= null)); } { Uri theSource; theSource = this.getSource(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "source", theSource), currentHashCode, theSource, (this.source!= null)); } { DocumentReferenceStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent, ((this.content!= null)&&(!this.content.isEmpty()))); } { List theRelated; theRelated = (((this.related!= null)&&(!this.related.isEmpty()))?this.getRelated():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "related", theRelated), currentHashCode, theRelated, ((this.related!= null)&&(!this.related.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 theMasterIdentifier; theMasterIdentifier = this.getMasterIdentifier(); strategy.appendField(locator, this, "masterIdentifier", buffer, theMasterIdentifier, (this.masterIdentifier!= null)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { Reference theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null)); } { List theRecipient; theRecipient = (((this.recipient!= null)&&(!this.recipient.isEmpty()))?this.getRecipient():null); strategy.appendField(locator, this, "recipient", buffer, theRecipient, ((this.recipient!= null)&&(!this.recipient.isEmpty()))); } { CodeableConcept theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= 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()))); } { DateTime theCreated; theCreated = this.getCreated(); strategy.appendField(locator, this, "created", buffer, theCreated, (this.created!= null)); } { Uri theSource; theSource = this.getSource(); strategy.appendField(locator, this, "source", buffer, theSource, (this.source!= null)); } { DocumentReferenceStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); strategy.appendField(locator, this, "content", buffer, theContent, ((this.content!= null)&&(!this.content.isEmpty()))); } { List theRelated; theRelated = (((this.related!= null)&&(!this.related.isEmpty()))?this.getRelated():null); strategy.appendField(locator, this, "related", buffer, theRelated, ((this.related!= null)&&(!this.related.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setRecipient(List value) { this.recipient = value; } public void setAuthor(List value) { this.author = value; } public void setContent(List value) { this.content = value; } public void setRelated(List value) { this.related = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy