Class: FHIR::DSTU2::NutritionOrder::Supplement

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

Constant Summary collapse

METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Supplement.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Supplement.extension', 'min' => 0, 'max' => Float::INFINITY },
  'modifierExtension' => { 'type' => 'Extension', 'path' => 'Supplement.modifierExtension', 'min' => 0, 'max' => Float::INFINITY },
  'type' => { 'valid_codes' => { 'http://snomed.info/sct' => ['442901000124106', '443031000124106', '443051000124104', '442911000124109', '443021000124108', '442971000124100', '442981000124102', '442991000124104', '443011000124100', '442961000124107', '442951000124105', '442941000124108', '442921000124101', '442931000124103', '444331000124106', '443361000124100', '443391000124108', '443401000124105', '443491000124103', '443501000124106', '443421000124100', '443471000124104', '444431000124104', '443451000124109', '444321000124108', '441561000124106', '443461000124106', '441531000124102', '443561000124107', '443481000124101', '441571000124104', '441591000124103', '441601000124106', '443351000124102', '443771000124106', '441671000124100', '443111000124101', '443431000124102', '443411000124108', '444361000124102', '444401000124107', '444381000124107', '444371000124109', '443441000124107', '442651000124102'] }, 'type' => 'CodeableConcept', 'path' => 'Supplement.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/supplement-type' } },
  'productName' => { 'type' => 'string', 'path' => 'Supplement.productName', 'min' => 0, 'max' => 1 },
  'schedule' => { 'type' => 'Timing', 'path' => 'Supplement.schedule', 'min' => 0, 'max' => Float::INFINITY },
  'quantity' => { 'type' => 'Quantity', 'path' => 'Supplement.quantity', 'min' => 0, 'max' => 1 },
  'instruction' => { 'type' => 'string', 'path' => 'Supplement.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, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

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

Dynamic Method Handling

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

Instance Attribute Details

#extensionObject

0-* [ Extension ]



117
118
119
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 117

def extension
  @extension
end

#idObject

0-1 id



116
117
118
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 116

def id
  @id
end

#instructionObject

0-1 string



123
124
125
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 123

def instruction
  @instruction
end

#modifierExtensionObject

0-* [ Extension ]



118
119
120
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 118

def modifierExtension
  @modifierExtension
end

#productNameObject

0-1 string



120
121
122
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 120

def productName
  @productName
end

#quantityObject

0-1 Quantity



122
123
124
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 122

def quantity
  @quantity
end

#scheduleObject

0-* [ Timing ]



121
122
123
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 121

def schedule
  @schedule
end

#typeObject

0-1 CodeableConcept



119
120
121
# File 'lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb', line 119

def type
  @type
end