Class: HQMF::PopulationCriteriaConverter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_measuresObject (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_criteriaObject



17
18
19
# File 'lib/hqmf-parser/converter/pass1/population_criteria_converter.rb', line 17

def population_criteria
  @population_criteria_by_key.values
end