Class: HealthDataStandards::CQM::Population
- Inherits:
-
Object
- Object
- HealthDataStandards::CQM::Population
- Defined in:
- lib/health-data-standards/models/cqm/aggregate_objects.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#stratifications ⇒ Object
Returns the value of attribute stratifications.
-
#supplemental_data ⇒ Object
Returns the value of attribute supplemental_data.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #add_stratification(id, value) ⇒ Object
-
#initialize ⇒ Population
constructor
A new instance of Population.
Constructor Details
#initialize ⇒ Population
Returns a new instance of Population.
56 57 58 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 56 def initialize @stratifications = [] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
54 55 56 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 54 def id @id end |
#stratifications ⇒ Object
Returns the value of attribute stratifications.
54 55 56 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 54 def stratifications @stratifications end |
#supplemental_data ⇒ Object
Returns the value of attribute supplemental_data.
54 55 56 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 54 def supplemental_data @supplemental_data end |
#type ⇒ Object
Returns the value of attribute type.
54 55 56 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 54 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
54 55 56 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 54 def value @value end |
Instance Method Details
#add_stratification(id, value) ⇒ Object
60 61 62 63 64 |
# File 'lib/health-data-standards/models/cqm/aggregate_objects.rb', line 60 def add_stratification(id,value) unless stratifications.find{|st| st.id == id} stratifications << Stratification.new(id,value) end end |