<!-- BEGIN worklist/local/histology_staining.tt -->
[% META title = 'Worklist » Histology Tinctorial Staining' -%]
[% # PROCESS dumper.tt dump = specimen_map %]
[% # PROCESS dumper.tt dump = requests %]
[% # PROCESS dumper.tt dump = lab_test_status_map %]
[% # PROCESS dumper.tt dump = request_options_map %]
[% # PROCESS dumper.tt dump = results_map %]
<h3 class="header">Histology tinctorial staining worklist</h3>
[% # define some data structures:
headers = [ 'LabNo' 'Name' 'Sample' "Blocking\nout" "Microtomy"
"H & E\nstain" "Giemsa\nstain" "Processing\nquality" 'QC' ];
%]
[% IF requests.size %]
<table class="indent">
<tr>
[% FOREACH item IN headers %]
<th scope="">[% item | html_line_break %]</th>
[% END %]
<td class="borderless"></td>
</tr>
[% BLOCK status_display; # displays tick or cross:
IF status_opts.item(status); '<img src="/images/tick.gif" />';
ELSE; '<span class="red">X</span>'; END;
END;
%]
[% FOREACH entry IN requests; # PROCESS dumper.tt dump = data.as_tree;
patient = entry.request.patient_case.patient;
data = entry.request; # for lab_number.tt
results = results_map.item(data.id); # PROCESS dumper.tt dump = results;
status_opts = lab_test_status_map.item(data.id); # PROCESS dumper.tt dump = status_opts;
%]
<tr>
<td>[% INCLUDE site/lab_number.tt want_url = 1 %] [% # data.id %]</td>
<td>
[% patient.last_name | upper %],
[% patient.first_name | ucfirst %] [% patient.middle_name | ucfirst %]
</td>
<td>
[% specimen_map.item(data.id).sample_code.join(', ') %]
[% INCLUDE site/snippets/doi.tt IF request_options_map.item(data.id).doi %]
</td>
<td align="center">
[% INCLUDE status_display status = 'block out' %]
</td>
<td align="center">
[% INCLUDE status_display status = 'microtomy' %]
</td>
<td align="center">
[% INCLUDE status_display status = 'H & E stain' %]
</td>
<td align="center">
[% INCLUDE status_display status = 'giemsa stain' %]
</td>
<td align="center">
<input type="text" size=5 value="[% results.haematoxylin_eosin %]"
[% site.html.readonly %] />
</td>
<td align="center">
[% INCLUDE status_display status = 'QC' %]
</td>
<td>
<a href="[% app_url %]/local_worklist_histology/staining/[% data.id %]">Edit</a>
</td>
</tr>
[% END %]
</table>
[% ELSE %]
<p class="info indent">No outstanding tinctorial staining tests</p>
[% END %]
<!-- END worklist/local/histology_staining.tt -->