[% # META title = '' # using my.meta_title to allow processing dynamic vars: status_query = c.query.param('status_query').replace('_', ' ') | ucfirst; my.meta_title = "Worklist » Request Status » ${status_query}" -%] [% # PROCESS dumper.tt dump = request_options_map %] [% # PROCESS dumper.tt dump = incomplete_lab_tests %] [% status_query = c.query.param('status_query') %]
| Lab No | Name | Date | Sample | Source | [% UNLESS status_query == 'unscreened' %]Presentation | [% IF incomplete_lab_tests %]Incomplete tests | [% END %] [% END %]Delta | |
|---|---|---|---|---|---|---|---|---|
| [% loop.count %] | [% PROCESS site/lab_number.tt want_url = 1; # expects request object 'data' %] | [% class = request_options_map.item(data.id).urgent ? 'red' : 'normal' %][% patient.last_name | upper %], [% format_firstname(patient) || patient.first_name | ucfirst %] [% patient.middle_name | ucfirst %] | [% data.created_at.strftime('%d.%b.%Y') %] | [% specimen_map.item(data.id).sample_code.join(', ') %] [% INCLUDE site/snippets/doi.tt IF request_options_map.item(data.id).doi %] | [% SET location = data.patient_case.referral_source.display_name %] [% PROCESS site/display_name.tt %] | [% UNLESS status_query == 'unscreened' %][% IF data.request_initial_screen; data.request_initial_screen.screen.description; ELSE; site.html.grey_null; END; %] | [% IF incomplete_lab_tests; tests = incomplete_lab_tests.${data.id} %]
[% IF tests; FOREACH t IN tests %]
[% t.test %]
[% END %]
[% ELSE %]
[none]
[% END %]
|
[% END %]
[% END %]
[% duration_map.item(data.id) %] |
[% site.html.back_button %]