[% content_only = 1 # no html wrappers %]
<!-- BEGIN [% component.name %] -->
<html>
<head>
<title>[% extraction_type %] extraction worksheet</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
font-size: smaller; font-family: verdana, sans-serif;
width: 80%;
margin: auto;
}
table { border-collapse: collapse }
th { background: #f5f5f5 }
td, th { border: solid 1px #c0c0c0; padding: 2px 5px }
h4 { text-decoration: underline }
.empty { width: 25% }
.indent { margin-left: 2em }
.bold { font-weight: bold }
.borderless { border: none }
.label { text-align: right }
@media print {
body { width: 100%; margin: 0 }
#back { display: none }
td, th, p, div { font-size: 7pt }
}
-->
</style>
</head>
<body>
[% # PROCESS dumper.tt dump = presentations %]
[% # PROCESS dumper.tt dump = requests %]
<p id="back">[% site.html.back_button %]</p>
<h2>[% extraction_type %] Extraction Worksheet</h2>
<div class="bold indent">
<p>Performed by: [% c.authen.username.upper %]</p>
<p>Date: [% USE date(format = '%d.%m.%Y @ %H:%M', locale = 'en_GB');
date.format %]</p>
</div>
<table>
<tr>
<th>Lane</th>
<th>HMDS ref</th>
<th>Name</th>
<th>Date</th>
<th>Sample</th>
<th>Screened</th>
<th>Comments</th>
</tr>
[% 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
%]
<tr>
<td align="right">[% loop.count %]</td>
<td>[% PROCESS site/lab_number.tt want_url = 0 %]</td>
<td>
[% patient.last_name | upper %],
[% format_firstname(patient) || patient.first_name | ucfirst %]
</td>
<td>
[% data.created_at.strftime('%d.%m.%Y') %]
</td>
<td>[% specimen_map.item(data.id).sample_code.join(', ') %]</td>
<td>[% presentations.item(data.id) %]</td>
<td class="empty"></td>
</tr>
[% END %]
</table>
<h4>Tube order checking</h4>
<p class="indent">Tube order and alignment must be checked at all transfer
stages. Initial once done.
</p>
[% INCLUDE user_section %]
<h4>Other / comments</h4>
</body>
</html>
<!-- END [% component.name %] -->