Class: FHIR::STU3::VisionPrescription::Dispense

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_stu3_models/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']}, 'type'=>'CodeableConcept', 'path'=>'Dispense.product', 'min'=>0, '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'=>'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']}, '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},
  'note' => {'type'=>'Annotation', 'path'=>'Dispense.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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::STU3::Model

Dynamic Method Handling

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

Instance Attribute Details

#addObject

0-1 decimal



68
69
70
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 68

def add
  @add
end

#axisObject

0-1 integer



65
66
67
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 65

def axis
  @axis
end

#backCurveObject

0-1 decimal



70
71
72
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 70

def backCurve
  @backCurve
end

#baseObject

0-1 code



67
68
69
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 67

def base
  @base
end

#brandObject

0-1 string



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

def brand
  @brand
end

#colorObject

0-1 string



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

def color
  @color
end

#cylinderObject

0-1 decimal



64
65
66
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 64

def cylinder
  @cylinder
end

#diameterObject

0-1 decimal



71
72
73
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 71

def diameter
  @diameter
end

#durationObject

0-1 Quantity



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

def duration
  @duration
end

#extensionObject

0-* [ Extension ]



59
60
61
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 59

def extension
  @extension
end

#eyeObject

0-1 code



62
63
64
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 62

def eye
  @eye
end

#idObject

0-1 string



58
59
60
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 58

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



60
61
62
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 60

def modifierExtension
  @modifierExtension
end

#noteObject

0-* [ Annotation ]



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

def note
  @note
end

#powerObject

0-1 decimal



69
70
71
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 69

def power
  @power
end

#prismObject

0-1 decimal



66
67
68
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 66

def prism
  @prism
end

#productObject

0-1 CodeableConcept



61
62
63
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 61

def product
  @product
end

#sphereObject

0-1 decimal



63
64
65
# File 'lib/fhir_stu3_models/fhir/resources/VisionPrescription.rb', line 63

def sphere
  @sphere
end