[%- content_only = 1; # no html wrappers; called from record/default.tt -%] [% IF reports.size; # HTML print-run request: FOREACH r IN reports; # INCLUDE dumper.tt dump = r.keys; # create data structures expected by bhods.tt for single report: data = r.data; # PROCESS dumper.tt dump = data.as_tree; history = r.history; patient = r.data.patient_case.patient; specimen_map = r.specimen_map; %]
[% INCLUDE record/report/bhods.tt %]
[% END %] [% ELSE; INCLUDE record/report/bhods.tt; END %]