Package org.hl7.fhir.r5.model
Class VisionPrescription.VisionPrescriptionLensSpecificationComponent
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.Element
-
- org.hl7.fhir.r5.model.BackboneElement
-
- org.hl7.fhir.r5.model.VisionPrescription.VisionPrescriptionLensSpecificationComponent
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseBackboneElement
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
- Enclosing class:
- VisionPrescription
public static class VisionPrescription.VisionPrescriptionLensSpecificationComponent extends BackboneElement implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DecimalType
add
Power adjustment for multifocal lenses measured in dioptres (0.25 units).protected IntegerType
axis
Adjustment for astigmatism measured in integer degrees.protected DecimalType
backCurve
Back curvature measured in millimetres.protected StringType
brand
Brand recommendations or restrictions.protected StringType
color
Special color or pattern.protected DecimalType
cylinder
Power adjustment for astigmatism measured in dioptres (0.25 units).protected DecimalType
diameter
Contact lens diameter measured in millimetres.protected Quantity
duration
The recommended maximum wear period for the lens.protected Enumeration<VisionPrescription.VisionEyes>
eye
The eye for which the lens specification applies.protected List<Annotation>
note
Notes for special requirements such as coatings and lens materials.protected DecimalType
power
Contact lens power measured in dioptres (0.25 units).protected List<VisionPrescription.PrismComponent>
prism
Allows for adjustment on two axis.protected CodeableConcept
product
Identifies the type of vision correction product which is required for the patient.protected DecimalType
sphere
Lens power measured in dioptres (0.25 units).-
Fields inherited from class org.hl7.fhir.r5.model.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description VisionPrescriptionLensSpecificationComponent()
ConstructorVisionPrescriptionLensSpecificationComponent(CodeableConcept product, VisionPrescription.VisionEyes eye)
Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.BackboneElement
addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getModifierExtension, getModifierExtensionFirstRep, hasModifierExtension, setModifierExtension
-
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
-
-
-
Field Detail
-
product
protected CodeableConcept product
Identifies the type of vision correction product which is required for the patient.
-
eye
protected Enumeration<VisionPrescription.VisionEyes> eye
The eye for which the lens specification applies.
-
sphere
protected DecimalType sphere
Lens power measured in dioptres (0.25 units).
-
cylinder
protected DecimalType cylinder
Power adjustment for astigmatism measured in dioptres (0.25 units).
-
axis
protected IntegerType axis
Adjustment for astigmatism measured in integer degrees.
-
prism
protected List<VisionPrescription.PrismComponent> prism
Allows for adjustment on two axis.
-
add
protected DecimalType add
Power adjustment for multifocal lenses measured in dioptres (0.25 units).
-
power
protected DecimalType power
Contact lens power measured in dioptres (0.25 units).
-
backCurve
protected DecimalType backCurve
Back curvature measured in millimetres.
-
diameter
protected DecimalType diameter
Contact lens diameter measured in millimetres.
-
color
protected StringType color
Special color or pattern.
-
brand
protected StringType brand
Brand recommendations or restrictions.
-
note
protected List<Annotation> note
Notes for special requirements such as coatings and lens materials.
-
-
Constructor Detail
-
VisionPrescriptionLensSpecificationComponent
public VisionPrescriptionLensSpecificationComponent()
Constructor
-
VisionPrescriptionLensSpecificationComponent
public VisionPrescriptionLensSpecificationComponent(CodeableConcept product, VisionPrescription.VisionEyes eye)
Constructor
-
-
Method Detail
-
getProduct
public CodeableConcept getProduct()
- Returns:
product
(Identifies the type of vision correction product which is required for the patient.)
-
hasProduct
public boolean hasProduct()
-
setProduct
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setProduct(CodeableConcept value)
- Parameters:
value
-product
(Identifies the type of vision correction product which is required for the patient.)
-
getEyeElement
public Enumeration<VisionPrescription.VisionEyes> getEyeElement()
- Returns:
eye
(The eye for which the lens specification applies.). This is the underlying object with id, value and extensions. The accessor "getEye" gives direct access to the value
-
hasEyeElement
public boolean hasEyeElement()
-
hasEye
public boolean hasEye()
-
setEyeElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setEyeElement(Enumeration<VisionPrescription.VisionEyes> value)
- Parameters:
value
-eye
(The eye for which the lens specification applies.). This is the underlying object with id, value and extensions. The accessor "getEye" gives direct access to the value
-
getEye
public VisionPrescription.VisionEyes getEye()
- Returns:
- The eye for which the lens specification applies.
-
setEye
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setEye(VisionPrescription.VisionEyes value)
- Parameters:
value
- The eye for which the lens specification applies.
-
getSphereElement
public DecimalType getSphereElement()
- Returns:
sphere
(Lens power measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getSphere" gives direct access to the value
-
hasSphereElement
public boolean hasSphereElement()
-
hasSphere
public boolean hasSphere()
-
setSphereElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setSphereElement(DecimalType value)
- Parameters:
value
-sphere
(Lens power measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getSphere" gives direct access to the value
-
getSphere
public BigDecimal getSphere()
- Returns:
- Lens power measured in dioptres (0.25 units).
-
setSphere
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setSphere(BigDecimal value)
- Parameters:
value
- Lens power measured in dioptres (0.25 units).
-
setSphere
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setSphere(long value)
- Parameters:
value
- Lens power measured in dioptres (0.25 units).
-
setSphere
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setSphere(double value)
- Parameters:
value
- Lens power measured in dioptres (0.25 units).
-
getCylinderElement
public DecimalType getCylinderElement()
- Returns:
cylinder
(Power adjustment for astigmatism measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getCylinder" gives direct access to the value
-
hasCylinderElement
public boolean hasCylinderElement()
-
hasCylinder
public boolean hasCylinder()
-
setCylinderElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setCylinderElement(DecimalType value)
- Parameters:
value
-cylinder
(Power adjustment for astigmatism measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getCylinder" gives direct access to the value
-
getCylinder
public BigDecimal getCylinder()
- Returns:
- Power adjustment for astigmatism measured in dioptres (0.25 units).
-
setCylinder
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setCylinder(BigDecimal value)
- Parameters:
value
- Power adjustment for astigmatism measured in dioptres (0.25 units).
-
setCylinder
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setCylinder(long value)
- Parameters:
value
- Power adjustment for astigmatism measured in dioptres (0.25 units).
-
setCylinder
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setCylinder(double value)
- Parameters:
value
- Power adjustment for astigmatism measured in dioptres (0.25 units).
-
getAxisElement
public IntegerType getAxisElement()
- Returns:
axis
(Adjustment for astigmatism measured in integer degrees.). This is the underlying object with id, value and extensions. The accessor "getAxis" gives direct access to the value
-
hasAxisElement
public boolean hasAxisElement()
-
hasAxis
public boolean hasAxis()
-
setAxisElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAxisElement(IntegerType value)
- Parameters:
value
-axis
(Adjustment for astigmatism measured in integer degrees.). This is the underlying object with id, value and extensions. The accessor "getAxis" gives direct access to the value
-
getAxis
public int getAxis()
- Returns:
- Adjustment for astigmatism measured in integer degrees.
-
setAxis
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAxis(int value)
- Parameters:
value
- Adjustment for astigmatism measured in integer degrees.
-
getPrism
public List<VisionPrescription.PrismComponent> getPrism()
- Returns:
prism
(Allows for adjustment on two axis.)
-
setPrism
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setPrism(List<VisionPrescription.PrismComponent> thePrism)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasPrism
public boolean hasPrism()
-
addPrism
public VisionPrescription.PrismComponent addPrism()
-
addPrism
public VisionPrescription.VisionPrescriptionLensSpecificationComponent addPrism(VisionPrescription.PrismComponent t)
-
getPrismFirstRep
public VisionPrescription.PrismComponent getPrismFirstRep()
- Returns:
- The first repetition of repeating field
prism
, creating it if it does not already exist {3}
-
getAddElement
public DecimalType getAddElement()
- Returns:
add
(Power adjustment for multifocal lenses measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getAdd" gives direct access to the value
-
hasAddElement
public boolean hasAddElement()
-
hasAdd
public boolean hasAdd()
-
setAddElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAddElement(DecimalType value)
- Parameters:
value
-add
(Power adjustment for multifocal lenses measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getAdd" gives direct access to the value
-
getAdd
public BigDecimal getAdd()
- Returns:
- Power adjustment for multifocal lenses measured in dioptres (0.25 units).
-
setAdd
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAdd(BigDecimal value)
- Parameters:
value
- Power adjustment for multifocal lenses measured in dioptres (0.25 units).
-
setAdd
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAdd(long value)
- Parameters:
value
- Power adjustment for multifocal lenses measured in dioptres (0.25 units).
-
setAdd
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setAdd(double value)
- Parameters:
value
- Power adjustment for multifocal lenses measured in dioptres (0.25 units).
-
getPowerElement
public DecimalType getPowerElement()
- Returns:
power
(Contact lens power measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getPower" gives direct access to the value
-
hasPowerElement
public boolean hasPowerElement()
-
hasPower
public boolean hasPower()
-
setPowerElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setPowerElement(DecimalType value)
- Parameters:
value
-power
(Contact lens power measured in dioptres (0.25 units).). This is the underlying object with id, value and extensions. The accessor "getPower" gives direct access to the value
-
getPower
public BigDecimal getPower()
- Returns:
- Contact lens power measured in dioptres (0.25 units).
-
setPower
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setPower(BigDecimal value)
- Parameters:
value
- Contact lens power measured in dioptres (0.25 units).
-
setPower
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setPower(long value)
- Parameters:
value
- Contact lens power measured in dioptres (0.25 units).
-
setPower
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setPower(double value)
- Parameters:
value
- Contact lens power measured in dioptres (0.25 units).
-
getBackCurveElement
public DecimalType getBackCurveElement()
- Returns:
backCurve
(Back curvature measured in millimetres.). This is the underlying object with id, value and extensions. The accessor "getBackCurve" gives direct access to the value
-
hasBackCurveElement
public boolean hasBackCurveElement()
-
hasBackCurve
public boolean hasBackCurve()
-
setBackCurveElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBackCurveElement(DecimalType value)
- Parameters:
value
-backCurve
(Back curvature measured in millimetres.). This is the underlying object with id, value and extensions. The accessor "getBackCurve" gives direct access to the value
-
getBackCurve
public BigDecimal getBackCurve()
- Returns:
- Back curvature measured in millimetres.
-
setBackCurve
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBackCurve(BigDecimal value)
- Parameters:
value
- Back curvature measured in millimetres.
-
setBackCurve
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBackCurve(long value)
- Parameters:
value
- Back curvature measured in millimetres.
-
setBackCurve
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBackCurve(double value)
- Parameters:
value
- Back curvature measured in millimetres.
-
getDiameterElement
public DecimalType getDiameterElement()
- Returns:
diameter
(Contact lens diameter measured in millimetres.). This is the underlying object with id, value and extensions. The accessor "getDiameter" gives direct access to the value
-
hasDiameterElement
public boolean hasDiameterElement()
-
hasDiameter
public boolean hasDiameter()
-
setDiameterElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setDiameterElement(DecimalType value)
- Parameters:
value
-diameter
(Contact lens diameter measured in millimetres.). This is the underlying object with id, value and extensions. The accessor "getDiameter" gives direct access to the value
-
getDiameter
public BigDecimal getDiameter()
- Returns:
- Contact lens diameter measured in millimetres.
-
setDiameter
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setDiameter(BigDecimal value)
- Parameters:
value
- Contact lens diameter measured in millimetres.
-
setDiameter
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setDiameter(long value)
- Parameters:
value
- Contact lens diameter measured in millimetres.
-
setDiameter
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setDiameter(double value)
- Parameters:
value
- Contact lens diameter measured in millimetres.
-
getDuration
public Quantity getDuration()
- Returns:
duration
(The recommended maximum wear period for the lens.)
-
hasDuration
public boolean hasDuration()
-
setDuration
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setDuration(Quantity value)
- Parameters:
value
-duration
(The recommended maximum wear period for the lens.)
-
getColorElement
public StringType getColorElement()
- Returns:
color
(Special color or pattern.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
-
hasColorElement
public boolean hasColorElement()
-
hasColor
public boolean hasColor()
-
setColorElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setColorElement(StringType value)
- Parameters:
value
-color
(Special color or pattern.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
-
setColor
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setColor(String value)
- Parameters:
value
- Special color or pattern.
-
getBrandElement
public StringType getBrandElement()
- Returns:
brand
(Brand recommendations or restrictions.). This is the underlying object with id, value and extensions. The accessor "getBrand" gives direct access to the value
-
hasBrandElement
public boolean hasBrandElement()
-
hasBrand
public boolean hasBrand()
-
setBrandElement
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBrandElement(StringType value)
- Parameters:
value
-brand
(Brand recommendations or restrictions.). This is the underlying object with id, value and extensions. The accessor "getBrand" gives direct access to the value
-
setBrand
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setBrand(String value)
- Parameters:
value
- Brand recommendations or restrictions.
-
getNote
public List<Annotation> getNote()
- Returns:
note
(Notes for special requirements such as coatings and lens materials.)
-
setNote
public VisionPrescription.VisionPrescriptionLensSpecificationComponent setNote(List<Annotation> theNote)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
-
addNote
public VisionPrescription.VisionPrescriptionLensSpecificationComponent addNote(Annotation t)
-
getNoteFirstRep
public Annotation getNoteFirstRep()
- Returns:
- The first repetition of repeating field
note
, creating it if it does not already exist {3}
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildren
in classBackboneElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makeProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForProperty
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChild
in classBackboneElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public VisionPrescription.VisionPrescriptionLensSpecificationComponent copy()
- Specified by:
copy
in classBackboneElement
-
copyValues
public void copyValues(VisionPrescription.VisionPrescriptionLensSpecificationComponent dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeep
in classBackboneElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallow
in classBackboneElement
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classBackboneElement
-
fhirType
public String fhirType()
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classBackboneElement
-
-