Class: HealthDataStandards::Export::GreenC32::Record

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

Instance Method Summary collapse

Constructor Details

#initializeRecord

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