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

org.hl7.fhir.QuestionnaireItem 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: 2023.12.08 at 08:47:56 AM MST 
//


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;


/**
 * A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
 * 
 * 

Java class for Questionnaire.Item complex type. * *

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

 * <complexType name="Questionnaire.Item">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="linkId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="concept" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="prefix" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}QuestionnaireItemType"/>
 *         <element name="enableWhen" type="{http://hl7.org/fhir}Questionnaire.EnableWhen" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="required" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="repeats" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="readOnly" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="maxLength" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="options" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="option" type="{http://hl7.org/fhir}Questionnaire.Option" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="initialBoolean" type="{http://hl7.org/fhir}boolean"/>
 *           <element name="initialDecimal" type="{http://hl7.org/fhir}decimal"/>
 *           <element name="initialInteger" type="{http://hl7.org/fhir}integer"/>
 *           <element name="initialDate" type="{http://hl7.org/fhir}date"/>
 *           <element name="initialDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="initialInstant" type="{http://hl7.org/fhir}instant"/>
 *           <element name="initialTime" type="{http://hl7.org/fhir}time"/>
 *           <element name="initialString" type="{http://hl7.org/fhir}string"/>
 *           <element name="initialUri" type="{http://hl7.org/fhir}uri"/>
 *           <element name="initialAttachment" type="{http://hl7.org/fhir}Attachment"/>
 *           <element name="initialCoding" type="{http://hl7.org/fhir}Coding"/>
 *           <element name="initialQuantity" type="{http://hl7.org/fhir}Quantity"/>
 *           <element name="initialReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="item" type="{http://hl7.org/fhir}Questionnaire.Item" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Questionnaire.Item", propOrder = { "linkId", "concept", "prefix", "text", "type", "enableWhen", "required", "repeats", "readOnly", "maxLength", "options", "option", "initialBoolean", "initialDecimal", "initialInteger", "initialDate", "initialDateTime", "initialInstant", "initialTime", "initialString", "initialUri", "initialAttachment", "initialCoding", "initialQuantity", "initialReference", "item" }) public class QuestionnaireItem extends BackboneElement implements Equals2, HashCode2, ToString2 { protected org.hl7.fhir.String linkId; protected List concept; protected org.hl7.fhir.String prefix; protected org.hl7.fhir.String text; @XmlElement(required = true) protected QuestionnaireItemType type; protected List enableWhen; protected Boolean required; protected Boolean repeats; protected Boolean readOnly; protected Integer maxLength; protected Reference options; protected List option; protected Boolean initialBoolean; protected Decimal initialDecimal; protected Integer initialInteger; protected Date initialDate; protected DateTime initialDateTime; protected Instant initialInstant; protected Time initialTime; protected org.hl7.fhir.String initialString; protected Uri initialUri; protected Attachment initialAttachment; protected Coding initialCoding; protected Quantity initialQuantity; protected Reference initialReference; protected List item; /** * Gets the value of the linkId property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getLinkId() { return linkId; } /** * Sets the value of the linkId property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setLinkId(org.hl7.fhir.String value) { this.linkId = value; } /** * Gets the value of the concept 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 concept property. * *

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

     *    getConcept().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Coding } * * */ public List getConcept() { if (concept == null) { concept = new ArrayList(); } return this.concept; } /** * Gets the value of the prefix property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPrefix() { return prefix; } /** * Sets the value of the prefix property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPrefix(org.hl7.fhir.String value) { this.prefix = value; } /** * Gets the value of the text property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getText() { return text; } /** * Sets the value of the text property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setText(org.hl7.fhir.String value) { this.text = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link QuestionnaireItemType } * */ public QuestionnaireItemType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link QuestionnaireItemType } * */ public void setType(QuestionnaireItemType value) { this.type = value; } /** * Gets the value of the enableWhen 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 enableWhen property. * *

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

     *    getEnableWhen().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link QuestionnaireEnableWhen } * * */ public List getEnableWhen() { if (enableWhen == null) { enableWhen = new ArrayList(); } return this.enableWhen; } /** * Gets the value of the required property. * * @return * possible object is * {@link Boolean } * */ public Boolean getRequired() { return required; } /** * Sets the value of the required property. * * @param value * allowed object is * {@link Boolean } * */ public void setRequired(Boolean value) { this.required = value; } /** * Gets the value of the repeats property. * * @return * possible object is * {@link Boolean } * */ public Boolean getRepeats() { return repeats; } /** * Sets the value of the repeats property. * * @param value * allowed object is * {@link Boolean } * */ public void setRepeats(Boolean value) { this.repeats = value; } /** * Gets the value of the readOnly property. * * @return * possible object is * {@link Boolean } * */ public Boolean getReadOnly() { return readOnly; } /** * Sets the value of the readOnly property. * * @param value * allowed object is * {@link Boolean } * */ public void setReadOnly(Boolean value) { this.readOnly = value; } /** * Gets the value of the maxLength property. * * @return * possible object is * {@link Integer } * */ public Integer getMaxLength() { return maxLength; } /** * Sets the value of the maxLength property. * * @param value * allowed object is * {@link Integer } * */ public void setMaxLength(Integer value) { this.maxLength = value; } /** * Gets the value of the options property. * * @return * possible object is * {@link Reference } * */ public Reference getOptions() { return options; } /** * Sets the value of the options property. * * @param value * allowed object is * {@link Reference } * */ public void setOptions(Reference value) { this.options = value; } /** * Gets the value of the option 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 option property. * *

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

     *    getOption().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link QuestionnaireOption } * * */ public List getOption() { if (option == null) { option = new ArrayList(); } return this.option; } /** * Gets the value of the initialBoolean property. * * @return * possible object is * {@link Boolean } * */ public Boolean getInitialBoolean() { return initialBoolean; } /** * Sets the value of the initialBoolean property. * * @param value * allowed object is * {@link Boolean } * */ public void setInitialBoolean(Boolean value) { this.initialBoolean = value; } /** * Gets the value of the initialDecimal property. * * @return * possible object is * {@link Decimal } * */ public Decimal getInitialDecimal() { return initialDecimal; } /** * Sets the value of the initialDecimal property. * * @param value * allowed object is * {@link Decimal } * */ public void setInitialDecimal(Decimal value) { this.initialDecimal = value; } /** * Gets the value of the initialInteger property. * * @return * possible object is * {@link Integer } * */ public Integer getInitialInteger() { return initialInteger; } /** * Sets the value of the initialInteger property. * * @param value * allowed object is * {@link Integer } * */ public void setInitialInteger(Integer value) { this.initialInteger = value; } /** * Gets the value of the initialDate property. * * @return * possible object is * {@link Date } * */ public Date getInitialDate() { return initialDate; } /** * Sets the value of the initialDate property. * * @param value * allowed object is * {@link Date } * */ public void setInitialDate(Date value) { this.initialDate = value; } /** * Gets the value of the initialDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getInitialDateTime() { return initialDateTime; } /** * Sets the value of the initialDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setInitialDateTime(DateTime value) { this.initialDateTime = value; } /** * Gets the value of the initialInstant property. * * @return * possible object is * {@link Instant } * */ public Instant getInitialInstant() { return initialInstant; } /** * Sets the value of the initialInstant property. * * @param value * allowed object is * {@link Instant } * */ public void setInitialInstant(Instant value) { this.initialInstant = value; } /** * Gets the value of the initialTime property. * * @return * possible object is * {@link Time } * */ public Time getInitialTime() { return initialTime; } /** * Sets the value of the initialTime property. * * @param value * allowed object is * {@link Time } * */ public void setInitialTime(Time value) { this.initialTime = value; } /** * Gets the value of the initialString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getInitialString() { return initialString; } /** * Sets the value of the initialString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setInitialString(org.hl7.fhir.String value) { this.initialString = value; } /** * Gets the value of the initialUri property. * * @return * possible object is * {@link Uri } * */ public Uri getInitialUri() { return initialUri; } /** * Sets the value of the initialUri property. * * @param value * allowed object is * {@link Uri } * */ public void setInitialUri(Uri value) { this.initialUri = value; } /** * Gets the value of the initialAttachment property. * * @return * possible object is * {@link Attachment } * */ public Attachment getInitialAttachment() { return initialAttachment; } /** * Sets the value of the initialAttachment property. * * @param value * allowed object is * {@link Attachment } * */ public void setInitialAttachment(Attachment value) { this.initialAttachment = value; } /** * Gets the value of the initialCoding property. * * @return * possible object is * {@link Coding } * */ public Coding getInitialCoding() { return initialCoding; } /** * Sets the value of the initialCoding property. * * @param value * allowed object is * {@link Coding } * */ public void setInitialCoding(Coding value) { this.initialCoding = value; } /** * Gets the value of the initialQuantity property. * * @return * possible object is * {@link Quantity } * */ public Quantity getInitialQuantity() { return initialQuantity; } /** * Sets the value of the initialQuantity property. * * @param value * allowed object is * {@link Quantity } * */ public void setInitialQuantity(Quantity value) { this.initialQuantity = value; } /** * Gets the value of the initialReference property. * * @return * possible object is * {@link Reference } * */ public Reference getInitialReference() { return initialReference; } /** * Sets the value of the initialReference property. * * @param value * allowed object is * {@link Reference } * */ public void setInitialReference(Reference value) { this.initialReference = value; } /** * Gets the value of the item 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 item property. * *

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

     *    getItem().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link QuestionnaireItem } * * */ public List getItem() { if (item == null) { item = new ArrayList(); } return this.item; } public QuestionnaireItem withLinkId(org.hl7.fhir.String value) { setLinkId(value); return this; } public QuestionnaireItem withConcept(Coding... values) { if (values!= null) { for (Coding value: values) { getConcept().add(value); } } return this; } public QuestionnaireItem withConcept(Collection values) { if (values!= null) { getConcept().addAll(values); } return this; } public QuestionnaireItem withPrefix(org.hl7.fhir.String value) { setPrefix(value); return this; } public QuestionnaireItem withText(org.hl7.fhir.String value) { setText(value); return this; } public QuestionnaireItem withType(QuestionnaireItemType value) { setType(value); return this; } public QuestionnaireItem withEnableWhen(QuestionnaireEnableWhen... values) { if (values!= null) { for (QuestionnaireEnableWhen value: values) { getEnableWhen().add(value); } } return this; } public QuestionnaireItem withEnableWhen(Collection values) { if (values!= null) { getEnableWhen().addAll(values); } return this; } public QuestionnaireItem withRequired(Boolean value) { setRequired(value); return this; } public QuestionnaireItem withRepeats(Boolean value) { setRepeats(value); return this; } public QuestionnaireItem withReadOnly(Boolean value) { setReadOnly(value); return this; } public QuestionnaireItem withMaxLength(Integer value) { setMaxLength(value); return this; } public QuestionnaireItem withOptions(Reference value) { setOptions(value); return this; } public QuestionnaireItem withOption(QuestionnaireOption... values) { if (values!= null) { for (QuestionnaireOption value: values) { getOption().add(value); } } return this; } public QuestionnaireItem withOption(Collection values) { if (values!= null) { getOption().addAll(values); } return this; } public QuestionnaireItem withInitialBoolean(Boolean value) { setInitialBoolean(value); return this; } public QuestionnaireItem withInitialDecimal(Decimal value) { setInitialDecimal(value); return this; } public QuestionnaireItem withInitialInteger(Integer value) { setInitialInteger(value); return this; } public QuestionnaireItem withInitialDate(Date value) { setInitialDate(value); return this; } public QuestionnaireItem withInitialDateTime(DateTime value) { setInitialDateTime(value); return this; } public QuestionnaireItem withInitialInstant(Instant value) { setInitialInstant(value); return this; } public QuestionnaireItem withInitialTime(Time value) { setInitialTime(value); return this; } public QuestionnaireItem withInitialString(org.hl7.fhir.String value) { setInitialString(value); return this; } public QuestionnaireItem withInitialUri(Uri value) { setInitialUri(value); return this; } public QuestionnaireItem withInitialAttachment(Attachment value) { setInitialAttachment(value); return this; } public QuestionnaireItem withInitialCoding(Coding value) { setInitialCoding(value); return this; } public QuestionnaireItem withInitialQuantity(Quantity value) { setInitialQuantity(value); return this; } public QuestionnaireItem withInitialReference(Reference value) { setInitialReference(value); return this; } public QuestionnaireItem withItem(QuestionnaireItem... values) { if (values!= null) { for (QuestionnaireItem value: values) { getItem().add(value); } } return this; } public QuestionnaireItem withItem(Collection values) { if (values!= null) { getItem().addAll(values); } return this; } @Override public QuestionnaireItem withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public QuestionnaireItem withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public QuestionnaireItem withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public QuestionnaireItem withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public QuestionnaireItem withId(java.lang.String value) { setId(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 QuestionnaireItem that = ((QuestionnaireItem) object); { org.hl7.fhir.String lhsLinkId; lhsLinkId = this.getLinkId(); org.hl7.fhir.String rhsLinkId; rhsLinkId = that.getLinkId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "linkId", lhsLinkId), LocatorUtils.property(thatLocator, "linkId", rhsLinkId), lhsLinkId, rhsLinkId, (this.linkId!= null), (that.linkId!= null))) { return false; } } { List lhsConcept; lhsConcept = (((this.concept!= null)&&(!this.concept.isEmpty()))?this.getConcept():null); List rhsConcept; rhsConcept = (((that.concept!= null)&&(!that.concept.isEmpty()))?that.getConcept():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "concept", lhsConcept), LocatorUtils.property(thatLocator, "concept", rhsConcept), lhsConcept, rhsConcept, ((this.concept!= null)&&(!this.concept.isEmpty())), ((that.concept!= null)&&(!that.concept.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsPrefix; lhsPrefix = this.getPrefix(); org.hl7.fhir.String rhsPrefix; rhsPrefix = that.getPrefix(); if (!strategy.equals(LocatorUtils.property(thisLocator, "prefix", lhsPrefix), LocatorUtils.property(thatLocator, "prefix", rhsPrefix), lhsPrefix, rhsPrefix, (this.prefix!= null), (that.prefix!= null))) { return false; } } { org.hl7.fhir.String lhsText; lhsText = this.getText(); org.hl7.fhir.String rhsText; rhsText = that.getText(); if (!strategy.equals(LocatorUtils.property(thisLocator, "text", lhsText), LocatorUtils.property(thatLocator, "text", rhsText), lhsText, rhsText, (this.text!= null), (that.text!= null))) { return false; } } { QuestionnaireItemType lhsType; lhsType = this.getType(); QuestionnaireItemType 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 lhsEnableWhen; lhsEnableWhen = (((this.enableWhen!= null)&&(!this.enableWhen.isEmpty()))?this.getEnableWhen():null); List rhsEnableWhen; rhsEnableWhen = (((that.enableWhen!= null)&&(!that.enableWhen.isEmpty()))?that.getEnableWhen():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "enableWhen", lhsEnableWhen), LocatorUtils.property(thatLocator, "enableWhen", rhsEnableWhen), lhsEnableWhen, rhsEnableWhen, ((this.enableWhen!= null)&&(!this.enableWhen.isEmpty())), ((that.enableWhen!= null)&&(!that.enableWhen.isEmpty())))) { return false; } } { Boolean lhsRequired; lhsRequired = this.getRequired(); Boolean rhsRequired; rhsRequired = that.getRequired(); if (!strategy.equals(LocatorUtils.property(thisLocator, "required", lhsRequired), LocatorUtils.property(thatLocator, "required", rhsRequired), lhsRequired, rhsRequired, (this.required!= null), (that.required!= null))) { return false; } } { Boolean lhsRepeats; lhsRepeats = this.getRepeats(); Boolean rhsRepeats; rhsRepeats = that.getRepeats(); if (!strategy.equals(LocatorUtils.property(thisLocator, "repeats", lhsRepeats), LocatorUtils.property(thatLocator, "repeats", rhsRepeats), lhsRepeats, rhsRepeats, (this.repeats!= null), (that.repeats!= null))) { return false; } } { Boolean lhsReadOnly; lhsReadOnly = this.getReadOnly(); Boolean rhsReadOnly; rhsReadOnly = that.getReadOnly(); if (!strategy.equals(LocatorUtils.property(thisLocator, "readOnly", lhsReadOnly), LocatorUtils.property(thatLocator, "readOnly", rhsReadOnly), lhsReadOnly, rhsReadOnly, (this.readOnly!= null), (that.readOnly!= null))) { return false; } } { Integer lhsMaxLength; lhsMaxLength = this.getMaxLength(); Integer rhsMaxLength; rhsMaxLength = that.getMaxLength(); if (!strategy.equals(LocatorUtils.property(thisLocator, "maxLength", lhsMaxLength), LocatorUtils.property(thatLocator, "maxLength", rhsMaxLength), lhsMaxLength, rhsMaxLength, (this.maxLength!= null), (that.maxLength!= null))) { return false; } } { Reference lhsOptions; lhsOptions = this.getOptions(); Reference rhsOptions; rhsOptions = that.getOptions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "options", lhsOptions), LocatorUtils.property(thatLocator, "options", rhsOptions), lhsOptions, rhsOptions, (this.options!= null), (that.options!= null))) { return false; } } { List lhsOption; lhsOption = (((this.option!= null)&&(!this.option.isEmpty()))?this.getOption():null); List rhsOption; rhsOption = (((that.option!= null)&&(!that.option.isEmpty()))?that.getOption():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "option", lhsOption), LocatorUtils.property(thatLocator, "option", rhsOption), lhsOption, rhsOption, ((this.option!= null)&&(!this.option.isEmpty())), ((that.option!= null)&&(!that.option.isEmpty())))) { return false; } } { Boolean lhsInitialBoolean; lhsInitialBoolean = this.getInitialBoolean(); Boolean rhsInitialBoolean; rhsInitialBoolean = that.getInitialBoolean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialBoolean", lhsInitialBoolean), LocatorUtils.property(thatLocator, "initialBoolean", rhsInitialBoolean), lhsInitialBoolean, rhsInitialBoolean, (this.initialBoolean!= null), (that.initialBoolean!= null))) { return false; } } { Decimal lhsInitialDecimal; lhsInitialDecimal = this.getInitialDecimal(); Decimal rhsInitialDecimal; rhsInitialDecimal = that.getInitialDecimal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialDecimal", lhsInitialDecimal), LocatorUtils.property(thatLocator, "initialDecimal", rhsInitialDecimal), lhsInitialDecimal, rhsInitialDecimal, (this.initialDecimal!= null), (that.initialDecimal!= null))) { return false; } } { Integer lhsInitialInteger; lhsInitialInteger = this.getInitialInteger(); Integer rhsInitialInteger; rhsInitialInteger = that.getInitialInteger(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialInteger", lhsInitialInteger), LocatorUtils.property(thatLocator, "initialInteger", rhsInitialInteger), lhsInitialInteger, rhsInitialInteger, (this.initialInteger!= null), (that.initialInteger!= null))) { return false; } } { Date lhsInitialDate; lhsInitialDate = this.getInitialDate(); Date rhsInitialDate; rhsInitialDate = that.getInitialDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialDate", lhsInitialDate), LocatorUtils.property(thatLocator, "initialDate", rhsInitialDate), lhsInitialDate, rhsInitialDate, (this.initialDate!= null), (that.initialDate!= null))) { return false; } } { DateTime lhsInitialDateTime; lhsInitialDateTime = this.getInitialDateTime(); DateTime rhsInitialDateTime; rhsInitialDateTime = that.getInitialDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialDateTime", lhsInitialDateTime), LocatorUtils.property(thatLocator, "initialDateTime", rhsInitialDateTime), lhsInitialDateTime, rhsInitialDateTime, (this.initialDateTime!= null), (that.initialDateTime!= null))) { return false; } } { Instant lhsInitialInstant; lhsInitialInstant = this.getInitialInstant(); Instant rhsInitialInstant; rhsInitialInstant = that.getInitialInstant(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialInstant", lhsInitialInstant), LocatorUtils.property(thatLocator, "initialInstant", rhsInitialInstant), lhsInitialInstant, rhsInitialInstant, (this.initialInstant!= null), (that.initialInstant!= null))) { return false; } } { Time lhsInitialTime; lhsInitialTime = this.getInitialTime(); Time rhsInitialTime; rhsInitialTime = that.getInitialTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialTime", lhsInitialTime), LocatorUtils.property(thatLocator, "initialTime", rhsInitialTime), lhsInitialTime, rhsInitialTime, (this.initialTime!= null), (that.initialTime!= null))) { return false; } } { org.hl7.fhir.String lhsInitialString; lhsInitialString = this.getInitialString(); org.hl7.fhir.String rhsInitialString; rhsInitialString = that.getInitialString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialString", lhsInitialString), LocatorUtils.property(thatLocator, "initialString", rhsInitialString), lhsInitialString, rhsInitialString, (this.initialString!= null), (that.initialString!= null))) { return false; } } { Uri lhsInitialUri; lhsInitialUri = this.getInitialUri(); Uri rhsInitialUri; rhsInitialUri = that.getInitialUri(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialUri", lhsInitialUri), LocatorUtils.property(thatLocator, "initialUri", rhsInitialUri), lhsInitialUri, rhsInitialUri, (this.initialUri!= null), (that.initialUri!= null))) { return false; } } { Attachment lhsInitialAttachment; lhsInitialAttachment = this.getInitialAttachment(); Attachment rhsInitialAttachment; rhsInitialAttachment = that.getInitialAttachment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialAttachment", lhsInitialAttachment), LocatorUtils.property(thatLocator, "initialAttachment", rhsInitialAttachment), lhsInitialAttachment, rhsInitialAttachment, (this.initialAttachment!= null), (that.initialAttachment!= null))) { return false; } } { Coding lhsInitialCoding; lhsInitialCoding = this.getInitialCoding(); Coding rhsInitialCoding; rhsInitialCoding = that.getInitialCoding(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialCoding", lhsInitialCoding), LocatorUtils.property(thatLocator, "initialCoding", rhsInitialCoding), lhsInitialCoding, rhsInitialCoding, (this.initialCoding!= null), (that.initialCoding!= null))) { return false; } } { Quantity lhsInitialQuantity; lhsInitialQuantity = this.getInitialQuantity(); Quantity rhsInitialQuantity; rhsInitialQuantity = that.getInitialQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialQuantity", lhsInitialQuantity), LocatorUtils.property(thatLocator, "initialQuantity", rhsInitialQuantity), lhsInitialQuantity, rhsInitialQuantity, (this.initialQuantity!= null), (that.initialQuantity!= null))) { return false; } } { Reference lhsInitialReference; lhsInitialReference = this.getInitialReference(); Reference rhsInitialReference; rhsInitialReference = that.getInitialReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "initialReference", lhsInitialReference), LocatorUtils.property(thatLocator, "initialReference", rhsInitialReference), lhsInitialReference, rhsInitialReference, (this.initialReference!= null), (that.initialReference!= null))) { return false; } } { List lhsItem; lhsItem = (((this.item!= null)&&(!this.item.isEmpty()))?this.getItem():null); List rhsItem; rhsItem = (((that.item!= null)&&(!that.item.isEmpty()))?that.getItem():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "item", lhsItem), LocatorUtils.property(thatLocator, "item", rhsItem), lhsItem, rhsItem, ((this.item!= null)&&(!this.item.isEmpty())), ((that.item!= null)&&(!that.item.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); { org.hl7.fhir.String theLinkId; theLinkId = this.getLinkId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "linkId", theLinkId), currentHashCode, theLinkId, (this.linkId!= null)); } { List theConcept; theConcept = (((this.concept!= null)&&(!this.concept.isEmpty()))?this.getConcept():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "concept", theConcept), currentHashCode, theConcept, ((this.concept!= null)&&(!this.concept.isEmpty()))); } { org.hl7.fhir.String thePrefix; thePrefix = this.getPrefix(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prefix", thePrefix), currentHashCode, thePrefix, (this.prefix!= null)); } { org.hl7.fhir.String theText; theText = this.getText(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "text", theText), currentHashCode, theText, (this.text!= null)); } { QuestionnaireItemType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { List theEnableWhen; theEnableWhen = (((this.enableWhen!= null)&&(!this.enableWhen.isEmpty()))?this.getEnableWhen():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enableWhen", theEnableWhen), currentHashCode, theEnableWhen, ((this.enableWhen!= null)&&(!this.enableWhen.isEmpty()))); } { Boolean theRequired; theRequired = this.getRequired(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "required", theRequired), currentHashCode, theRequired, (this.required!= null)); } { Boolean theRepeats; theRepeats = this.getRepeats(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "repeats", theRepeats), currentHashCode, theRepeats, (this.repeats!= null)); } { Boolean theReadOnly; theReadOnly = this.getReadOnly(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readOnly", theReadOnly), currentHashCode, theReadOnly, (this.readOnly!= null)); } { Integer theMaxLength; theMaxLength = this.getMaxLength(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "maxLength", theMaxLength), currentHashCode, theMaxLength, (this.maxLength!= null)); } { Reference theOptions; theOptions = this.getOptions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "options", theOptions), currentHashCode, theOptions, (this.options!= null)); } { List theOption; theOption = (((this.option!= null)&&(!this.option.isEmpty()))?this.getOption():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "option", theOption), currentHashCode, theOption, ((this.option!= null)&&(!this.option.isEmpty()))); } { Boolean theInitialBoolean; theInitialBoolean = this.getInitialBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialBoolean", theInitialBoolean), currentHashCode, theInitialBoolean, (this.initialBoolean!= null)); } { Decimal theInitialDecimal; theInitialDecimal = this.getInitialDecimal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialDecimal", theInitialDecimal), currentHashCode, theInitialDecimal, (this.initialDecimal!= null)); } { Integer theInitialInteger; theInitialInteger = this.getInitialInteger(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialInteger", theInitialInteger), currentHashCode, theInitialInteger, (this.initialInteger!= null)); } { Date theInitialDate; theInitialDate = this.getInitialDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialDate", theInitialDate), currentHashCode, theInitialDate, (this.initialDate!= null)); } { DateTime theInitialDateTime; theInitialDateTime = this.getInitialDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialDateTime", theInitialDateTime), currentHashCode, theInitialDateTime, (this.initialDateTime!= null)); } { Instant theInitialInstant; theInitialInstant = this.getInitialInstant(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialInstant", theInitialInstant), currentHashCode, theInitialInstant, (this.initialInstant!= null)); } { Time theInitialTime; theInitialTime = this.getInitialTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialTime", theInitialTime), currentHashCode, theInitialTime, (this.initialTime!= null)); } { org.hl7.fhir.String theInitialString; theInitialString = this.getInitialString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialString", theInitialString), currentHashCode, theInitialString, (this.initialString!= null)); } { Uri theInitialUri; theInitialUri = this.getInitialUri(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialUri", theInitialUri), currentHashCode, theInitialUri, (this.initialUri!= null)); } { Attachment theInitialAttachment; theInitialAttachment = this.getInitialAttachment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialAttachment", theInitialAttachment), currentHashCode, theInitialAttachment, (this.initialAttachment!= null)); } { Coding theInitialCoding; theInitialCoding = this.getInitialCoding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialCoding", theInitialCoding), currentHashCode, theInitialCoding, (this.initialCoding!= null)); } { Quantity theInitialQuantity; theInitialQuantity = this.getInitialQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialQuantity", theInitialQuantity), currentHashCode, theInitialQuantity, (this.initialQuantity!= null)); } { Reference theInitialReference; theInitialReference = this.getInitialReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "initialReference", theInitialReference), currentHashCode, theInitialReference, (this.initialReference!= null)); } { List theItem; theItem = (((this.item!= null)&&(!this.item.isEmpty()))?this.getItem():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "item", theItem), currentHashCode, theItem, ((this.item!= null)&&(!this.item.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); { org.hl7.fhir.String theLinkId; theLinkId = this.getLinkId(); strategy.appendField(locator, this, "linkId", buffer, theLinkId, (this.linkId!= null)); } { List theConcept; theConcept = (((this.concept!= null)&&(!this.concept.isEmpty()))?this.getConcept():null); strategy.appendField(locator, this, "concept", buffer, theConcept, ((this.concept!= null)&&(!this.concept.isEmpty()))); } { org.hl7.fhir.String thePrefix; thePrefix = this.getPrefix(); strategy.appendField(locator, this, "prefix", buffer, thePrefix, (this.prefix!= null)); } { org.hl7.fhir.String theText; theText = this.getText(); strategy.appendField(locator, this, "text", buffer, theText, (this.text!= null)); } { QuestionnaireItemType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { List theEnableWhen; theEnableWhen = (((this.enableWhen!= null)&&(!this.enableWhen.isEmpty()))?this.getEnableWhen():null); strategy.appendField(locator, this, "enableWhen", buffer, theEnableWhen, ((this.enableWhen!= null)&&(!this.enableWhen.isEmpty()))); } { Boolean theRequired; theRequired = this.getRequired(); strategy.appendField(locator, this, "required", buffer, theRequired, (this.required!= null)); } { Boolean theRepeats; theRepeats = this.getRepeats(); strategy.appendField(locator, this, "repeats", buffer, theRepeats, (this.repeats!= null)); } { Boolean theReadOnly; theReadOnly = this.getReadOnly(); strategy.appendField(locator, this, "readOnly", buffer, theReadOnly, (this.readOnly!= null)); } { Integer theMaxLength; theMaxLength = this.getMaxLength(); strategy.appendField(locator, this, "maxLength", buffer, theMaxLength, (this.maxLength!= null)); } { Reference theOptions; theOptions = this.getOptions(); strategy.appendField(locator, this, "options", buffer, theOptions, (this.options!= null)); } { List theOption; theOption = (((this.option!= null)&&(!this.option.isEmpty()))?this.getOption():null); strategy.appendField(locator, this, "option", buffer, theOption, ((this.option!= null)&&(!this.option.isEmpty()))); } { Boolean theInitialBoolean; theInitialBoolean = this.getInitialBoolean(); strategy.appendField(locator, this, "initialBoolean", buffer, theInitialBoolean, (this.initialBoolean!= null)); } { Decimal theInitialDecimal; theInitialDecimal = this.getInitialDecimal(); strategy.appendField(locator, this, "initialDecimal", buffer, theInitialDecimal, (this.initialDecimal!= null)); } { Integer theInitialInteger; theInitialInteger = this.getInitialInteger(); strategy.appendField(locator, this, "initialInteger", buffer, theInitialInteger, (this.initialInteger!= null)); } { Date theInitialDate; theInitialDate = this.getInitialDate(); strategy.appendField(locator, this, "initialDate", buffer, theInitialDate, (this.initialDate!= null)); } { DateTime theInitialDateTime; theInitialDateTime = this.getInitialDateTime(); strategy.appendField(locator, this, "initialDateTime", buffer, theInitialDateTime, (this.initialDateTime!= null)); } { Instant theInitialInstant; theInitialInstant = this.getInitialInstant(); strategy.appendField(locator, this, "initialInstant", buffer, theInitialInstant, (this.initialInstant!= null)); } { Time theInitialTime; theInitialTime = this.getInitialTime(); strategy.appendField(locator, this, "initialTime", buffer, theInitialTime, (this.initialTime!= null)); } { org.hl7.fhir.String theInitialString; theInitialString = this.getInitialString(); strategy.appendField(locator, this, "initialString", buffer, theInitialString, (this.initialString!= null)); } { Uri theInitialUri; theInitialUri = this.getInitialUri(); strategy.appendField(locator, this, "initialUri", buffer, theInitialUri, (this.initialUri!= null)); } { Attachment theInitialAttachment; theInitialAttachment = this.getInitialAttachment(); strategy.appendField(locator, this, "initialAttachment", buffer, theInitialAttachment, (this.initialAttachment!= null)); } { Coding theInitialCoding; theInitialCoding = this.getInitialCoding(); strategy.appendField(locator, this, "initialCoding", buffer, theInitialCoding, (this.initialCoding!= null)); } { Quantity theInitialQuantity; theInitialQuantity = this.getInitialQuantity(); strategy.appendField(locator, this, "initialQuantity", buffer, theInitialQuantity, (this.initialQuantity!= null)); } { Reference theInitialReference; theInitialReference = this.getInitialReference(); strategy.appendField(locator, this, "initialReference", buffer, theInitialReference, (this.initialReference!= null)); } { List theItem; theItem = (((this.item!= null)&&(!this.item.isEmpty()))?this.getItem():null); strategy.appendField(locator, this, "item", buffer, theItem, ((this.item!= null)&&(!this.item.isEmpty()))); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy