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

org.hl7.fhir.VisionPrescriptionDispense 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.01.18 at 08:26:13 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
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;


/**
 * An authorization for the supply of glasses and/or contact lenses to a patient.
 * 
 * 

Java class for VisionPrescription.Dispense complex type. * *

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

 * <complexType name="VisionPrescription.Dispense">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="product" type="{http://hl7.org/fhir}Coding"/>
 *         <element name="eye" type="{http://hl7.org/fhir}VisionEyes" minOccurs="0"/>
 *         <element name="sphere" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="cylinder" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="axis" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="prism" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="base" type="{http://hl7.org/fhir}VisionBase" minOccurs="0"/>
 *         <element name="add" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="power" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="backCurve" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="diameter" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="duration" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
 *         <element name="color" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="brand" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="notes" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "VisionPrescription.Dispense", propOrder = { "product", "eye", "sphere", "cylinder", "axis", "prism", "base", "add", "power", "backCurve", "diameter", "duration", "color", "brand", "notes" }) public class VisionPrescriptionDispense extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Coding product; protected VisionEyes eye; protected Decimal sphere; protected Decimal cylinder; protected Integer axis; protected Decimal prism; protected VisionBase base; protected Decimal add; protected Decimal power; protected Decimal backCurve; protected Decimal diameter; protected SimpleQuantity duration; protected org.hl7.fhir.String color; protected org.hl7.fhir.String brand; protected org.hl7.fhir.String notes; /** * Gets the value of the product property. * * @return * possible object is * {@link Coding } * */ public Coding getProduct() { return product; } /** * Sets the value of the product property. * * @param value * allowed object is * {@link Coding } * */ public void setProduct(Coding value) { this.product = value; } /** * Gets the value of the eye property. * * @return * possible object is * {@link VisionEyes } * */ public VisionEyes getEye() { return eye; } /** * Sets the value of the eye property. * * @param value * allowed object is * {@link VisionEyes } * */ public void setEye(VisionEyes value) { this.eye = value; } /** * Gets the value of the sphere property. * * @return * possible object is * {@link Decimal } * */ public Decimal getSphere() { return sphere; } /** * Sets the value of the sphere property. * * @param value * allowed object is * {@link Decimal } * */ public void setSphere(Decimal value) { this.sphere = value; } /** * Gets the value of the cylinder property. * * @return * possible object is * {@link Decimal } * */ public Decimal getCylinder() { return cylinder; } /** * Sets the value of the cylinder property. * * @param value * allowed object is * {@link Decimal } * */ public void setCylinder(Decimal value) { this.cylinder = value; } /** * Gets the value of the axis property. * * @return * possible object is * {@link Integer } * */ public Integer getAxis() { return axis; } /** * Sets the value of the axis property. * * @param value * allowed object is * {@link Integer } * */ public void setAxis(Integer value) { this.axis = value; } /** * Gets the value of the prism property. * * @return * possible object is * {@link Decimal } * */ public Decimal getPrism() { return prism; } /** * Sets the value of the prism property. * * @param value * allowed object is * {@link Decimal } * */ public void setPrism(Decimal value) { this.prism = value; } /** * Gets the value of the base property. * * @return * possible object is * {@link VisionBase } * */ public VisionBase getBase() { return base; } /** * Sets the value of the base property. * * @param value * allowed object is * {@link VisionBase } * */ public void setBase(VisionBase value) { this.base = value; } /** * Gets the value of the add property. * * @return * possible object is * {@link Decimal } * */ public Decimal getAdd() { return add; } /** * Sets the value of the add property. * * @param value * allowed object is * {@link Decimal } * */ public void setAdd(Decimal value) { this.add = value; } /** * Gets the value of the power property. * * @return * possible object is * {@link Decimal } * */ public Decimal getPower() { return power; } /** * Sets the value of the power property. * * @param value * allowed object is * {@link Decimal } * */ public void setPower(Decimal value) { this.power = value; } /** * Gets the value of the backCurve property. * * @return * possible object is * {@link Decimal } * */ public Decimal getBackCurve() { return backCurve; } /** * Sets the value of the backCurve property. * * @param value * allowed object is * {@link Decimal } * */ public void setBackCurve(Decimal value) { this.backCurve = value; } /** * Gets the value of the diameter property. * * @return * possible object is * {@link Decimal } * */ public Decimal getDiameter() { return diameter; } /** * Sets the value of the diameter property. * * @param value * allowed object is * {@link Decimal } * */ public void setDiameter(Decimal value) { this.diameter = value; } /** * Gets the value of the duration property. * * @return * possible object is * {@link SimpleQuantity } * */ public SimpleQuantity getDuration() { return duration; } /** * Sets the value of the duration property. * * @param value * allowed object is * {@link SimpleQuantity } * */ public void setDuration(SimpleQuantity value) { this.duration = value; } /** * Gets the value of the color property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getColor() { return color; } /** * Sets the value of the color property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setColor(org.hl7.fhir.String value) { this.color = value; } /** * Gets the value of the brand property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getBrand() { return brand; } /** * Sets the value of the brand property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setBrand(org.hl7.fhir.String value) { this.brand = value; } /** * Gets the value of the notes property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getNotes() { return notes; } /** * Sets the value of the notes property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setNotes(org.hl7.fhir.String value) { this.notes = value; } public VisionPrescriptionDispense withProduct(Coding value) { setProduct(value); return this; } public VisionPrescriptionDispense withEye(VisionEyes value) { setEye(value); return this; } public VisionPrescriptionDispense withSphere(Decimal value) { setSphere(value); return this; } public VisionPrescriptionDispense withCylinder(Decimal value) { setCylinder(value); return this; } public VisionPrescriptionDispense withAxis(Integer value) { setAxis(value); return this; } public VisionPrescriptionDispense withPrism(Decimal value) { setPrism(value); return this; } public VisionPrescriptionDispense withBase(VisionBase value) { setBase(value); return this; } public VisionPrescriptionDispense withAdd(Decimal value) { setAdd(value); return this; } public VisionPrescriptionDispense withPower(Decimal value) { setPower(value); return this; } public VisionPrescriptionDispense withBackCurve(Decimal value) { setBackCurve(value); return this; } public VisionPrescriptionDispense withDiameter(Decimal value) { setDiameter(value); return this; } public VisionPrescriptionDispense withDuration(SimpleQuantity value) { setDuration(value); return this; } public VisionPrescriptionDispense withColor(org.hl7.fhir.String value) { setColor(value); return this; } public VisionPrescriptionDispense withBrand(org.hl7.fhir.String value) { setBrand(value); return this; } public VisionPrescriptionDispense withNotes(org.hl7.fhir.String value) { setNotes(value); return this; } @Override public VisionPrescriptionDispense withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public VisionPrescriptionDispense withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public VisionPrescriptionDispense withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public VisionPrescriptionDispense withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public VisionPrescriptionDispense 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 VisionPrescriptionDispense that = ((VisionPrescriptionDispense) object); { Coding lhsProduct; lhsProduct = this.getProduct(); Coding rhsProduct; rhsProduct = that.getProduct(); if (!strategy.equals(LocatorUtils.property(thisLocator, "product", lhsProduct), LocatorUtils.property(thatLocator, "product", rhsProduct), lhsProduct, rhsProduct, (this.product!= null), (that.product!= null))) { return false; } } { VisionEyes lhsEye; lhsEye = this.getEye(); VisionEyes rhsEye; rhsEye = that.getEye(); if (!strategy.equals(LocatorUtils.property(thisLocator, "eye", lhsEye), LocatorUtils.property(thatLocator, "eye", rhsEye), lhsEye, rhsEye, (this.eye!= null), (that.eye!= null))) { return false; } } { Decimal lhsSphere; lhsSphere = this.getSphere(); Decimal rhsSphere; rhsSphere = that.getSphere(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sphere", lhsSphere), LocatorUtils.property(thatLocator, "sphere", rhsSphere), lhsSphere, rhsSphere, (this.sphere!= null), (that.sphere!= null))) { return false; } } { Decimal lhsCylinder; lhsCylinder = this.getCylinder(); Decimal rhsCylinder; rhsCylinder = that.getCylinder(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cylinder", lhsCylinder), LocatorUtils.property(thatLocator, "cylinder", rhsCylinder), lhsCylinder, rhsCylinder, (this.cylinder!= null), (that.cylinder!= null))) { return false; } } { Integer lhsAxis; lhsAxis = this.getAxis(); Integer rhsAxis; rhsAxis = that.getAxis(); if (!strategy.equals(LocatorUtils.property(thisLocator, "axis", lhsAxis), LocatorUtils.property(thatLocator, "axis", rhsAxis), lhsAxis, rhsAxis, (this.axis!= null), (that.axis!= null))) { return false; } } { Decimal lhsPrism; lhsPrism = this.getPrism(); Decimal rhsPrism; rhsPrism = that.getPrism(); if (!strategy.equals(LocatorUtils.property(thisLocator, "prism", lhsPrism), LocatorUtils.property(thatLocator, "prism", rhsPrism), lhsPrism, rhsPrism, (this.prism!= null), (that.prism!= null))) { return false; } } { VisionBase lhsBase; lhsBase = this.getBase(); VisionBase rhsBase; rhsBase = that.getBase(); if (!strategy.equals(LocatorUtils.property(thisLocator, "base", lhsBase), LocatorUtils.property(thatLocator, "base", rhsBase), lhsBase, rhsBase, (this.base!= null), (that.base!= null))) { return false; } } { Decimal lhsAdd; lhsAdd = this.getAdd(); Decimal rhsAdd; rhsAdd = that.getAdd(); if (!strategy.equals(LocatorUtils.property(thisLocator, "add", lhsAdd), LocatorUtils.property(thatLocator, "add", rhsAdd), lhsAdd, rhsAdd, (this.add!= null), (that.add!= null))) { return false; } } { Decimal lhsPower; lhsPower = this.getPower(); Decimal rhsPower; rhsPower = that.getPower(); if (!strategy.equals(LocatorUtils.property(thisLocator, "power", lhsPower), LocatorUtils.property(thatLocator, "power", rhsPower), lhsPower, rhsPower, (this.power!= null), (that.power!= null))) { return false; } } { Decimal lhsBackCurve; lhsBackCurve = this.getBackCurve(); Decimal rhsBackCurve; rhsBackCurve = that.getBackCurve(); if (!strategy.equals(LocatorUtils.property(thisLocator, "backCurve", lhsBackCurve), LocatorUtils.property(thatLocator, "backCurve", rhsBackCurve), lhsBackCurve, rhsBackCurve, (this.backCurve!= null), (that.backCurve!= null))) { return false; } } { Decimal lhsDiameter; lhsDiameter = this.getDiameter(); Decimal rhsDiameter; rhsDiameter = that.getDiameter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "diameter", lhsDiameter), LocatorUtils.property(thatLocator, "diameter", rhsDiameter), lhsDiameter, rhsDiameter, (this.diameter!= null), (that.diameter!= null))) { return false; } } { SimpleQuantity lhsDuration; lhsDuration = this.getDuration(); SimpleQuantity rhsDuration; rhsDuration = that.getDuration(); if (!strategy.equals(LocatorUtils.property(thisLocator, "duration", lhsDuration), LocatorUtils.property(thatLocator, "duration", rhsDuration), lhsDuration, rhsDuration, (this.duration!= null), (that.duration!= null))) { return false; } } { org.hl7.fhir.String lhsColor; lhsColor = this.getColor(); org.hl7.fhir.String rhsColor; rhsColor = that.getColor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "color", lhsColor), LocatorUtils.property(thatLocator, "color", rhsColor), lhsColor, rhsColor, (this.color!= null), (that.color!= null))) { return false; } } { org.hl7.fhir.String lhsBrand; lhsBrand = this.getBrand(); org.hl7.fhir.String rhsBrand; rhsBrand = that.getBrand(); if (!strategy.equals(LocatorUtils.property(thisLocator, "brand", lhsBrand), LocatorUtils.property(thatLocator, "brand", rhsBrand), lhsBrand, rhsBrand, (this.brand!= null), (that.brand!= null))) { return false; } } { org.hl7.fhir.String lhsNotes; lhsNotes = this.getNotes(); org.hl7.fhir.String rhsNotes; rhsNotes = that.getNotes(); if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes, (this.notes!= null), (that.notes!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { Coding theProduct; theProduct = this.getProduct(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "product", theProduct), currentHashCode, theProduct, (this.product!= null)); } { VisionEyes theEye; theEye = this.getEye(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eye", theEye), currentHashCode, theEye, (this.eye!= null)); } { Decimal theSphere; theSphere = this.getSphere(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sphere", theSphere), currentHashCode, theSphere, (this.sphere!= null)); } { Decimal theCylinder; theCylinder = this.getCylinder(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cylinder", theCylinder), currentHashCode, theCylinder, (this.cylinder!= null)); } { Integer theAxis; theAxis = this.getAxis(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "axis", theAxis), currentHashCode, theAxis, (this.axis!= null)); } { Decimal thePrism; thePrism = this.getPrism(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prism", thePrism), currentHashCode, thePrism, (this.prism!= null)); } { VisionBase theBase; theBase = this.getBase(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "base", theBase), currentHashCode, theBase, (this.base!= null)); } { Decimal theAdd; theAdd = this.getAdd(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "add", theAdd), currentHashCode, theAdd, (this.add!= null)); } { Decimal thePower; thePower = this.getPower(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "power", thePower), currentHashCode, thePower, (this.power!= null)); } { Decimal theBackCurve; theBackCurve = this.getBackCurve(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "backCurve", theBackCurve), currentHashCode, theBackCurve, (this.backCurve!= null)); } { Decimal theDiameter; theDiameter = this.getDiameter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "diameter", theDiameter), currentHashCode, theDiameter, (this.diameter!= null)); } { SimpleQuantity theDuration; theDuration = this.getDuration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "duration", theDuration), currentHashCode, theDuration, (this.duration!= null)); } { org.hl7.fhir.String theColor; theColor = this.getColor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "color", theColor), currentHashCode, theColor, (this.color!= null)); } { org.hl7.fhir.String theBrand; theBrand = this.getBrand(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brand", theBrand), currentHashCode, theBrand, (this.brand!= null)); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes, (this.notes!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { Coding theProduct; theProduct = this.getProduct(); strategy.appendField(locator, this, "product", buffer, theProduct, (this.product!= null)); } { VisionEyes theEye; theEye = this.getEye(); strategy.appendField(locator, this, "eye", buffer, theEye, (this.eye!= null)); } { Decimal theSphere; theSphere = this.getSphere(); strategy.appendField(locator, this, "sphere", buffer, theSphere, (this.sphere!= null)); } { Decimal theCylinder; theCylinder = this.getCylinder(); strategy.appendField(locator, this, "cylinder", buffer, theCylinder, (this.cylinder!= null)); } { Integer theAxis; theAxis = this.getAxis(); strategy.appendField(locator, this, "axis", buffer, theAxis, (this.axis!= null)); } { Decimal thePrism; thePrism = this.getPrism(); strategy.appendField(locator, this, "prism", buffer, thePrism, (this.prism!= null)); } { VisionBase theBase; theBase = this.getBase(); strategy.appendField(locator, this, "base", buffer, theBase, (this.base!= null)); } { Decimal theAdd; theAdd = this.getAdd(); strategy.appendField(locator, this, "add", buffer, theAdd, (this.add!= null)); } { Decimal thePower; thePower = this.getPower(); strategy.appendField(locator, this, "power", buffer, thePower, (this.power!= null)); } { Decimal theBackCurve; theBackCurve = this.getBackCurve(); strategy.appendField(locator, this, "backCurve", buffer, theBackCurve, (this.backCurve!= null)); } { Decimal theDiameter; theDiameter = this.getDiameter(); strategy.appendField(locator, this, "diameter", buffer, theDiameter, (this.diameter!= null)); } { SimpleQuantity theDuration; theDuration = this.getDuration(); strategy.appendField(locator, this, "duration", buffer, theDuration, (this.duration!= null)); } { org.hl7.fhir.String theColor; theColor = this.getColor(); strategy.appendField(locator, this, "color", buffer, theColor, (this.color!= null)); } { org.hl7.fhir.String theBrand; theBrand = this.getBrand(); strategy.appendField(locator, this, "brand", buffer, theBrand, (this.brand!= null)); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); strategy.appendField(locator, this, "notes", buffer, theNotes, (this.notes!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy