Class: HQMF::PopulationCriteriaConverter
- Inherits:
-
Object
- Object
- HQMF::PopulationCriteriaConverter
- Defined in:
- lib/hqmf-parser/converter/pass1/population_criteria_converter.rb
Overview
Class for converting an HQMF 1.0 representation to an HQMF 2.0 representation
Instance Attribute Summary collapse
-
#sub_measures ⇒ Object
readonly
Returns the value of attribute sub_measures.
Instance Method Summary collapse
-
#initialize(doc, data_criteria_converter) ⇒ PopulationCriteriaConverter
constructor
A new instance of PopulationCriteriaConverter.
- #population_criteria ⇒ Object
Constructor Details
#initialize(doc, data_criteria_converter) ⇒ PopulationCriteriaConverter
Returns a new instance of PopulationCriteriaConverter.
7 8 9 10 11 12 13 14 15 |
# File 'lib/hqmf-parser/converter/pass1/population_criteria_converter.rb', line 7 def initialize(doc, data_criteria_converter) @doc = doc @data_criteria_converter = data_criteria_converter @population_criteria_by_id = {} @population_criteria_by_key = {} @population_reference = {} parse() build_sub_measures() end |
Instance Attribute Details
#sub_measures ⇒ Object (readonly)
Returns the value of attribute sub_measures.
5 6 7 |
# File 'lib/hqmf-parser/converter/pass1/population_criteria_converter.rb', line 5 def sub_measures @sub_measures end |
Instance Method Details
#population_criteria ⇒ Object
17 18 19 |
# File 'lib/hqmf-parser/converter/pass1/population_criteria_converter.rb', line 17 def population_criteria @population_criteria_by_key.values end |