<!-- BEGIN [% template.name %] -->
[% META title = 'BCR ABL data' %]
<table>
<tr>
<th scope="col">LabNo</th>
<th scope="col">Name</th>
<th scope="col">ABL</th>
<th scope="col">BCR ABL</th>
</tr>
[% FOREACH entry IN data.keys.sort;
# PROCESS dumper.tt dump = data.item(entry).copy_number;
patient = data.item(entry).request_data.patient_case.patient;
ABL = data.item(entry).copy_number.ABL;
BCR_ABL = data.item(entry).copy_number.${'BCR ABL'};
%]
<tr>
<td>[% entry %]</td>
[% IF
patient.last_name != data.item(entry).sample_name;
class = 'red';
ELSIF data.item(entry).error;
class = 'warning';
ELSE;
class = 'normal';
END;
%]
<td class="[% class %]">
[% data.item(entry).sample_name | upper %]
[% IF class == 'red' %]
[[% patient.last_name | upper %]]
[% END %]
</td>
[% class = ABL < 10000 ? 'blue' : 'normal' %]
<td class="[% class %]">
[% ABL %]
</td>
<td>
[% BCR_ABL %]
</td>
<td>
[%
IF ABL < 100000;
'poor quality';
ELSIF BCR_ABL;
( BCR_ABL / ABL ) * 100;
ELSE; '<' _ 1 / ABL;
END;
%]
</td>
<td>
<input type="checkbox" name="foo" value="[% %]"
[% UNLESS class == "normal"; 'disabled'; END %] />
</td>
</tr>
[% END %]
</table>
<!-- END [% template.name %] -->