Sha256: 253dc1a4cf37a6e821e54aa7f5d603351eff30c7965a07ebd5c2cdd985cc2074
Contents?: true
Size: 1.2 KB
Versions: 13
Compression:
Stored size: 1.2 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, header, effective_date, start_date, end_date, filter=nil,test_id=nil) results = {} measures.each do |measure| results[measure['hqmf_id']] = HealthDataStandards::CQM::QueryCache.aggregate_measure(measure['hqmf_id'], effective_date, filter, 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, :header=>header}) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems