<!-- BEGIN hmrn/data/precursor.tt -->
[% # PROCESS dumper.tt dump = hmrn_data.precursor %]
[% IF not_using_validationEngine_jquery # then use 'basic' jquery val %]
<script type="text/javascript">
$(document).ready(function() {
$("#precursor").validate({
rules: { },
});
});
</script>
[% ELSE %]
<script type="text/javascript">
$(document).ready(function() {
$("#precursor").validationEngine()
})
</script>
[% END %]
<h4 class="indent">
1. Precursor cell data:
[% div_name = 'precursorData'; INCLUDE site/snippets/toggleview.tt %]
</h4>
<!--
<div id="[% div_name %]" class="[% hmrn_data.category_has_data.precursor.size
|| c.query.param('data_set') == 'precursor' ? 'visible' : 'itemhidden' %]">
-->
<div id="[% div_name %]" class="[% diagnostic_category_desc.match('Precursor cell')
|| hmrn_data.category_has_data_include_shared.precursor.size ? 'visible' : 'itemhidden' %]">
<form method="post" name="precursor" id="precursor"
action="[% app_url %]/hmrn_data/edit/[% data.id %]/[% patient.id %]">
<input type="hidden" name="data_set" value="precursor" />
<table class="indent">
<tr>
<td class="label">ECOG:</td>
<td class="content">
[% INCLUDE build_select_field
name = 'ecog'
type = 'precursor'
%]
[% error_ecog %]
</td>
<td class="label">Hb:</td>
<td class="content">
[% INCLUDE build_text_field
error = error_hb
units = 'g/dL'
type = 'precursor'
name = 'hb'
size = 4
%]
</td>
</tr>
<tr>
<td class="label">WBC:</td>
<td class="content">
[% INCLUDE build_text_field
units = 'x 10<sup>9</sup>/L'
error = error_wbc
type = 'precursor'
name = 'wbc'
size = 4
%]
</td>
<td class="label">Platelets:</td>
<td class="content">
[% INCLUDE build_text_field
units = 'x 10<sup>9</sup>/L'
error = error_plts
type = 'precursor'
name = 'plts'
size = 4
%]
</td>
</tr>
<tr>
<td class="label">Haematocrit vol.:</td>
<td class="content">
[% INCLUDE build_text_field
error = error_haematocrit_vol
units = '%'
type = 'precursor'
name = 'haematocrit_vol'
size = 4
%]
</td>
<td class="label">Neutrophils:</td>
<td class="content">
[% INCLUDE build_text_field
error = error_neutrophils
units = 'x 10<sup>9</sup>/L'
type = 'precursor'
name = 'neutrophils'
size = 4
%]
</td>
</tr>
<tr>
<td class="label">Lymphocytes:</td>
<td class="content">
[% INCLUDE build_text_field
units = 'x 10<sup>9</sup>/L'
error = error_lymphs
type = 'precursor'
name = 'lymphs'
size = 4
%]
</td>
<td class="label">Monocytes:</td>
<td class="content">
[% INCLUDE build_text_field
units = 'x 10<sup>9</sup>/L'
error = error_monocytes
type = 'precursor'
name = 'monocytes'
size = 4
%]
</td>
</tr>
[% IF hmrn_data.category_has_data_include_shared.precursor.size;
INCLUDE hmrn_submit delete_section = 'precursor';
ELSE; INCLUDE hmrn_submit; END %]
</table>
</form>
</div>
<!-- END hmrn/data/precursor.tt -->