Class: HealthDataStandards::Export::GreenC32::Record
- Inherits:
-
Object
- Object
- HealthDataStandards::Export::GreenC32::Record
- Defined in:
- lib/health-data-standards/export/green_c32/record.rb
Instance Method Summary collapse
- #export(patient) ⇒ Object
-
#initialize ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize ⇒ Record
Returns a new instance of Record.
5 6 7 8 9 10 |
# File 'lib/health-data-standards/export/green_c32/record.rb', line 5 def initialize template_helper = TemplateHelper.new('gc32', 'gc32') @rendering_context = RenderingContext.new @rendering_context.template_helper = template_helper @rendering_context.extensions = [HealthDataStandards::Export::Helper::GC32ViewHelper] end |
Instance Method Details
#export(patient) ⇒ Object
12 13 14 |
# File 'lib/health-data-standards/export/green_c32/record.rb', line 12 def export(patient) @rendering_context.render(:template => 'record', :locals => {:record => patient}) end |