[% content_only = 1 # no html wrappers %] [% extraction_type %] extraction worksheet [% # PROCESS dumper.tt dump = presentations %] [% # PROCESS dumper.tt dump = requests %]

[% site.html.back_button %]

[% extraction_type %] Extraction Worksheet

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

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

[% 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 # want to split specimens into new line for each: specimens = specimen_map.item(data.id).sample_code; # PROCESS dumper.tt dump = specimens; # force CHIM's to 3 lines: IF specimens.join.match('CHIM'); # is, or contains 'CHIM' specimens.push('CHIM','CHIM'); END; # PROCESS dumper.tt dump = specimens; FOREACH specimen IN specimens; # only show requested specimens: NEXT UNLESS request_specimen_map.item(data.id).${specimen}; %] [% END; END %]
Lane HMDS ref Name Date Sample Screened 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) %]

Tube order checking

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

[% INCLUDE user_section %]

Other / comments