[% META title = 'Worklist » Print FISH Worksheets' -%] [% # PROCESS dumper.tt dump = data %] [% IF fish_custom_templates %] [% END %] [% BLOCK row; request = entry.request; patient = request.patient_case.patient; %] [% i = ( i || 0 ) + 1; i # can't do loop.count if using NEXT %] [% data = request; PROCESS site/lab_number.tt want_url = 1; # expects request object 'data' %] [% class = request_options_map.item(request.id).urgent ? 'red' : 'normal' %] [% patient.last_name | upper %], [% patient.first_name | ucfirst %] [% patient.middle_name | ucfirst %] [% request.created_at.strftime('%d.%m.%Y') %] [% specimen_map.item(request.id).sample_code.join(', ') %] [% INCLUDE site/snippets/doi.tt IF request_options_map.item(request.id).doi %] [% SET location = request.patient_case.referral_source.display_name %] [% PROCESS site/display_name.tt %] [% IF request.request_initial_screen %] [% request.request_initial_screen.screen.description | html %] [% ELSE %] [% site.html.grey_null %] [% END %] [% prefix = entry.lab_test.test_type.match('panel') ? 'P' : 'T' %] [[% prefix %]] [% entry.lab_test.field_label %] [% entry.status.description | upper %] [% END %]

[% site.html.back_button %]

Print FISH[% IF fish_custom_templates %] custom[%END%] worksheets

Restrict by status:

[% status = []; FOREACH entry IN data; status.push(entry.status.description) UNLESS status.grep(entry.status.description).size; END; FOREACH s IN status %]
[% s | upper %]
[% END %]

[% site.html.submit %]

[% IF fish_custom_templates %]

[% END %] [% FOREACH entry IN data; # PROCESS dumper.tt dump = entry IF c.query.param('restrict_by_status'); NEXT UNLESS c.query.param('status').grep(entry.status.description).size; END; PROCESS row; END %]
Lab No Name Date Sample Source Presentation Investigation Status Print

[% site.html.submit %]