Class: FHIR::NutritionOrder::OralDiet

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

Defined Under Namespace

Classes: Nutrient, Texture

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'OralDiet.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'OralDiet.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'OralDiet.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://snomed.info/sct'=>['38903004', '50712000', '56948003', '61420007', '182954008', '182955009', '182956005', '182957001', '182958006', '182959003', '182960008', '183028005', '223456000', '225373002', '225374008', '229912004', '229913009', '229914003', '229915002', '229916001', '229917005', '284071006', '289133003', '310244003', '361231003', '386261001', '404919001', '422972009', '425458000', '1151000175103']}, 'type'=>'CodeableConcept', 'path'=>'OralDiet.type', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diet-type'}},
  'schedule' => {'type'=>'Timing', 'path'=>'OralDiet.schedule', 'min'=>0, 'max'=>Float::INFINITY},
  'nutrient' => {'type'=>'NutritionOrder::OralDiet::Nutrient', 'path'=>'OralDiet.nutrient', 'min'=>0, 'max'=>Float::INFINITY},
  'texture' => {'type'=>'NutritionOrder::OralDiet::Texture', 'path'=>'OralDiet.texture', 'min'=>0, 'max'=>Float::INFINITY},
  'fluidConsistencyType' => {'valid_codes'=>{'http://snomed.info/sct'=>['439031000124108', '439021000124105', '439041000124103', '439081000124109']}, 'type'=>'CodeableConcept', 'path'=>'OralDiet.fluidConsistencyType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/consistency-type'}},
  'instruction' => {'type'=>'string', 'path'=>'OralDiet.instruction', 'min'=>0, 'max'=>1}
}

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

#extensionObject

0-* [ Extension ]



94
95
96
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 94

def extension
  @extension
end

#fluidConsistencyTypeObject

0-* [ CodeableConcept ]



100
101
102
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 100

def fluidConsistencyType
  @fluidConsistencyType
end

#idObject

0-1 string



93
94
95
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 93

def id
  @id
end

#instructionObject

0-1 string



101
102
103
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 101

def instruction
  @instruction
end

#modifierExtensionObject

0-* [ Extension ]



95
96
97
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 95

def modifierExtension
  @modifierExtension
end

#nutrientObject

0-* [ NutritionOrder::OralDiet::Nutrient ]



98
99
100
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 98

def nutrient
  @nutrient
end

#scheduleObject

0-* [ Timing ]



97
98
99
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 97

def schedule
  @schedule
end

#textureObject

0-* [ NutritionOrder::OralDiet::Texture ]



99
100
101
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 99

def texture
  @texture
end

#typeObject

0-* [ CodeableConcept ]



96
97
98
# File 'lib/fhir_models/fhir/resources/NutritionOrder.rb', line 96

def type
  @type
end