Class: HealthDataStandards::Export::CCDA
- Inherits:
-
Object
- Object
- HealthDataStandards::Export::CCDA
- Defined in:
- lib/health-data-standards/export/ccda.rb
Instance Method Summary collapse
- #export(patient) ⇒ Object
-
#initialize ⇒ CCDA
constructor
A new instance of CCDA.
Constructor Details
#initialize ⇒ CCDA
Returns a new instance of CCDA.
4 5 6 7 8 |
# File 'lib/health-data-standards/export/ccda.rb', line 4 def initialize template_helper = TemplateHelper.new('ccda', 'ccda') @rendering_context = RenderingContext.new @rendering_context.template_helper = template_helper end |
Instance Method Details
#export(patient) ⇒ Object
10 11 12 |
# File 'lib/health-data-standards/export/ccda.rb', line 10 def export(patient) @rendering_context.render(:template => 'show', :locals => {:patient => patient}) end |