Sha256: cc46c16f445fa15eca94b247e32eda6f1667e991cbba8ca3ac66506e2c8cf539
Contents?: true
Size: 1.18 KB
Versions: 16
Compression:
Stored size: 1.18 KB
Contents
module HealthDataStandards module Export class Cat3 def initialize(qrda_version = nil) template_helper = HealthDataStandards::Export::TemplateHelper.new('cat3', 'cat3', nil, qrda_version) @rendering_context = HealthDataStandards::Export::RenderingContext.new @rendering_context.template_helper = template_helper end @@most_recent_qrda_version = 'r2_1' @@valid_qrda_versions = ['r1', 'r1_1', 'r2', 'r2_1'] def export(measures, header, effective_date, start_date, end_date, qrda3_version=nil, 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, :results => results, :qrda3_version => qrda3_version, :header=>header}) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems