Class: FHIR::Dosage::DoseAndRate

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'dose' => ['Range', 'Quantity'],
  'rate' => ['Ratio', 'Range', 'Quantity']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'DoseAndRate.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'DoseAndRate.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/dose-rate-type'=>['calculated', 'ordered']}, 'type'=>'CodeableConcept', 'path'=>'DoseAndRate.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/dose-rate-type'}},
  'doseRange' => {'type'=>'Range', 'path'=>'DoseAndRate.dose[x]', 'min'=>0, 'max'=>1},
  'doseQuantity' => {'type'=>'Quantity', 'path'=>'DoseAndRate.dose[x]', 'min'=>0, 'max'=>1},
  'rateRatio' => {'type'=>'Ratio', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1},
  'rateRange' => {'type'=>'Range', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1},
  'rateQuantity' => {'type'=>'Quantity', 'path'=>'DoseAndRate.rate[x]', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

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

#doseQuantityObject

0-1 Quantity



55
56
57
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 55

def doseQuantity
  @doseQuantity
end

#doseRangeObject

0-1 Range



54
55
56
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 54

def doseRange
  @doseRange
end

#extensionObject

0-* [ Extension ]



52
53
54
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 52

def extension
  @extension
end

#idObject

0-1 string



51
52
53
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 51

def id
  @id
end

#rateQuantityObject

0-1 Quantity



58
59
60
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 58

def rateQuantity
  @rateQuantity
end

#rateRangeObject

0-1 Range



57
58
59
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 57

def rateRange
  @rateRange
end

#rateRatioObject

0-1 Ratio



56
57
58
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 56

def rateRatio
  @rateRatio
end

#typeObject

0-1 CodeableConcept



53
54
55
# File 'lib/fhir_models/fhir/types/Dosage.rb', line 53

def type
  @type
end