Class: FHIR::DSTU2::Timing::Repeat

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'bounds' => ['Quantity', 'Range', 'Period']
}
METADATA =
{
  'id' => { 'type' => 'id', 'path' => 'Repeat.id', 'min' => 0, 'max' => 1 },
  'extension' => { 'type' => 'Extension', 'path' => 'Repeat.extension', 'min' => 0, 'max' => Float::INFINITY },
  'boundsQuantity' => { 'type' => 'Quantity', 'path' => 'Repeat.bounds[x]', 'min' => 0, 'max' => 1 },
  'boundsRange' => { 'type' => 'Range', 'path' => 'Repeat.bounds[x]', 'min' => 0, 'max' => 1 },
  'boundsPeriod' => { 'type' => 'Period', 'path' => 'Repeat.bounds[x]', 'min' => 0, 'max' => 1 },
  'count' => { 'type' => 'integer', 'path' => 'Repeat.count', 'min' => 0, 'max' => 1 },
  'duration' => { 'type' => 'decimal', 'path' => 'Repeat.duration', 'min' => 0, 'max' => 1 },
  'durationMax' => { 'type' => 'decimal', 'path' => 'Repeat.durationMax', 'min' => 0, 'max' => 1 },
  'durationUnits' => { 'valid_codes' => { 'http://unitsofmeasure.org' => ['s', 'min', 'h', 'd', 'wk', 'mo', 'a'] }, 'type' => 'code', 'path' => 'Repeat.durationUnits', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/units-of-time' } },
  'frequency' => { 'type' => 'integer', 'path' => 'Repeat.frequency', 'min' => 0, 'max' => 1 },
  'frequencyMax' => { 'type' => 'integer', 'path' => 'Repeat.frequencyMax', 'min' => 0, 'max' => 1 },
  'period' => { 'type' => 'decimal', 'path' => 'Repeat.period', 'min' => 0, 'max' => 1 },
  'periodMax' => { 'type' => 'decimal', 'path' => 'Repeat.periodMax', 'min' => 0, 'max' => 1 },
  'periodUnits' => { 'valid_codes' => { 'http://unitsofmeasure.org' => ['s', 'min', 'h', 'd', 'wk', 'mo', 'a'] }, 'type' => 'code', 'path' => 'Repeat.periodUnits', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/units-of-time' } },
  'when' => { 'valid_codes' => { 'http://hl7.org/fhir/v3/TimingEvent' => ['AC', 'ACD', 'ACM', 'ACV', 'C', 'CD', 'CM', 'CV', 'HS', 'IC', 'ICD', 'ICM', 'ICV', 'PC', 'PCD', 'PCM', 'PCV', 'WAKE'] }, 'type' => 'code', 'path' => 'Repeat.when', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://hl7.org/fhir/ValueSet/event-timing' } }
}

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

#boundsPeriodObject

0-1 Period



47
48
49
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 47

def boundsPeriod
  @boundsPeriod
end

#boundsQuantityObject

0-1 Quantity



45
46
47
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 45

def boundsQuantity
  @boundsQuantity
end

#boundsRangeObject

0-1 Range



46
47
48
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 46

def boundsRange
  @boundsRange
end

#countObject

0-1 integer



48
49
50
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 48

def count
  @count
end

#durationObject

0-1 decimal



49
50
51
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 49

def duration
  @duration
end

#durationMaxObject

0-1 decimal



50
51
52
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 50

def durationMax
  @durationMax
end

#durationUnitsObject

0-1 code



51
52
53
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 51

def durationUnits
  @durationUnits
end

#extensionObject

0-* [ Extension ]



44
45
46
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 44

def extension
  @extension
end

#frequencyObject

0-1 integer



52
53
54
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 52

def frequency
  @frequency
end

#frequencyMaxObject

0-1 integer



53
54
55
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 53

def frequencyMax
  @frequencyMax
end

#idObject

0-1 id



43
44
45
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 43

def id
  @id
end

#periodObject

0-1 decimal



54
55
56
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 54

def period
  @period
end

#periodMaxObject

0-1 decimal



55
56
57
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 55

def periodMax
  @periodMax
end

#periodUnitsObject

0-1 code



56
57
58
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 56

def periodUnits
  @periodUnits
end

#whenObject

0-1 code



57
58
59
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 57

def when
  @when
end