Class: HealthDataStandards::Export::Cat1

Inherits:
Object
  • Object
show all
Defined in:
lib/health-data-standards/export/cat_1.rb

Constant Summary collapse

@@vs_map =
nil

Instance Method Summary collapse

Constructor Details

#initializeCat1

Returns a new instance of Cat1.



4
5
6
7
8
9
# File 'lib/health-data-standards/export/cat_1.rb', line 4

def initialize
  template_helper = HealthDataStandards::Export::TemplateHelper.new('cat1', 'cat1')
  @rendering_context = HealthDataStandards::Export::RenderingContext.new
  @rendering_context.template_helper = template_helper
  @rendering_context.extensions = [HealthDataStandards::Export::Helper::Cat1ViewHelper]
end

Instance Method Details

#export(patient, measures, start_date, end_date, header = nil) ⇒ Object



12
13
14
15
# File 'lib/health-data-standards/export/cat_1.rb', line 12

def export(patient, measures, start_date, end_date, header=nil)
  @rendering_context.render(:template => 'show', :locals => {:patient => patient, :measures => measures,
                                          :start_date => start_date, :end_date => end_date, :header => header})
end