[% content_only = 1 # no html wrappers %] DNA/RNA stabilisation worksheet [% # PROCESS dumper.tt dump = requests %] [% # FOREACH rs IN result_summaries_map; PROCESS dumper.tt dump = rs; END %]

[% site.html.back_button %]

DNA/RNA stabilisation worksheet

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

[% c.authen.username | upper %] / [% date.format %]

[% # highlight if screened as (escape brackets): highlight_screens = [ 'CLL - pre-treatment / progressive disease' 'CLL trial presentation' 'TAP CLL - screening' 'Aplastic anaemia' 'CLEAR screening' 'FLAIR baseline' 'NCG PNH \(BM\)' 'PNH \(BM\)' ]; %] [% FOREACH entry IN requests; # INCLUDE dumper.tt dump = entry.as_tree; data = entry.request; # for lab_number.tt lab_test = entry.lab_test; patient = data.patient_case.patient; location = data.patient_case.referral_source.display_name; screened = data.request_initial_screen.screen.description; results = result_summaries_map.item(data.id); # INCLUDE dumper.tt dump = results; class = 'normal'; # but override if result summary matches # 'B-LPD, etc' or one of highlighted screens: IF results AND results.item('Flow cytometry').match('^B-LPD - CD5\+ non-CLL phenotype'); class = 'highlight-blue'; END; # unless class already set to highlight: UNLESS class.match('highlight-blue'); FOREACH s IN highlight_screens; # INCLUDE dumper.tt dump = s; IF screened.match(s); class = 'highlight-blue'; LAST; END; END; # INCLUDE dumper.tt dump = screened; END; %] [% END %]
LabRef Name Type Specimen Presentation Registered Location Comments Sample to lysis Transfer to eppendorf
[% INCLUDE site/lab_number.tt want_url = 1 %] [% patient.last_name | upper %], [% patient.first_name | ucfirst %] [% lab_test.field_label.remove(' extraction') %] [% specimen_map.item(data.id).sample_code.join(',') %] [% INCLUDE site/snippets/doi.tt IF request_options_map.item(data.id).doi %] [% screened %] [% data.created_at.strftime('%d.%b.%Y') %] [% INCLUDE site/display_name.tt %] [% %] [% %] [% %]
[% ELSE %]
No samples to stabilise
[% END %]