Package com.ibm.fhir.model.resource
Class VisionPrescription.LensSpecification
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.VisionPrescription.LensSpecification
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- VisionPrescription
public static class VisionPrescription.LensSpecification extends BackboneElement
Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VisionPrescription.LensSpecification.Builder
static class
VisionPrescription.LensSpecification.Prism
Allows for adjustment on two axis.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static VisionPrescription.LensSpecification.Builder
builder()
boolean
equals(java.lang.Object obj)
Decimal
getAdd()
Power adjustment for multifocal lenses measured in dioptres (0.25 units).Integer
getAxis()
Adjustment for astigmatism measured in integer degrees.Decimal
getBackCurve()
Back curvature measured in millimetres.String
getBrand()
Brand recommendations or restrictions.String
getColor()
Special color or pattern.Decimal
getCylinder()
Power adjustment for astigmatism measured in dioptres (0.25 units).Decimal
getDiameter()
Contact lens diameter measured in millimetres.SimpleQuantity
getDuration()
The recommended maximum wear period for the lens.VisionEyes
getEye()
The eye for which the lens specification applies.java.util.List<Annotation>
getNote()
Notes for special requirements such as coatings and lens materials.Decimal
getPower()
Contact lens power measured in dioptres (0.25 units).java.util.List<VisionPrescription.LensSpecification.Prism>
getPrism()
Allows for adjustment on two axis.CodeableConcept
getProduct()
Identifies the type of vision correction product which is required for the patient.Decimal
getSphere()
Lens power measured in dioptres (0.25 units).boolean
hasChildren()
int
hashCode()
VisionPrescription.LensSpecification.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getProduct
public CodeableConcept getProduct()
Identifies the type of vision correction product which is required for the patient.- Returns:
- An immutable object of type
CodeableConcept
that is non-null.
-
getEye
public VisionEyes getEye()
The eye for which the lens specification applies.- Returns:
- An immutable object of type
VisionEyes
that is non-null.
-
getSphere
public Decimal getSphere()
Lens power measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimal
that may be null.
-
getCylinder
public Decimal getCylinder()
Power adjustment for astigmatism measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimal
that may be null.
-
getAxis
public Integer getAxis()
Adjustment for astigmatism measured in integer degrees.- Returns:
- An immutable object of type
Integer
that may be null.
-
getPrism
public java.util.List<VisionPrescription.LensSpecification.Prism> getPrism()
Allows for adjustment on two axis.- Returns:
- An unmodifiable list containing immutable objects of type
VisionPrescription.LensSpecification.Prism
that may be empty.
-
getAdd
public Decimal getAdd()
Power adjustment for multifocal lenses measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimal
that may be null.
-
getPower
public Decimal getPower()
Contact lens power measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimal
that may be null.
-
getBackCurve
public Decimal getBackCurve()
Back curvature measured in millimetres.- Returns:
- An immutable object of type
Decimal
that may be null.
-
getDiameter
public Decimal getDiameter()
Contact lens diameter measured in millimetres.- Returns:
- An immutable object of type
Decimal
that may be null.
-
getDuration
public SimpleQuantity getDuration()
The recommended maximum wear period for the lens.- Returns:
- An immutable object of type
SimpleQuantity
that may be null.
-
getColor
public String getColor()
Special color or pattern.- Returns:
- An immutable object of type
String
that may be null.
-
getBrand
public String getBrand()
Brand recommendations or restrictions.- Returns:
- An immutable object of type
String
that may be null.
-
getNote
public java.util.List<Annotation> getNote()
Notes for special requirements such as coatings and lens materials.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public VisionPrescription.LensSpecification.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static VisionPrescription.LensSpecification.Builder builder()
-
-