[% META title = 'Resources » Stats & Audit » Lab Tests Signed Off' %] [% # INCLUDE dumper.tt dump = lab_sections_map %] [% # INCLUDE dumper.tt dump = data %] [% # INCLUDE dumper.tt dump = title %]

Lab tests signed off[% IF title %] [[% title %]][% END %]:

Select lab section: [% site.html.submit %]

[% IF section_id; # need initial selection PROCESS site/date_constraints.tt func_name = 'get_page' target_url = app_url _ '/audit/lab_tests_sign_off/' _ section_id # optional restricted = { # too slow to allow these: no_constraint = 1, all_since = 1, }; END %] [% IF data.size; col_count = 0; # create table of tables: %] [% FOREACH entry IN data %] [% col_count = col_count + 1; '' UNLESS col_count % 6; # new row every 6 %] [% END; '' IF col_count % 6; # terminate row unless already have done %]
[% total = 0; # reset FOREACH result IN entry.value; # INCLUDE dumper.tt dump = result %] [% total = total + result.f; END %]
[% entry.key %]
[% result.user.upper %] [% result.f %]
Total[% total %]
[% END %]