Sha256: 86aa40e0faf6461aa608981c5ed827574b177d3593b3f7ae9a5463ac785e55af
Contents?: true
Size: 1.11 KB
Versions: 13
Compression:
Stored size: 1.11 KB
Contents
module HealthDataStandards module Export class Cat3 def initialize template_helper = HealthDataStandards::Export::TemplateHelper.new('cat3', 'cat3') @rendering_context = HealthDataStandards::Export::RenderingContext.new @rendering_context.template_helper = template_helper @cat1_renderer = HealthDataStandards::Export::RenderingContext.new @cat1_renderer.template_helper = HealthDataStandards::Export::TemplateHelper.new('cat1', 'cat1') end def export(measures, effective_date, start_date, end_date, test_id=nil) results = {} measures.each do |measure| results[measure['hqmf_id']] = HealthDataStandards::CQM::QueryCache.aggregate_measure(measure['hqmf_id'], effective_date, test_id) end @rendering_context.render(:template => 'show', :locals => {:measures => measures, :start_date => start_date, :end_date => end_date, :cat1_renderer => @cat1_renderer, :results => results}) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems