Class: FHIR::VisionPrescription::Dispense
- Defined in:
- lib/fhir/resources/VisionPrescription.rb
Constant Summary collapse
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Dispense.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Dispense.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Dispense.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'product' => {'valid_codes'=>{'http://hl7.org/fhir/ex-visionprescriptionproduct'=>['lens', 'contact', 'lens', 'contact']}, 'type'=>'Coding', 'path'=>'Dispense.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', 'right', 'left']}, 'type'=>'code', 'path'=>'Dispense.eye', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-eye-codes'}}, 'sphere' => {'type'=>'decimal', 'path'=>'Dispense.sphere', 'min'=>0, 'max'=>1}, 'cylinder' => {'type'=>'decimal', 'path'=>'Dispense.cylinder', 'min'=>0, 'max'=>1}, 'axis' => {'type'=>'integer', 'path'=>'Dispense.axis', 'min'=>0, 'max'=>1}, 'prism' => {'type'=>'decimal', 'path'=>'Dispense.prism', 'min'=>0, 'max'=>1}, 'base' => {'valid_codes'=>{'http://hl7.org/fhir/vision-base-codes'=>['up', 'down', 'in', 'out', 'up', 'down', 'in', 'out']}, 'type'=>'code', 'path'=>'Dispense.base', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/vision-base-codes'}}, 'add' => {'type'=>'decimal', 'path'=>'Dispense.add', 'min'=>0, 'max'=>1}, 'power' => {'type'=>'decimal', 'path'=>'Dispense.power', 'min'=>0, 'max'=>1}, 'backCurve' => {'type'=>'decimal', 'path'=>'Dispense.backCurve', 'min'=>0, 'max'=>1}, 'diameter' => {'type'=>'decimal', 'path'=>'Dispense.diameter', 'min'=>0, 'max'=>1}, 'duration' => {'type'=>'Quantity', 'path'=>'Dispense.duration', 'min'=>0, 'max'=>1}, 'color' => {'type'=>'string', 'path'=>'Dispense.color', 'min'=>0, 'max'=>1}, 'brand' => {'type'=>'string', 'path'=>'Dispense.brand', 'min'=>0, 'max'=>1}, 'notes' => {'type'=>'string', 'path'=>'Dispense.notes', 'min'=>0, 'max'=>1} }
Instance Attribute Summary collapse
-
#add ⇒ Object
0-1 decimal.
-
#axis ⇒ Object
0-1 integer.
-
#backCurve ⇒ Object
0-1 decimal.
-
#base ⇒ Object
0-1 code.
-
#brand ⇒ Object
0-1 string.
-
#color ⇒ Object
0-1 string.
-
#cylinder ⇒ Object
0-1 decimal.
-
#diameter ⇒ Object
0-1 decimal.
-
#duration ⇒ Object
0-1 Quantity.
-
#extension ⇒ Object
0-* [ Extension ].
-
#eye ⇒ Object
0-1 code.
-
#id ⇒ Object
0-1 string.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#notes ⇒ Object
0-1 string.
-
#power ⇒ Object
0-1 decimal.
-
#prism ⇒ Object
0-1 decimal.
-
#product ⇒ Object
1-1 Coding.
-
#sphere ⇒ Object
0-1 decimal.
Method Summary
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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
#add ⇒ Object
0-1 decimal
66 67 68 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 66 def add @add end |
#axis ⇒ Object
0-1 integer
63 64 65 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 63 def axis @axis end |
#backCurve ⇒ Object
0-1 decimal
68 69 70 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 68 def backCurve @backCurve end |
#base ⇒ Object
0-1 code
65 66 67 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 65 def base @base end |
#brand ⇒ Object
0-1 string
72 73 74 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 72 def brand @brand end |
#color ⇒ Object
0-1 string
71 72 73 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 71 def color @color end |
#cylinder ⇒ Object
0-1 decimal
62 63 64 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 62 def cylinder @cylinder end |
#diameter ⇒ Object
0-1 decimal
69 70 71 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 69 def diameter @diameter end |
#duration ⇒ Object
0-1 Quantity
70 71 72 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 70 def duration @duration end |
#extension ⇒ Object
0-* [ Extension ]
57 58 59 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 57 def extension @extension end |
#eye ⇒ Object
0-1 code
60 61 62 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 60 def eye @eye end |
#id ⇒ Object
0-1 string
56 57 58 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 56 def id @id end |
#modifierExtension ⇒ Object
0-* [ Extension ]
58 59 60 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 58 def modifierExtension @modifierExtension end |
#notes ⇒ Object
0-1 string
73 74 75 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 73 def notes @notes end |
#power ⇒ Object
0-1 decimal
67 68 69 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 67 def power @power end |
#prism ⇒ Object
0-1 decimal
64 65 66 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 64 def prism @prism end |
#product ⇒ Object
1-1 Coding
59 60 61 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 59 def product @product end |
#sphere ⇒ Object
0-1 decimal
61 62 63 |
# File 'lib/fhir/resources/VisionPrescription.rb', line 61 def sphere @sphere end |