Class: FHIR::DSTU2::Timing::Repeat
- 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
-
#boundsPeriod ⇒ Object
0-1 Period.
-
#boundsQuantity ⇒ Object
0-1 Quantity.
-
#boundsRange ⇒ Object
0-1 Range.
-
#count ⇒ Object
0-1 integer.
-
#duration ⇒ Object
0-1 decimal.
-
#durationMax ⇒ Object
0-1 decimal.
-
#durationUnits ⇒ Object
0-1 code.
-
#extension ⇒ Object
0-* [ Extension ].
-
#frequency ⇒ Object
0-1 integer.
-
#frequencyMax ⇒ Object
0-1 integer.
-
#id ⇒ Object
0-1 id.
-
#period ⇒ Object
0-1 decimal.
-
#periodMax ⇒ Object
0-1 decimal.
-
#periodUnits ⇒ Object
0-1 code.
-
#when ⇒ Object
0-1 code.
Method Summary
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
Methods included from Hashable
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
#boundsPeriod ⇒ Object
0-1 Period
47 48 49 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 47 def boundsPeriod @boundsPeriod end |
#boundsQuantity ⇒ Object
0-1 Quantity
45 46 47 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 45 def boundsQuantity @boundsQuantity end |
#boundsRange ⇒ Object
0-1 Range
46 47 48 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 46 def boundsRange @boundsRange end |
#count ⇒ Object
0-1 integer
48 49 50 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 48 def count @count end |
#duration ⇒ Object
0-1 decimal
49 50 51 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 49 def duration @duration end |
#durationMax ⇒ Object
0-1 decimal
50 51 52 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 50 def durationMax @durationMax end |
#durationUnits ⇒ Object
0-1 code
51 52 53 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 51 def durationUnits @durationUnits end |
#extension ⇒ Object
0-* [ Extension ]
44 45 46 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 44 def extension @extension end |
#frequency ⇒ Object
0-1 integer
52 53 54 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 52 def frequency @frequency end |
#frequencyMax ⇒ Object
0-1 integer
53 54 55 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 53 def frequencyMax @frequencyMax end |
#id ⇒ Object
0-1 id
43 44 45 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 43 def id @id end |
#period ⇒ Object
0-1 decimal
54 55 56 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 54 def period @period end |
#periodMax ⇒ Object
0-1 decimal
55 56 57 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 55 def periodMax @periodMax end |
#periodUnits ⇒ Object
0-1 code
56 57 58 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 56 def periodUnits @periodUnits end |
#when ⇒ Object
0-1 code
57 58 59 |
# File 'lib/fhir_dstu2_models/fhir/types/Timing.rb', line 57 def when @when end |