Class: FHIR::MedicationOrder::DispenseRequest

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

Constant Summary collapse

METADATA =
{
  'id' => {'type'=>'string', 'path'=>'DispenseRequest.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'DispenseRequest.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'DispenseRequest.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'validityPeriod' => {'type'=>'Period', 'path'=>'DispenseRequest.validityPeriod', 'min'=>0, 'max'=>1},
  'numberOfRepeatsAllowed' => {'type'=>'positiveInt', 'path'=>'DispenseRequest.numberOfRepeatsAllowed', 'min'=>0, 'max'=>1},
  'quantity' => {'type'=>'Quantity', 'path'=>'DispenseRequest.quantity', 'min'=>0, 'max'=>1},
  'expectedSupplyDuration' => {'type'=>'Duration', 'path'=>'DispenseRequest.expectedSupplyDuration', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from FHIR::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

#expectedSupplyDurationObject

0-1 Duration



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

def expectedSupplyDuration
  @expectedSupplyDuration
end

#extensionObject

0-* [ Extension ]



111
112
113
# File 'lib/fhir/resources/MedicationOrder.rb', line 111

def extension
  @extension
end

#idObject

0-1 string



110
111
112
# File 'lib/fhir/resources/MedicationOrder.rb', line 110

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



112
113
114
# File 'lib/fhir/resources/MedicationOrder.rb', line 112

def modifierExtension
  @modifierExtension
end

#numberOfRepeatsAllowedObject

0-1 positiveInt



114
115
116
# File 'lib/fhir/resources/MedicationOrder.rb', line 114

def numberOfRepeatsAllowed
  @numberOfRepeatsAllowed
end

#quantityObject

0-1 Quantity



115
116
117
# File 'lib/fhir/resources/MedicationOrder.rb', line 115

def quantity
  @quantity
end

#validityPeriodObject

0-1 Period



113
114
115
# File 'lib/fhir/resources/MedicationOrder.rb', line 113

def validityPeriod
  @validityPeriod
end