Class: HealthDataStandards::Export::Cat1
- Inherits:
-
Object
- Object
- HealthDataStandards::Export::Cat1
- Defined in:
- lib/health-data-standards/export/cat_1.rb
Constant Summary collapse
- @@vs_map =
nil
Instance Method Summary collapse
- #export(patient, measures, start_date, end_date) ⇒ Object
-
#initialize ⇒ Cat1
constructor
A new instance of Cat1.
Constructor Details
#initialize ⇒ Cat1
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) ⇒ Object
12 13 14 15 |
# File 'lib/health-data-standards/export/cat_1.rb', line 12 def export(patient, measures, start_date, end_date) @rendering_context.render(:template => 'show', :locals => {:patient => patient, :measures => measures, :start_date => start_date, :end_date => end_date}) end |