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

org.hl7.fhir.ImmunizationRecommendationRecommendation 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.03.21 at 12:42:34 PM 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;


/**
 * A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.
 * 
 * 

Java class for ImmunizationRecommendation.Recommendation complex type. * *

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

 * <complexType name="ImmunizationRecommendation.Recommendation">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime"/>
 *         <element name="vaccineCode" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="doseNumber" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="forecastStatus" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="dateCriterion" type="{http://hl7.org/fhir}ImmunizationRecommendation.DateCriterion" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="protocol" type="{http://hl7.org/fhir}ImmunizationRecommendation.Protocol" minOccurs="0"/>
 *         <element name="supportingImmunization" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="supportingPatientInformation" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ImmunizationRecommendation.Recommendation", propOrder = { "date", "vaccineCode", "doseNumber", "forecastStatus", "dateCriterion", "protocol", "supportingImmunization", "supportingPatientInformation" }) public class ImmunizationRecommendationRecommendation extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected DateTime date; @XmlElement(required = true) protected CodeableConcept vaccineCode; protected PositiveInt doseNumber; @XmlElement(required = true) protected CodeableConcept forecastStatus; protected List dateCriterion; protected ImmunizationRecommendationProtocol protocol; protected List supportingImmunization; protected List supportingPatientInformation; /** * 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 vaccineCode property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getVaccineCode() { return vaccineCode; } /** * Sets the value of the vaccineCode property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setVaccineCode(CodeableConcept value) { this.vaccineCode = value; } /** * Gets the value of the doseNumber property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getDoseNumber() { return doseNumber; } /** * Sets the value of the doseNumber property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setDoseNumber(PositiveInt value) { this.doseNumber = value; } /** * Gets the value of the forecastStatus property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getForecastStatus() { return forecastStatus; } /** * Sets the value of the forecastStatus property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setForecastStatus(CodeableConcept value) { this.forecastStatus = value; } /** * Gets the value of the dateCriterion 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 dateCriterion property. * *

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

     *    getDateCriterion().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ImmunizationRecommendationDateCriterion } * * */ public List getDateCriterion() { if (dateCriterion == null) { dateCriterion = new ArrayList(); } return this.dateCriterion; } /** * Gets the value of the protocol property. * * @return * possible object is * {@link ImmunizationRecommendationProtocol } * */ public ImmunizationRecommendationProtocol getProtocol() { return protocol; } /** * Sets the value of the protocol property. * * @param value * allowed object is * {@link ImmunizationRecommendationProtocol } * */ public void setProtocol(ImmunizationRecommendationProtocol value) { this.protocol = value; } /** * Gets the value of the supportingImmunization 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 supportingImmunization property. * *

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

     *    getSupportingImmunization().add(newItem);
     * 
* * *

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

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

     *    getSupportingPatientInformation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getSupportingPatientInformation() { if (supportingPatientInformation == null) { supportingPatientInformation = new ArrayList(); } return this.supportingPatientInformation; } public ImmunizationRecommendationRecommendation withDate(DateTime value) { setDate(value); return this; } public ImmunizationRecommendationRecommendation withVaccineCode(CodeableConcept value) { setVaccineCode(value); return this; } public ImmunizationRecommendationRecommendation withDoseNumber(PositiveInt value) { setDoseNumber(value); return this; } public ImmunizationRecommendationRecommendation withForecastStatus(CodeableConcept value) { setForecastStatus(value); return this; } public ImmunizationRecommendationRecommendation withDateCriterion(ImmunizationRecommendationDateCriterion... values) { if (values!= null) { for (ImmunizationRecommendationDateCriterion value: values) { getDateCriterion().add(value); } } return this; } public ImmunizationRecommendationRecommendation withDateCriterion(Collection values) { if (values!= null) { getDateCriterion().addAll(values); } return this; } public ImmunizationRecommendationRecommendation withProtocol(ImmunizationRecommendationProtocol value) { setProtocol(value); return this; } public ImmunizationRecommendationRecommendation withSupportingImmunization(Reference... values) { if (values!= null) { for (Reference value: values) { getSupportingImmunization().add(value); } } return this; } public ImmunizationRecommendationRecommendation withSupportingImmunization(Collection values) { if (values!= null) { getSupportingImmunization().addAll(values); } return this; } public ImmunizationRecommendationRecommendation withSupportingPatientInformation(Reference... values) { if (values!= null) { for (Reference value: values) { getSupportingPatientInformation().add(value); } } return this; } public ImmunizationRecommendationRecommendation withSupportingPatientInformation(Collection values) { if (values!= null) { getSupportingPatientInformation().addAll(values); } return this; } @Override public ImmunizationRecommendationRecommendation withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ImmunizationRecommendationRecommendation withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ImmunizationRecommendationRecommendation withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ImmunizationRecommendationRecommendation withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ImmunizationRecommendationRecommendation 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 ImmunizationRecommendationRecommendation that = ((ImmunizationRecommendationRecommendation) object); { DateTime lhsDate; lhsDate = this.getDate(); DateTime rhsDate; rhsDate = that.getDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) { return false; } } { CodeableConcept lhsVaccineCode; lhsVaccineCode = this.getVaccineCode(); CodeableConcept rhsVaccineCode; rhsVaccineCode = that.getVaccineCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "vaccineCode", lhsVaccineCode), LocatorUtils.property(thatLocator, "vaccineCode", rhsVaccineCode), lhsVaccineCode, rhsVaccineCode, (this.vaccineCode!= null), (that.vaccineCode!= null))) { return false; } } { PositiveInt lhsDoseNumber; lhsDoseNumber = this.getDoseNumber(); PositiveInt rhsDoseNumber; rhsDoseNumber = that.getDoseNumber(); if (!strategy.equals(LocatorUtils.property(thisLocator, "doseNumber", lhsDoseNumber), LocatorUtils.property(thatLocator, "doseNumber", rhsDoseNumber), lhsDoseNumber, rhsDoseNumber, (this.doseNumber!= null), (that.doseNumber!= null))) { return false; } } { CodeableConcept lhsForecastStatus; lhsForecastStatus = this.getForecastStatus(); CodeableConcept rhsForecastStatus; rhsForecastStatus = that.getForecastStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "forecastStatus", lhsForecastStatus), LocatorUtils.property(thatLocator, "forecastStatus", rhsForecastStatus), lhsForecastStatus, rhsForecastStatus, (this.forecastStatus!= null), (that.forecastStatus!= null))) { return false; } } { List lhsDateCriterion; lhsDateCriterion = (((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty()))?this.getDateCriterion():null); List rhsDateCriterion; rhsDateCriterion = (((that.dateCriterion!= null)&&(!that.dateCriterion.isEmpty()))?that.getDateCriterion():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dateCriterion", lhsDateCriterion), LocatorUtils.property(thatLocator, "dateCriterion", rhsDateCriterion), lhsDateCriterion, rhsDateCriterion, ((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty())), ((that.dateCriterion!= null)&&(!that.dateCriterion.isEmpty())))) { return false; } } { ImmunizationRecommendationProtocol lhsProtocol; lhsProtocol = this.getProtocol(); ImmunizationRecommendationProtocol rhsProtocol; rhsProtocol = that.getProtocol(); if (!strategy.equals(LocatorUtils.property(thisLocator, "protocol", lhsProtocol), LocatorUtils.property(thatLocator, "protocol", rhsProtocol), lhsProtocol, rhsProtocol, (this.protocol!= null), (that.protocol!= null))) { return false; } } { List lhsSupportingImmunization; lhsSupportingImmunization = (((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty()))?this.getSupportingImmunization():null); List rhsSupportingImmunization; rhsSupportingImmunization = (((that.supportingImmunization!= null)&&(!that.supportingImmunization.isEmpty()))?that.getSupportingImmunization():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "supportingImmunization", lhsSupportingImmunization), LocatorUtils.property(thatLocator, "supportingImmunization", rhsSupportingImmunization), lhsSupportingImmunization, rhsSupportingImmunization, ((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty())), ((that.supportingImmunization!= null)&&(!that.supportingImmunization.isEmpty())))) { return false; } } { List lhsSupportingPatientInformation; lhsSupportingPatientInformation = (((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.isEmpty()))?this.getSupportingPatientInformation():null); List rhsSupportingPatientInformation; rhsSupportingPatientInformation = (((that.supportingPatientInformation!= null)&&(!that.supportingPatientInformation.isEmpty()))?that.getSupportingPatientInformation():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "supportingPatientInformation", lhsSupportingPatientInformation), LocatorUtils.property(thatLocator, "supportingPatientInformation", rhsSupportingPatientInformation), lhsSupportingPatientInformation, rhsSupportingPatientInformation, ((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.isEmpty())), ((that.supportingPatientInformation!= null)&&(!that.supportingPatientInformation.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); { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { CodeableConcept theVaccineCode; theVaccineCode = this.getVaccineCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vaccineCode", theVaccineCode), currentHashCode, theVaccineCode, (this.vaccineCode!= null)); } { PositiveInt theDoseNumber; theDoseNumber = this.getDoseNumber(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "doseNumber", theDoseNumber), currentHashCode, theDoseNumber, (this.doseNumber!= null)); } { CodeableConcept theForecastStatus; theForecastStatus = this.getForecastStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "forecastStatus", theForecastStatus), currentHashCode, theForecastStatus, (this.forecastStatus!= null)); } { List theDateCriterion; theDateCriterion = (((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty()))?this.getDateCriterion():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateCriterion", theDateCriterion), currentHashCode, theDateCriterion, ((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty()))); } { ImmunizationRecommendationProtocol theProtocol; theProtocol = this.getProtocol(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "protocol", theProtocol), currentHashCode, theProtocol, (this.protocol!= null)); } { List theSupportingImmunization; theSupportingImmunization = (((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty()))?this.getSupportingImmunization():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportingImmunization", theSupportingImmunization), currentHashCode, theSupportingImmunization, ((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty()))); } { List theSupportingPatientInformation; theSupportingPatientInformation = (((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.isEmpty()))?this.getSupportingPatientInformation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportingPatientInformation", theSupportingPatientInformation), currentHashCode, theSupportingPatientInformation, ((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.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); { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { CodeableConcept theVaccineCode; theVaccineCode = this.getVaccineCode(); strategy.appendField(locator, this, "vaccineCode", buffer, theVaccineCode, (this.vaccineCode!= null)); } { PositiveInt theDoseNumber; theDoseNumber = this.getDoseNumber(); strategy.appendField(locator, this, "doseNumber", buffer, theDoseNumber, (this.doseNumber!= null)); } { CodeableConcept theForecastStatus; theForecastStatus = this.getForecastStatus(); strategy.appendField(locator, this, "forecastStatus", buffer, theForecastStatus, (this.forecastStatus!= null)); } { List theDateCriterion; theDateCriterion = (((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty()))?this.getDateCriterion():null); strategy.appendField(locator, this, "dateCriterion", buffer, theDateCriterion, ((this.dateCriterion!= null)&&(!this.dateCriterion.isEmpty()))); } { ImmunizationRecommendationProtocol theProtocol; theProtocol = this.getProtocol(); strategy.appendField(locator, this, "protocol", buffer, theProtocol, (this.protocol!= null)); } { List theSupportingImmunization; theSupportingImmunization = (((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty()))?this.getSupportingImmunization():null); strategy.appendField(locator, this, "supportingImmunization", buffer, theSupportingImmunization, ((this.supportingImmunization!= null)&&(!this.supportingImmunization.isEmpty()))); } { List theSupportingPatientInformation; theSupportingPatientInformation = (((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.isEmpty()))?this.getSupportingPatientInformation():null); strategy.appendField(locator, this, "supportingPatientInformation", buffer, theSupportingPatientInformation, ((this.supportingPatientInformation!= null)&&(!this.supportingPatientInformation.isEmpty()))); } return buffer; } public void setDateCriterion(List value) { this.dateCriterion = value; } public void setSupportingImmunization(List value) { this.supportingImmunization = value; } public void setSupportingPatientInformation(List value) { this.supportingPatientInformation = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy