org.hl7.fhir.Immunization Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 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;
/**
* If the element is present, it must have either a @value, an @id, or extensions
*
* Java class for Immunization complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Immunization">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
* <element name="status" type="{http://hl7.org/fhir}code"/>
* <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <element name="vaccineCode" type="{http://hl7.org/fhir}CodeableConcept"/>
* <element name="patient" type="{http://hl7.org/fhir}Reference"/>
* <element name="wasNotGiven" type="{http://hl7.org/fhir}boolean"/>
* <element name="reported" type="{http://hl7.org/fhir}boolean"/>
* <element name="performer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="requester" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="manufacturer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="lotNumber" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="expirationDate" type="{http://hl7.org/fhir}date" minOccurs="0"/>
* <element name="site" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="route" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
* <element name="doseQuantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
* <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
* <element name="explanation" type="{http://hl7.org/fhir}Immunization.Explanation" minOccurs="0"/>
* <element name="reaction" type="{http://hl7.org/fhir}Immunization.Reaction" maxOccurs="unbounded" minOccurs="0"/>
* <element name="vaccinationProtocol" type="{http://hl7.org/fhir}Immunization.VaccinationProtocol" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Immunization", propOrder = {
"identifier",
"status",
"date",
"vaccineCode",
"patient",
"wasNotGiven",
"reported",
"performer",
"requester",
"encounter",
"manufacturer",
"location",
"lotNumber",
"expirationDate",
"site",
"route",
"doseQuantity",
"note",
"explanation",
"reaction",
"vaccinationProtocol"
})
public class Immunization
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected List identifier;
@XmlElement(required = true)
protected Code status;
protected DateTime date;
@XmlElement(required = true)
protected CodeableConcept vaccineCode;
@XmlElement(required = true)
protected Reference patient;
@XmlElement(required = true)
protected Boolean wasNotGiven;
@XmlElement(required = true)
protected Boolean reported;
protected Reference performer;
protected Reference requester;
protected Reference encounter;
protected Reference manufacturer;
protected Reference location;
protected org.hl7.fhir.String lotNumber;
protected Date expirationDate;
protected CodeableConcept site;
protected CodeableConcept route;
protected SimpleQuantity doseQuantity;
protected List note;
protected ImmunizationExplanation explanation;
protected List reaction;
protected List vaccinationProtocol;
/**
* 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 status property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setStatus(Code value) {
this.status = 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 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 patient property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPatient() {
return patient;
}
/**
* Sets the value of the patient property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPatient(Reference value) {
this.patient = value;
}
/**
* Gets the value of the wasNotGiven property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getWasNotGiven() {
return wasNotGiven;
}
/**
* Sets the value of the wasNotGiven property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setWasNotGiven(Boolean value) {
this.wasNotGiven = value;
}
/**
* Gets the value of the reported property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getReported() {
return reported;
}
/**
* Sets the value of the reported property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setReported(Boolean value) {
this.reported = value;
}
/**
* Gets the value of the performer property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPerformer() {
return performer;
}
/**
* Sets the value of the performer property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPerformer(Reference value) {
this.performer = value;
}
/**
* Gets the value of the requester property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getRequester() {
return requester;
}
/**
* Sets the value of the requester property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setRequester(Reference value) {
this.requester = value;
}
/**
* Gets the value of the encounter property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getEncounter() {
return encounter;
}
/**
* Sets the value of the encounter property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setEncounter(Reference value) {
this.encounter = value;
}
/**
* Gets the value of the manufacturer property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getManufacturer() {
return manufacturer;
}
/**
* Sets the value of the manufacturer property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setManufacturer(Reference value) {
this.manufacturer = value;
}
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setLocation(Reference value) {
this.location = value;
}
/**
* Gets the value of the lotNumber property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getLotNumber() {
return lotNumber;
}
/**
* Sets the value of the lotNumber property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setLotNumber(org.hl7.fhir.String value) {
this.lotNumber = value;
}
/**
* Gets the value of the expirationDate property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getExpirationDate() {
return expirationDate;
}
/**
* Sets the value of the expirationDate property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setExpirationDate(Date value) {
this.expirationDate = value;
}
/**
* Gets the value of the site property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getSite() {
return site;
}
/**
* Sets the value of the site property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setSite(CodeableConcept value) {
this.site = value;
}
/**
* Gets the value of the route property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getRoute() {
return route;
}
/**
* Sets the value of the route property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setRoute(CodeableConcept value) {
this.route = value;
}
/**
* Gets the value of the doseQuantity property.
*
* @return
* possible object is
* {@link SimpleQuantity }
*
*/
public SimpleQuantity getDoseQuantity() {
return doseQuantity;
}
/**
* Sets the value of the doseQuantity property.
*
* @param value
* allowed object is
* {@link SimpleQuantity }
*
*/
public void setDoseQuantity(SimpleQuantity value) {
this.doseQuantity = value;
}
/**
* Gets the value of the note 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 note property.
*
*
* For example, to add a new item, do as follows:
*
* getNote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Annotation }
*
*
*/
public List getNote() {
if (note == null) {
note = new ArrayList();
}
return this.note;
}
/**
* Gets the value of the explanation property.
*
* @return
* possible object is
* {@link ImmunizationExplanation }
*
*/
public ImmunizationExplanation getExplanation() {
return explanation;
}
/**
* Sets the value of the explanation property.
*
* @param value
* allowed object is
* {@link ImmunizationExplanation }
*
*/
public void setExplanation(ImmunizationExplanation value) {
this.explanation = value;
}
/**
* Gets the value of the reaction 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 reaction property.
*
*
* For example, to add a new item, do as follows:
*
* getReaction().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ImmunizationReaction }
*
*
*/
public List getReaction() {
if (reaction == null) {
reaction = new ArrayList();
}
return this.reaction;
}
/**
* Gets the value of the vaccinationProtocol 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 vaccinationProtocol property.
*
*
* For example, to add a new item, do as follows:
*
* getVaccinationProtocol().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ImmunizationVaccinationProtocol }
*
*
*/
public List getVaccinationProtocol() {
if (vaccinationProtocol == null) {
vaccinationProtocol = new ArrayList();
}
return this.vaccinationProtocol;
}
public Immunization withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public Immunization withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public Immunization withStatus(Code value) {
setStatus(value);
return this;
}
public Immunization withDate(DateTime value) {
setDate(value);
return this;
}
public Immunization withVaccineCode(CodeableConcept value) {
setVaccineCode(value);
return this;
}
public Immunization withPatient(Reference value) {
setPatient(value);
return this;
}
public Immunization withWasNotGiven(Boolean value) {
setWasNotGiven(value);
return this;
}
public Immunization withReported(Boolean value) {
setReported(value);
return this;
}
public Immunization withPerformer(Reference value) {
setPerformer(value);
return this;
}
public Immunization withRequester(Reference value) {
setRequester(value);
return this;
}
public Immunization withEncounter(Reference value) {
setEncounter(value);
return this;
}
public Immunization withManufacturer(Reference value) {
setManufacturer(value);
return this;
}
public Immunization withLocation(Reference value) {
setLocation(value);
return this;
}
public Immunization withLotNumber(org.hl7.fhir.String value) {
setLotNumber(value);
return this;
}
public Immunization withExpirationDate(Date value) {
setExpirationDate(value);
return this;
}
public Immunization withSite(CodeableConcept value) {
setSite(value);
return this;
}
public Immunization withRoute(CodeableConcept value) {
setRoute(value);
return this;
}
public Immunization withDoseQuantity(SimpleQuantity value) {
setDoseQuantity(value);
return this;
}
public Immunization withNote(Annotation... values) {
if (values!= null) {
for (Annotation value: values) {
getNote().add(value);
}
}
return this;
}
public Immunization withNote(Collection values) {
if (values!= null) {
getNote().addAll(values);
}
return this;
}
public Immunization withExplanation(ImmunizationExplanation value) {
setExplanation(value);
return this;
}
public Immunization withReaction(ImmunizationReaction... values) {
if (values!= null) {
for (ImmunizationReaction value: values) {
getReaction().add(value);
}
}
return this;
}
public Immunization withReaction(Collection values) {
if (values!= null) {
getReaction().addAll(values);
}
return this;
}
public Immunization withVaccinationProtocol(ImmunizationVaccinationProtocol... values) {
if (values!= null) {
for (ImmunizationVaccinationProtocol value: values) {
getVaccinationProtocol().add(value);
}
}
return this;
}
public Immunization withVaccinationProtocol(Collection values) {
if (values!= null) {
getVaccinationProtocol().addAll(values);
}
return this;
}
@Override
public Immunization withText(Narrative value) {
setText(value);
return this;
}
@Override
public Immunization withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Immunization withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Immunization withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Immunization withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Immunization withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Immunization withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Immunization withId(Id value) {
setId(value);
return this;
}
@Override
public Immunization withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Immunization withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Immunization 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 Immunization that = ((Immunization) object);
{
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;
}
}
{
Code lhsStatus;
lhsStatus = this.getStatus();
Code 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;
}
}
{
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;
}
}
{
Reference lhsPatient;
lhsPatient = this.getPatient();
Reference rhsPatient;
rhsPatient = that.getPatient();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) {
return false;
}
}
{
Boolean lhsWasNotGiven;
lhsWasNotGiven = this.getWasNotGiven();
Boolean rhsWasNotGiven;
rhsWasNotGiven = that.getWasNotGiven();
if (!strategy.equals(LocatorUtils.property(thisLocator, "wasNotGiven", lhsWasNotGiven), LocatorUtils.property(thatLocator, "wasNotGiven", rhsWasNotGiven), lhsWasNotGiven, rhsWasNotGiven, (this.wasNotGiven!= null), (that.wasNotGiven!= null))) {
return false;
}
}
{
Boolean lhsReported;
lhsReported = this.getReported();
Boolean rhsReported;
rhsReported = that.getReported();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reported", lhsReported), LocatorUtils.property(thatLocator, "reported", rhsReported), lhsReported, rhsReported, (this.reported!= null), (that.reported!= null))) {
return false;
}
}
{
Reference lhsPerformer;
lhsPerformer = this.getPerformer();
Reference rhsPerformer;
rhsPerformer = that.getPerformer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "performer", lhsPerformer), LocatorUtils.property(thatLocator, "performer", rhsPerformer), lhsPerformer, rhsPerformer, (this.performer!= null), (that.performer!= null))) {
return false;
}
}
{
Reference lhsRequester;
lhsRequester = this.getRequester();
Reference rhsRequester;
rhsRequester = that.getRequester();
if (!strategy.equals(LocatorUtils.property(thisLocator, "requester", lhsRequester), LocatorUtils.property(thatLocator, "requester", rhsRequester), lhsRequester, rhsRequester, (this.requester!= null), (that.requester!= null))) {
return false;
}
}
{
Reference lhsEncounter;
lhsEncounter = this.getEncounter();
Reference rhsEncounter;
rhsEncounter = that.getEncounter();
if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) {
return false;
}
}
{
Reference lhsManufacturer;
lhsManufacturer = this.getManufacturer();
Reference rhsManufacturer;
rhsManufacturer = that.getManufacturer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "manufacturer", lhsManufacturer), LocatorUtils.property(thatLocator, "manufacturer", rhsManufacturer), lhsManufacturer, rhsManufacturer, (this.manufacturer!= null), (that.manufacturer!= null))) {
return false;
}
}
{
Reference lhsLocation;
lhsLocation = this.getLocation();
Reference rhsLocation;
rhsLocation = that.getLocation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation, (this.location!= null), (that.location!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsLotNumber;
lhsLotNumber = this.getLotNumber();
org.hl7.fhir.String rhsLotNumber;
rhsLotNumber = that.getLotNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lotNumber", lhsLotNumber), LocatorUtils.property(thatLocator, "lotNumber", rhsLotNumber), lhsLotNumber, rhsLotNumber, (this.lotNumber!= null), (that.lotNumber!= null))) {
return false;
}
}
{
Date lhsExpirationDate;
lhsExpirationDate = this.getExpirationDate();
Date rhsExpirationDate;
rhsExpirationDate = that.getExpirationDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "expirationDate", lhsExpirationDate), LocatorUtils.property(thatLocator, "expirationDate", rhsExpirationDate), lhsExpirationDate, rhsExpirationDate, (this.expirationDate!= null), (that.expirationDate!= null))) {
return false;
}
}
{
CodeableConcept lhsSite;
lhsSite = this.getSite();
CodeableConcept rhsSite;
rhsSite = that.getSite();
if (!strategy.equals(LocatorUtils.property(thisLocator, "site", lhsSite), LocatorUtils.property(thatLocator, "site", rhsSite), lhsSite, rhsSite, (this.site!= null), (that.site!= null))) {
return false;
}
}
{
CodeableConcept lhsRoute;
lhsRoute = this.getRoute();
CodeableConcept rhsRoute;
rhsRoute = that.getRoute();
if (!strategy.equals(LocatorUtils.property(thisLocator, "route", lhsRoute), LocatorUtils.property(thatLocator, "route", rhsRoute), lhsRoute, rhsRoute, (this.route!= null), (that.route!= null))) {
return false;
}
}
{
SimpleQuantity lhsDoseQuantity;
lhsDoseQuantity = this.getDoseQuantity();
SimpleQuantity rhsDoseQuantity;
rhsDoseQuantity = that.getDoseQuantity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "doseQuantity", lhsDoseQuantity), LocatorUtils.property(thatLocator, "doseQuantity", rhsDoseQuantity), lhsDoseQuantity, rhsDoseQuantity, (this.doseQuantity!= null), (that.doseQuantity!= null))) {
return false;
}
}
{
List lhsNote;
lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
List rhsNote;
rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, ((this.note!= null)&&(!this.note.isEmpty())), ((that.note!= null)&&(!that.note.isEmpty())))) {
return false;
}
}
{
ImmunizationExplanation lhsExplanation;
lhsExplanation = this.getExplanation();
ImmunizationExplanation rhsExplanation;
rhsExplanation = that.getExplanation();
if (!strategy.equals(LocatorUtils.property(thisLocator, "explanation", lhsExplanation), LocatorUtils.property(thatLocator, "explanation", rhsExplanation), lhsExplanation, rhsExplanation, (this.explanation!= null), (that.explanation!= null))) {
return false;
}
}
{
List lhsReaction;
lhsReaction = (((this.reaction!= null)&&(!this.reaction.isEmpty()))?this.getReaction():null);
List rhsReaction;
rhsReaction = (((that.reaction!= null)&&(!that.reaction.isEmpty()))?that.getReaction():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "reaction", lhsReaction), LocatorUtils.property(thatLocator, "reaction", rhsReaction), lhsReaction, rhsReaction, ((this.reaction!= null)&&(!this.reaction.isEmpty())), ((that.reaction!= null)&&(!that.reaction.isEmpty())))) {
return false;
}
}
{
List lhsVaccinationProtocol;
lhsVaccinationProtocol = (((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.isEmpty()))?this.getVaccinationProtocol():null);
List rhsVaccinationProtocol;
rhsVaccinationProtocol = (((that.vaccinationProtocol!= null)&&(!that.vaccinationProtocol.isEmpty()))?that.getVaccinationProtocol():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "vaccinationProtocol", lhsVaccinationProtocol), LocatorUtils.property(thatLocator, "vaccinationProtocol", rhsVaccinationProtocol), lhsVaccinationProtocol, rhsVaccinationProtocol, ((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.isEmpty())), ((that.vaccinationProtocol!= null)&&(!that.vaccinationProtocol.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);
{
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())));
}
{
Code theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
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));
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null));
}
{
Boolean theWasNotGiven;
theWasNotGiven = this.getWasNotGiven();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wasNotGiven", theWasNotGiven), currentHashCode, theWasNotGiven, (this.wasNotGiven!= null));
}
{
Boolean theReported;
theReported = this.getReported();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reported", theReported), currentHashCode, theReported, (this.reported!= null));
}
{
Reference thePerformer;
thePerformer = this.getPerformer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, (this.performer!= null));
}
{
Reference theRequester;
theRequester = this.getRequester();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requester", theRequester), currentHashCode, theRequester, (this.requester!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null));
}
{
Reference theManufacturer;
theManufacturer = this.getManufacturer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "manufacturer", theManufacturer), currentHashCode, theManufacturer, (this.manufacturer!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null));
}
{
org.hl7.fhir.String theLotNumber;
theLotNumber = this.getLotNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lotNumber", theLotNumber), currentHashCode, theLotNumber, (this.lotNumber!= null));
}
{
Date theExpirationDate;
theExpirationDate = this.getExpirationDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expirationDate", theExpirationDate), currentHashCode, theExpirationDate, (this.expirationDate!= null));
}
{
CodeableConcept theSite;
theSite = this.getSite();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "site", theSite), currentHashCode, theSite, (this.site!= null));
}
{
CodeableConcept theRoute;
theRoute = this.getRoute();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "route", theRoute), currentHashCode, theRoute, (this.route!= null));
}
{
SimpleQuantity theDoseQuantity;
theDoseQuantity = this.getDoseQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "doseQuantity", theDoseQuantity), currentHashCode, theDoseQuantity, (this.doseQuantity!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
ImmunizationExplanation theExplanation;
theExplanation = this.getExplanation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "explanation", theExplanation), currentHashCode, theExplanation, (this.explanation!= null));
}
{
List theReaction;
theReaction = (((this.reaction!= null)&&(!this.reaction.isEmpty()))?this.getReaction():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reaction", theReaction), currentHashCode, theReaction, ((this.reaction!= null)&&(!this.reaction.isEmpty())));
}
{
List theVaccinationProtocol;
theVaccinationProtocol = (((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.isEmpty()))?this.getVaccinationProtocol():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vaccinationProtocol", theVaccinationProtocol), currentHashCode, theVaccinationProtocol, ((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.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);
{
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())));
}
{
Code theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
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));
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null));
}
{
Boolean theWasNotGiven;
theWasNotGiven = this.getWasNotGiven();
strategy.appendField(locator, this, "wasNotGiven", buffer, theWasNotGiven, (this.wasNotGiven!= null));
}
{
Boolean theReported;
theReported = this.getReported();
strategy.appendField(locator, this, "reported", buffer, theReported, (this.reported!= null));
}
{
Reference thePerformer;
thePerformer = this.getPerformer();
strategy.appendField(locator, this, "performer", buffer, thePerformer, (this.performer!= null));
}
{
Reference theRequester;
theRequester = this.getRequester();
strategy.appendField(locator, this, "requester", buffer, theRequester, (this.requester!= null));
}
{
Reference theEncounter;
theEncounter = this.getEncounter();
strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null));
}
{
Reference theManufacturer;
theManufacturer = this.getManufacturer();
strategy.appendField(locator, this, "manufacturer", buffer, theManufacturer, (this.manufacturer!= null));
}
{
Reference theLocation;
theLocation = this.getLocation();
strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null));
}
{
org.hl7.fhir.String theLotNumber;
theLotNumber = this.getLotNumber();
strategy.appendField(locator, this, "lotNumber", buffer, theLotNumber, (this.lotNumber!= null));
}
{
Date theExpirationDate;
theExpirationDate = this.getExpirationDate();
strategy.appendField(locator, this, "expirationDate", buffer, theExpirationDate, (this.expirationDate!= null));
}
{
CodeableConcept theSite;
theSite = this.getSite();
strategy.appendField(locator, this, "site", buffer, theSite, (this.site!= null));
}
{
CodeableConcept theRoute;
theRoute = this.getRoute();
strategy.appendField(locator, this, "route", buffer, theRoute, (this.route!= null));
}
{
SimpleQuantity theDoseQuantity;
theDoseQuantity = this.getDoseQuantity();
strategy.appendField(locator, this, "doseQuantity", buffer, theDoseQuantity, (this.doseQuantity!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
strategy.appendField(locator, this, "note", buffer, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
{
ImmunizationExplanation theExplanation;
theExplanation = this.getExplanation();
strategy.appendField(locator, this, "explanation", buffer, theExplanation, (this.explanation!= null));
}
{
List theReaction;
theReaction = (((this.reaction!= null)&&(!this.reaction.isEmpty()))?this.getReaction():null);
strategy.appendField(locator, this, "reaction", buffer, theReaction, ((this.reaction!= null)&&(!this.reaction.isEmpty())));
}
{
List theVaccinationProtocol;
theVaccinationProtocol = (((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.isEmpty()))?this.getVaccinationProtocol():null);
strategy.appendField(locator, this, "vaccinationProtocol", buffer, theVaccinationProtocol, ((this.vaccinationProtocol!= null)&&(!this.vaccinationProtocol.isEmpty())));
}
return buffer;
}
}