[% content_only = 1 # no html wrappers %] [% extraction_type %] extraction worksheet [% # PROCESS dumper.tt dump = function_name %] [% # PROCESS dumper.tt dump = lab_section %] [% # PROCESS dumper.tt dump = extraction_type %] [% # PROCESS dumper.tt dump = presentations %] [% # PROCESS dumper.tt dump = request_specimen_map %] [% # FOREACH r IN requests; PROCESS dumper.tt dump = r.as_tree; END %] [% IF c.query.param('print_labels'); # load flash messages: PROCESS site/status.tt; # need to jump back 2 pages, as print-labels reuse fails: %]

[% ELSE; # extraction_type.match('DNA'); # now want labels for Trial RNA extraction USE url( app_url _ '/local_labels/print_xna_extraction_labels' ); %]

[% site.html.back_button %]

[%# ELSE # todo: comment out after above change %] [% END %]

[% lab_section %] section [% extraction_type %] extraction worksheet

Performed by: [% c.authen.username.upper %]

Date: [% USE date(format = '%d.%m.%Y @ %H:%M', locale = 'en_GB'); date.format %]

[% IF lab_section.match('trial') AND extraction_type.match('RNA'); have_nanodrop_result = 1 %] [% END %] [% i = 0; FOREACH data IN requests; # PROCESS dumper.tt dump = data.as_tree; patient = data.patient_case.patient; report = data.as_tree.request_report; # as_tree to prevent tt lookup if empty specimens = request_specimen_map.item(data.id); # PROCESS dumper.tt dump = specimens; # force CHIM's to 3 lines: IF specimens.grep('CHIM').size; # is, or contains 'CHIM': specimens.push('CHIM','CHIM'); END; # split specimens into new line for each: FOREACH specimen IN specimens; %] [% IF have_nanodrop_result %][% END %] [% END; END; WHILE i < 12; # make up to 12 rows: %] [% td = ''; td.repeat(6); td.repeat(1) IF have_nanodrop_result %] [% END %]
Lane HMDS ref Name Date Sample Screened
Nanodrop
Result (ng/µl)
Comments
[% i = i + 1; i %] [% PROCESS site/lab_number.tt want_url = 0 %] [% patient.last_name | upper %], [% format_firstname(patient) || patient.first_name | ucfirst %] [% data.created_at.strftime('%d.%m.%Y') %] [% specimen %] [% presentations.item(data.id) %]
[% i = i + 1; i %]

Tube order checking

Tube order and alignment must be checked at all transfer stages. Initial once done.

[% INCLUDE user_section %]

Other / comments