Class: FHIR::VisionPrescription::LensSpecification

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/VisionPrescription.rb

Defined Under Namespace

Classes: Prism

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'LensSpecification.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'LensSpecification.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'LensSpecification.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'product' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct'=>['lens', 'contact']}, 'type'=>'CodeableConcept', 'path'=>'LensSpecification.product', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-product'}},
  'eye' => {'valid_codes'=>{'http://hl7.org/fhir/vision-eye-codes'=>['right', 'left']}, 'type'=>'code', 'path'=>'LensSpecification.eye', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.0'}},
  'sphere' => {'type'=>'decimal', 'path'=>'LensSpecification.sphere', 'min'=>0, 'max'=>1},
  'cylinder' => {'type'=>'decimal', 'path'=>'LensSpecification.cylinder', 'min'=>0, 'max'=>1},
  'axis' => {'type'=>'integer', 'path'=>'LensSpecification.axis', 'min'=>0, 'max'=>1},
  'prism' => {'type'=>'VisionPrescription::LensSpecification::Prism', 'path'=>'LensSpecification.prism', 'min'=>0, 'max'=>Float::INFINITY},
  'add' => {'type'=>'decimal', 'path'=>'LensSpecification.add', 'min'=>0, 'max'=>1},
  'power' => {'type'=>'decimal', 'path'=>'LensSpecification.power', 'min'=>0, 'max'=>1},
  'backCurve' => {'type'=>'decimal', 'path'=>'LensSpecification.backCurve', 'min'=>0, 'max'=>1},
  'diameter' => {'type'=>'decimal', 'path'=>'LensSpecification.diameter', 'min'=>0, 'max'=>1},
  'duration' => {'type'=>'Quantity', 'path'=>'LensSpecification.duration', 'min'=>0, 'max'=>1},
  'color' => {'type'=>'string', 'path'=>'LensSpecification.color', 'min'=>0, 'max'=>1},
  'brand' => {'type'=>'string', 'path'=>'LensSpecification.brand', 'min'=>0, 'max'=>1},
  'note' => {'type'=>'Annotation', 'path'=>'LensSpecification.note', 'min'=>0, 'max'=>Float::INFINITY}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#addObject

0-1 decimal



81
82
83
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 81

def add
  @add
end

#axisObject

0-1 integer



79
80
81
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 79

def axis
  @axis
end

#backCurveObject

0-1 decimal



83
84
85
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 83

def backCurve
  @backCurve
end

#brandObject

0-1 string



87
88
89
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 87

def brand
  @brand
end

#colorObject

0-1 string



86
87
88
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 86

def color
  @color
end

#cylinderObject

0-1 decimal



78
79
80
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 78

def cylinder
  @cylinder
end

#diameterObject

0-1 decimal



84
85
86
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 84

def diameter
  @diameter
end

#durationObject

0-1 Quantity



85
86
87
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 85

def duration
  @duration
end

#extensionObject

0-* [ Extension ]



73
74
75
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 73

def extension
  @extension
end

#eyeObject

1-1 code



76
77
78
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 76

def eye
  @eye
end

#idObject

0-1 string



72
73
74
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 72

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



74
75
76
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 74

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



88
89
90
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 88

def note
  @note
end

#powerObject

0-1 decimal



82
83
84
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 82

def power
  @power
end

#prismObject

0-* [ VisionPrescription::LensSpecification::Prism ]



80
81
82
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 80

def prism
  @prism
end

#productObject

1-1 CodeableConcept



75
76
77
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 75

def product
  @product
end

#sphereObject

0-1 decimal



77
78
79
# File 'lib/fhir_models/fhir/resources/VisionPrescription.rb', line 77

def sphere
  @sphere
end