Class: HealthDataStandards::CQM::Population

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/models/cqm/aggregate_objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePopulation

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

#idObject

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

#stratificationsObject

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_dataObject

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

#typeObject

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

#valueObject

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