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 classVisionPrescription.LensSpecification.Builderstatic classVisionPrescription.LensSpecification.PrismAllows 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 voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static VisionPrescription.LensSpecification.Builderbuilder()booleanequals(Object obj)DecimalgetAdd()Power adjustment for multifocal lenses measured in dioptres (0.25 units).IntegergetAxis()Adjustment for astigmatism measured in integer degrees.DecimalgetBackCurve()Back curvature measured in millimetres.StringgetBrand()Brand recommendations or restrictions.StringgetColor()Special color or pattern.DecimalgetCylinder()Power adjustment for astigmatism measured in dioptres (0.25 units).DecimalgetDiameter()Contact lens diameter measured in millimetres.SimpleQuantitygetDuration()The recommended maximum wear period for the lens.VisionEyesgetEye()The eye for which the lens specification applies.List<Annotation>getNote()Notes for special requirements such as coatings and lens materials.DecimalgetPower()Contact lens power measured in dioptres (0.25 units).List<VisionPrescription.LensSpecification.Prism>getPrism()Allows for adjustment on two axis.CodeableConceptgetProduct()Identifies the type of vision correction product which is required for the patient.DecimalgetSphere()Lens power measured in dioptres (0.25 units).booleanhasChildren()inthashCode()VisionPrescription.LensSpecification.BuildertoBuilder()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
CodeableConceptthat is non-null.
-
getEye
public VisionEyes getEye()
The eye for which the lens specification applies.- Returns:
- An immutable object of type
VisionEyesthat is non-null.
-
getSphere
public Decimal getSphere()
Lens power measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getCylinder
public Decimal getCylinder()
Power adjustment for astigmatism measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getAxis
public Integer getAxis()
Adjustment for astigmatism measured in integer degrees.- Returns:
- An immutable object of type
Integerthat may be null.
-
getPrism
public List<VisionPrescription.LensSpecification.Prism> getPrism()
Allows for adjustment on two axis.- Returns:
- An unmodifiable list containing immutable objects of type
VisionPrescription.LensSpecification.Prismthat may be empty.
-
getAdd
public Decimal getAdd()
Power adjustment for multifocal lenses measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getPower
public Decimal getPower()
Contact lens power measured in dioptres (0.25 units).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getBackCurve
public Decimal getBackCurve()
Back curvature measured in millimetres.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getDiameter
public Decimal getDiameter()
Contact lens diameter measured in millimetres.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getDuration
public SimpleQuantity getDuration()
The recommended maximum wear period for the lens.- Returns:
- An immutable object of type
SimpleQuantitythat may be null.
-
getColor
public String getColor()
Special color or pattern.- Returns:
- An immutable object of type
Stringthat may be null.
-
getBrand
public String getBrand()
Brand recommendations or restrictions.- Returns:
- An immutable object of type
Stringthat may be null.
-
getNote
public List<Annotation> getNote()
Notes for special requirements such as coatings and lens materials.- Returns:
- An unmodifiable list containing immutable objects of type
Annotationthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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
-
toBuilder
public VisionPrescription.LensSpecification.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static VisionPrescription.LensSpecification.Builder builder()
-
-