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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.15.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.08.16 at 09:36:55 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 NamingSystem complex type. * *

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

 * <complexType name="NamingSystem">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="name" type="{http://hl7.org/fhir}string"/>
 *         <element name="status" type="{http://hl7.org/fhir}ConformanceResourceStatus"/>
 *         <element name="kind" type="{http://hl7.org/fhir}NamingSystemType"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime"/>
 *         <element name="publisher" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="contact" type="{http://hl7.org/fhir}NamingSystem.Contact" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="responsible" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="useContext" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="usage" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="uniqueId" type="{http://hl7.org/fhir}NamingSystem.UniqueId" maxOccurs="unbounded"/>
 *         <element name="replacedBy" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NamingSystem", propOrder = { "name", "status", "kind", "date", "publisher", "contact", "responsible", "type", "description", "useContext", "usage", "uniqueId", "replacedBy" }) public class NamingSystem extends DomainResource implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected org.hl7.fhir.String name; @XmlElement(required = true) protected ConformanceResourceStatus status; @XmlElement(required = true) protected NamingSystemType kind; @XmlElement(required = true) protected DateTime date; protected org.hl7.fhir.String publisher; protected List contact; protected org.hl7.fhir.String responsible; protected CodeableConcept type; protected org.hl7.fhir.String description; protected List useContext; protected org.hl7.fhir.String usage; @XmlElement(required = true) protected List uniqueId; protected Reference replacedBy; /** * Gets the value of the name property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setName(org.hl7.fhir.String value) { this.name = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link ConformanceResourceStatus } * */ public ConformanceResourceStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link ConformanceResourceStatus } * */ public void setStatus(ConformanceResourceStatus value) { this.status = value; } /** * Gets the value of the kind property. * * @return * possible object is * {@link NamingSystemType } * */ public NamingSystemType getKind() { return kind; } /** * Sets the value of the kind property. * * @param value * allowed object is * {@link NamingSystemType } * */ public void setKind(NamingSystemType value) { this.kind = 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 publisher property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPublisher() { return publisher; } /** * Sets the value of the publisher property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPublisher(org.hl7.fhir.String value) { this.publisher = value; } /** * Gets the value of the contact 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 contact property. * *

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

     *    getContact().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NamingSystemContact } * * */ public List getContact() { if (contact == null) { contact = new ArrayList(); } return this.contact; } /** * Gets the value of the responsible property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getResponsible() { return responsible; } /** * Sets the value of the responsible property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setResponsible(org.hl7.fhir.String value) { this.responsible = 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 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 useContext 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 useContext property. * *

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

     *    getUseContext().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getUseContext() { if (useContext == null) { useContext = new ArrayList(); } return this.useContext; } /** * Gets the value of the usage property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getUsage() { return usage; } /** * Sets the value of the usage property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setUsage(org.hl7.fhir.String value) { this.usage = value; } /** * Gets the value of the uniqueId 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 uniqueId property. * *

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

     *    getUniqueId().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link NamingSystemUniqueId } * * */ public List getUniqueId() { if (uniqueId == null) { uniqueId = new ArrayList(); } return this.uniqueId; } /** * Gets the value of the replacedBy property. * * @return * possible object is * {@link Reference } * */ public Reference getReplacedBy() { return replacedBy; } /** * Sets the value of the replacedBy property. * * @param value * allowed object is * {@link Reference } * */ public void setReplacedBy(Reference value) { this.replacedBy = value; } public NamingSystem withName(org.hl7.fhir.String value) { setName(value); return this; } public NamingSystem withStatus(ConformanceResourceStatus value) { setStatus(value); return this; } public NamingSystem withKind(NamingSystemType value) { setKind(value); return this; } public NamingSystem withDate(DateTime value) { setDate(value); return this; } public NamingSystem withPublisher(org.hl7.fhir.String value) { setPublisher(value); return this; } public NamingSystem withContact(NamingSystemContact... values) { if (values!= null) { for (NamingSystemContact value: values) { getContact().add(value); } } return this; } public NamingSystem withContact(Collection values) { if (values!= null) { getContact().addAll(values); } return this; } public NamingSystem withResponsible(org.hl7.fhir.String value) { setResponsible(value); return this; } public NamingSystem withType(CodeableConcept value) { setType(value); return this; } public NamingSystem withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public NamingSystem withUseContext(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getUseContext().add(value); } } return this; } public NamingSystem withUseContext(Collection values) { if (values!= null) { getUseContext().addAll(values); } return this; } public NamingSystem withUsage(org.hl7.fhir.String value) { setUsage(value); return this; } public NamingSystem withUniqueId(NamingSystemUniqueId... values) { if (values!= null) { for (NamingSystemUniqueId value: values) { getUniqueId().add(value); } } return this; } public NamingSystem withUniqueId(Collection values) { if (values!= null) { getUniqueId().addAll(values); } return this; } public NamingSystem withReplacedBy(Reference value) { setReplacedBy(value); return this; } @Override public NamingSystem withText(Narrative value) { setText(value); return this; } @Override public NamingSystem withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public NamingSystem withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public NamingSystem withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public NamingSystem withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public NamingSystem withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public NamingSystem withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public NamingSystem withId(Id value) { setId(value); return this; } @Override public NamingSystem withMeta(Meta value) { setMeta(value); return this; } @Override public NamingSystem withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public NamingSystem 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 NamingSystem that = ((NamingSystem) object); { org.hl7.fhir.String lhsName; lhsName = this.getName(); org.hl7.fhir.String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { ConformanceResourceStatus lhsStatus; lhsStatus = this.getStatus(); ConformanceResourceStatus 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; } } { NamingSystemType lhsKind; lhsKind = this.getKind(); NamingSystemType rhsKind; rhsKind = that.getKind(); if (!strategy.equals(LocatorUtils.property(thisLocator, "kind", lhsKind), LocatorUtils.property(thatLocator, "kind", rhsKind), lhsKind, rhsKind, (this.kind!= null), (that.kind!= 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; } } { org.hl7.fhir.String lhsPublisher; lhsPublisher = this.getPublisher(); org.hl7.fhir.String rhsPublisher; rhsPublisher = that.getPublisher(); if (!strategy.equals(LocatorUtils.property(thisLocator, "publisher", lhsPublisher), LocatorUtils.property(thatLocator, "publisher", rhsPublisher), lhsPublisher, rhsPublisher, (this.publisher!= null), (that.publisher!= null))) { return false; } } { List lhsContact; lhsContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); List rhsContact; rhsContact = (((that.contact!= null)&&(!that.contact.isEmpty()))?that.getContact():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact, ((this.contact!= null)&&(!this.contact.isEmpty())), ((that.contact!= null)&&(!that.contact.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsResponsible; lhsResponsible = this.getResponsible(); org.hl7.fhir.String rhsResponsible; rhsResponsible = that.getResponsible(); if (!strategy.equals(LocatorUtils.property(thisLocator, "responsible", lhsResponsible), LocatorUtils.property(thatLocator, "responsible", rhsResponsible), lhsResponsible, rhsResponsible, (this.responsible!= null), (that.responsible!= 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; } } { 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 lhsUseContext; lhsUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); List rhsUseContext; rhsUseContext = (((that.useContext!= null)&&(!that.useContext.isEmpty()))?that.getUseContext():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "useContext", lhsUseContext), LocatorUtils.property(thatLocator, "useContext", rhsUseContext), lhsUseContext, rhsUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty())), ((that.useContext!= null)&&(!that.useContext.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsUsage; lhsUsage = this.getUsage(); org.hl7.fhir.String rhsUsage; rhsUsage = that.getUsage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "usage", lhsUsage), LocatorUtils.property(thatLocator, "usage", rhsUsage), lhsUsage, rhsUsage, (this.usage!= null), (that.usage!= null))) { return false; } } { List lhsUniqueId; lhsUniqueId = (((this.uniqueId!= null)&&(!this.uniqueId.isEmpty()))?this.getUniqueId():null); List rhsUniqueId; rhsUniqueId = (((that.uniqueId!= null)&&(!that.uniqueId.isEmpty()))?that.getUniqueId():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "uniqueId", lhsUniqueId), LocatorUtils.property(thatLocator, "uniqueId", rhsUniqueId), lhsUniqueId, rhsUniqueId, ((this.uniqueId!= null)&&(!this.uniqueId.isEmpty())), ((that.uniqueId!= null)&&(!that.uniqueId.isEmpty())))) { return false; } } { Reference lhsReplacedBy; lhsReplacedBy = this.getReplacedBy(); Reference rhsReplacedBy; rhsReplacedBy = that.getReplacedBy(); if (!strategy.equals(LocatorUtils.property(thisLocator, "replacedBy", lhsReplacedBy), LocatorUtils.property(thatLocator, "replacedBy", rhsReplacedBy), lhsReplacedBy, rhsReplacedBy, (this.replacedBy!= null), (that.replacedBy!= null))) { 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); { org.hl7.fhir.String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { ConformanceResourceStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { NamingSystemType theKind; theKind = this.getKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kind", theKind), currentHashCode, theKind, (this.kind!= null)); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { org.hl7.fhir.String thePublisher; thePublisher = this.getPublisher(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "publisher", thePublisher), currentHashCode, thePublisher, (this.publisher!= null)); } { List theContact; theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact, ((this.contact!= null)&&(!this.contact.isEmpty()))); } { org.hl7.fhir.String theResponsible; theResponsible = this.getResponsible(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "responsible", theResponsible), currentHashCode, theResponsible, (this.responsible!= null)); } { CodeableConcept theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { List theUseContext; theUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "useContext", theUseContext), currentHashCode, theUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty()))); } { org.hl7.fhir.String theUsage; theUsage = this.getUsage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "usage", theUsage), currentHashCode, theUsage, (this.usage!= null)); } { List theUniqueId; theUniqueId = (((this.uniqueId!= null)&&(!this.uniqueId.isEmpty()))?this.getUniqueId():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "uniqueId", theUniqueId), currentHashCode, theUniqueId, ((this.uniqueId!= null)&&(!this.uniqueId.isEmpty()))); } { Reference theReplacedBy; theReplacedBy = this.getReplacedBy(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "replacedBy", theReplacedBy), currentHashCode, theReplacedBy, (this.replacedBy!= null)); } 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); { org.hl7.fhir.String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { ConformanceResourceStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { NamingSystemType theKind; theKind = this.getKind(); strategy.appendField(locator, this, "kind", buffer, theKind, (this.kind!= null)); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { org.hl7.fhir.String thePublisher; thePublisher = this.getPublisher(); strategy.appendField(locator, this, "publisher", buffer, thePublisher, (this.publisher!= null)); } { List theContact; theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); strategy.appendField(locator, this, "contact", buffer, theContact, ((this.contact!= null)&&(!this.contact.isEmpty()))); } { org.hl7.fhir.String theResponsible; theResponsible = this.getResponsible(); strategy.appendField(locator, this, "responsible", buffer, theResponsible, (this.responsible!= null)); } { CodeableConcept theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { List theUseContext; theUseContext = (((this.useContext!= null)&&(!this.useContext.isEmpty()))?this.getUseContext():null); strategy.appendField(locator, this, "useContext", buffer, theUseContext, ((this.useContext!= null)&&(!this.useContext.isEmpty()))); } { org.hl7.fhir.String theUsage; theUsage = this.getUsage(); strategy.appendField(locator, this, "usage", buffer, theUsage, (this.usage!= null)); } { List theUniqueId; theUniqueId = (((this.uniqueId!= null)&&(!this.uniqueId.isEmpty()))?this.getUniqueId():null); strategy.appendField(locator, this, "uniqueId", buffer, theUniqueId, ((this.uniqueId!= null)&&(!this.uniqueId.isEmpty()))); } { Reference theReplacedBy; theReplacedBy = this.getReplacedBy(); strategy.appendField(locator, this, "replacedBy", buffer, theReplacedBy, (this.replacedBy!= null)); } return buffer; } public void setContact(List value) { this.contact = value; } public void setUseContext(List value) { this.useContext = value; } public void setUniqueId(List value) { this.uniqueId = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy