Class VisionPrescription.LensSpecification.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.VisionPrescription.LensSpecification.Builder
-
- Enclosing class:
- VisionPrescription.LensSpecification
public static class VisionPrescription.LensSpecification.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisionPrescription.LensSpecification.Builderadd(Decimal add)Power adjustment for multifocal lenses measured in dioptres (0.25 units).VisionPrescription.LensSpecification.Builderaxis(Integer axis)Adjustment for astigmatism measured in integer degrees.VisionPrescription.LensSpecification.BuilderbackCurve(Decimal backCurve)Back curvature measured in millimetres.VisionPrescription.LensSpecification.Builderbrand(String brand)Brand recommendations or restrictions.VisionPrescription.LensSpecificationbuild()Build theVisionPrescription.LensSpecificationVisionPrescription.LensSpecification.Buildercolor(String color)Special color or pattern.VisionPrescription.LensSpecification.Buildercylinder(Decimal cylinder)Power adjustment for astigmatism measured in dioptres (0.25 units).VisionPrescription.LensSpecification.Builderdiameter(Decimal diameter)Contact lens diameter measured in millimetres.VisionPrescription.LensSpecification.Builderduration(SimpleQuantity duration)The recommended maximum wear period for the lens.VisionPrescription.LensSpecification.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.VisionPrescription.LensSpecification.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.VisionPrescription.LensSpecification.Buildereye(VisionEyes eye)The eye for which the lens specification applies.protected VisionPrescription.LensSpecification.Builderfrom(VisionPrescription.LensSpecification lensSpecification)VisionPrescription.LensSpecification.Builderid(String id)Unique id for the element within a resource (for internal references).VisionPrescription.LensSpecification.BuildermodifierExtension(Extension... modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.VisionPrescription.LensSpecification.BuildermodifierExtension(Collection<Extension> modifierExtension)May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.VisionPrescription.LensSpecification.Buildernote(Annotation... note)Notes for special requirements such as coatings and lens materials.VisionPrescription.LensSpecification.Buildernote(Collection<Annotation> note)Notes for special requirements such as coatings and lens materials.VisionPrescription.LensSpecification.Builderpower(Decimal power)Contact lens power measured in dioptres (0.25 units).VisionPrescription.LensSpecification.Builderprism(VisionPrescription.LensSpecification.Prism... prism)Allows for adjustment on two axis.VisionPrescription.LensSpecification.Builderprism(Collection<VisionPrescription.LensSpecification.Prism> prism)Allows for adjustment on two axis.VisionPrescription.LensSpecification.Builderproduct(CodeableConcept product)Identifies the type of vision correction product which is required for the patient.VisionPrescription.LensSpecification.Buildersphere(Decimal sphere)Lens power measured in dioptres (0.25 units).-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public VisionPrescription.LensSpecification.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classBackboneElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public VisionPrescription.LensSpecification.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public VisionPrescription.LensSpecification.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
modifierExtension
public VisionPrescription.LensSpecification.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public VisionPrescription.LensSpecification.Builder modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection
- Overrides:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
product
public VisionPrescription.LensSpecification.Builder product(CodeableConcept product)
Identifies the type of vision correction product which is required for the patient.This element is required.
- Parameters:
product- Product to be supplied- Returns:
- A reference to this Builder instance
-
eye
public VisionPrescription.LensSpecification.Builder eye(VisionEyes eye)
The eye for which the lens specification applies.This element is required.
- Parameters:
eye- right | left- Returns:
- A reference to this Builder instance
-
sphere
public VisionPrescription.LensSpecification.Builder sphere(Decimal sphere)
Lens power measured in dioptres (0.25 units).- Parameters:
sphere- Power of the lens- Returns:
- A reference to this Builder instance
-
cylinder
public VisionPrescription.LensSpecification.Builder cylinder(Decimal cylinder)
Power adjustment for astigmatism measured in dioptres (0.25 units).- Parameters:
cylinder- Lens power for astigmatism- Returns:
- A reference to this Builder instance
-
axis
public VisionPrescription.LensSpecification.Builder axis(Integer axis)
Adjustment for astigmatism measured in integer degrees.- Parameters:
axis- Lens meridian which contain no power for astigmatism- Returns:
- A reference to this Builder instance
-
prism
public VisionPrescription.LensSpecification.Builder prism(VisionPrescription.LensSpecification.Prism... prism)
Allows for adjustment on two axis.Adds new element(s) to the existing list
- Parameters:
prism- Eye alignment compensation- Returns:
- A reference to this Builder instance
-
prism
public VisionPrescription.LensSpecification.Builder prism(Collection<VisionPrescription.LensSpecification.Prism> prism)
Allows for adjustment on two axis.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
prism- Eye alignment compensation- Returns:
- A reference to this Builder instance
-
add
public VisionPrescription.LensSpecification.Builder add(Decimal add)
Power adjustment for multifocal lenses measured in dioptres (0.25 units).- Parameters:
add- Added power for multifocal levels- Returns:
- A reference to this Builder instance
-
power
public VisionPrescription.LensSpecification.Builder power(Decimal power)
Contact lens power measured in dioptres (0.25 units).- Parameters:
power- Contact lens power- Returns:
- A reference to this Builder instance
-
backCurve
public VisionPrescription.LensSpecification.Builder backCurve(Decimal backCurve)
Back curvature measured in millimetres.- Parameters:
backCurve- Contact lens back curvature- Returns:
- A reference to this Builder instance
-
diameter
public VisionPrescription.LensSpecification.Builder diameter(Decimal diameter)
Contact lens diameter measured in millimetres.- Parameters:
diameter- Contact lens diameter- Returns:
- A reference to this Builder instance
-
duration
public VisionPrescription.LensSpecification.Builder duration(SimpleQuantity duration)
The recommended maximum wear period for the lens.- Parameters:
duration- Lens wear duration- Returns:
- A reference to this Builder instance
-
color
public VisionPrescription.LensSpecification.Builder color(String color)
Special color or pattern.- Parameters:
color- Color required- Returns:
- A reference to this Builder instance
-
brand
public VisionPrescription.LensSpecification.Builder brand(String brand)
Brand recommendations or restrictions.- Parameters:
brand- Brand required- Returns:
- A reference to this Builder instance
-
note
public VisionPrescription.LensSpecification.Builder note(Annotation... note)
Notes for special requirements such as coatings and lens materials.Adds new element(s) to the existing list
- Parameters:
note- Notes for coatings- Returns:
- A reference to this Builder instance
-
note
public VisionPrescription.LensSpecification.Builder note(Collection<Annotation> note)
Notes for special requirements such as coatings and lens materials.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
note- Notes for coatings- Returns:
- A reference to this Builder instance
-
build
public VisionPrescription.LensSpecification build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
VisionPrescription.LensSpecification - Throws:
IllegalStateException- if the current state cannot be built into a valid LensSpecification per the base specification
-
from
protected VisionPrescription.LensSpecification.Builder from(VisionPrescription.LensSpecification lensSpecification)
-
-