lib/health-data-standards/export/html.rb in health-data-standards-3.0.6 vs lib/health-data-standards/export/html.rb in health-data-standards-3.1.0

- old
+ new

@@ -4,13 +4,14 @@ def initialize template_helper = TemplateHelper.new('html', 'html') @rendering_context = RenderingContext.new @rendering_context.template_helper = template_helper @rendering_context.extensions = [HealthDataStandards::Export::Helper::HTMLViewHelper] - @code_map ||= self.build_code_map + @code_map = nil end def export(patient) + @code_map ||= self.build_code_map @rendering_context.render(:template => 'show', :locals => {:patient => patient, :code_map => @code_map}) end def build_code_map super_code_map = {}