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.22.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString { @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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof VisionPrescriptionDispense)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { Coding theProduct; theProduct = this.getProduct(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "product", theProduct), currentHashCode, theProduct); } { VisionEyes theEye; theEye = this.getEye(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "eye", theEye), currentHashCode, theEye); } { Decimal theSphere; theSphere = this.getSphere(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sphere", theSphere), currentHashCode, theSphere); } { Decimal theCylinder; theCylinder = this.getCylinder(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cylinder", theCylinder), currentHashCode, theCylinder); } { Integer theAxis; theAxis = this.getAxis(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "axis", theAxis), currentHashCode, theAxis); } { Decimal thePrism; thePrism = this.getPrism(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prism", thePrism), currentHashCode, thePrism); } { VisionBase theBase; theBase = this.getBase(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "base", theBase), currentHashCode, theBase); } { Decimal theAdd; theAdd = this.getAdd(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "add", theAdd), currentHashCode, theAdd); } { Decimal thePower; thePower = this.getPower(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "power", thePower), currentHashCode, thePower); } { Decimal theBackCurve; theBackCurve = this.getBackCurve(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "backCurve", theBackCurve), currentHashCode, theBackCurve); } { Decimal theDiameter; theDiameter = this.getDiameter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "diameter", theDiameter), currentHashCode, theDiameter); } { SimpleQuantity theDuration; theDuration = this.getDuration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "duration", theDuration), currentHashCode, theDuration); } { org.hl7.fhir.String theColor; theColor = this.getColor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "color", theColor), currentHashCode, theColor); } { org.hl7.fhir.String theBrand; theBrand = this.getBrand(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brand", theBrand), currentHashCode, theBrand); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { Coding theProduct; theProduct = this.getProduct(); strategy.appendField(locator, this, "product", buffer, theProduct); } { VisionEyes theEye; theEye = this.getEye(); strategy.appendField(locator, this, "eye", buffer, theEye); } { Decimal theSphere; theSphere = this.getSphere(); strategy.appendField(locator, this, "sphere", buffer, theSphere); } { Decimal theCylinder; theCylinder = this.getCylinder(); strategy.appendField(locator, this, "cylinder", buffer, theCylinder); } { Integer theAxis; theAxis = this.getAxis(); strategy.appendField(locator, this, "axis", buffer, theAxis); } { Decimal thePrism; thePrism = this.getPrism(); strategy.appendField(locator, this, "prism", buffer, thePrism); } { VisionBase theBase; theBase = this.getBase(); strategy.appendField(locator, this, "base", buffer, theBase); } { Decimal theAdd; theAdd = this.getAdd(); strategy.appendField(locator, this, "add", buffer, theAdd); } { Decimal thePower; thePower = this.getPower(); strategy.appendField(locator, this, "power", buffer, thePower); } { Decimal theBackCurve; theBackCurve = this.getBackCurve(); strategy.appendField(locator, this, "backCurve", buffer, theBackCurve); } { Decimal theDiameter; theDiameter = this.getDiameter(); strategy.appendField(locator, this, "diameter", buffer, theDiameter); } { SimpleQuantity theDuration; theDuration = this.getDuration(); strategy.appendField(locator, this, "duration", buffer, theDuration); } { org.hl7.fhir.String theColor; theColor = this.getColor(); strategy.appendField(locator, this, "color", buffer, theColor); } { org.hl7.fhir.String theBrand; theBrand = this.getBrand(); strategy.appendField(locator, this, "brand", buffer, theBrand); } { org.hl7.fhir.String theNotes; theNotes = this.getNotes(); strategy.appendField(locator, this, "notes", buffer, theNotes); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy