<!-- BEGIN hmrn/data/plasmacell.tt -->
    [% # PROCESS dumper.tt dump = hmrn_data.precursor %]
    [% # PROCESS dumper.tt dump = hmrn_data.category_has_data.plasmacell.size %]

    [% IF not_using_validationEngine_jquery # then use 'basic' jquery val %]
	<script type="text/javascript">
	    $(document).ready(function() {
	      $("#plasmacell").validate({
            rules: { },
          });
        });
  </script>
    [% ELSE %]
	<script type="text/javascript">
		$(document).ready(function() {
			$("#plasmacell").validationEngine()
		})
	</script>
    [% END %]

	<h4 class="indent">
        4. Plasma cell data:
		[% div_name = 'plasmacellData'; INCLUDE site/snippets/toggleview.tt %]
	</h4>

<!--	<div id="[% div_name %]" class="[% hmrn_data.category_has_data.plasmacell.size
        || c.query.param('data_set') == 'plasmacell' ? 'visible' : 'itemhidden' %]">
-->
	<div id="[% div_name %]" class="[% diagnostic_category_desc.match('Plasma cell')
        || hmrn_data.category_has_data_include_shared.plasmacell.size ? 'visible' : 'itemhidden' %]">

    <form method="post" name="plasmacell" id="plasmacell"
            action="[% app_url %]/hmrn_data/edit/[% data.id %]/[% patient.id %]">
        <input type="hidden" name="data_set" value="plasmacell" />

		<table class="indent">
			<tr>
				<td class="label">Paraprotein:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'paraprotein'
                        type  = 'plasmacell'
                    %]
                    [% error_paraprotein %]
				</td>
				<td class="label">Paraprotein level:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_pp_level
                        type  = 'plasmacell'
                        name  = 'pp_level'
						units = 'g/L'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Urine FLC type:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        type  = 'plasmacell'
                        name  = 'bence_jones'
                    %]
                    [% error_bence_jones %]
				</td>
				<td class="label">Serum kappa:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_serum_kappa
                        type  = 'plasmacell'
                        name  = 'serum_kappa'
						units = 'mg/L'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Serum FLC type:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        type  = 'plasmacell'
                        name  = 'serum_flc'
                    %]
                    [% error_serum_flc %]
				</td>
				<td class="label">Serum lambda:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_serum_lambda
                        type  = 'plasmacell'
                        name  = 'serum_lambda'
						units = 'mg/L'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Bone disease:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'bone_disease'
                        type  = 'plasmacell'
                    %]
                    [% error_bone_disease %]
				</td>
				<td class="label">Kappa:Lambda ratio:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_kappa_lambda_ratio
						units = ''
                        type  = 'plasmacell'
                        name  = 'kappa_lambda_ratio'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Bone lesions:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'bone_lesions'
                        type  = 'plasmacell'
                    %]
                    [% error_bone_lesions %]
				</td>
				<td class="label">&beta;<sub>2</sub>m:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_b2m
                        type  = 'plasmacell'
                        name  = 'b2m'
						units = 'mg/L'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">MRI scan:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'mri'
                        type  = 'plasmacell'
                    %]
                    [% error_mri %]
				</td>
				<td class="label">Creatinine:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_creatinine
						units = '&micro;mol/L'
                        type  = 'plasmacell'
                        name  = 'creatinine'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Skeletal survey:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'skeletal_survey'
                        type  = 'plasmacell'
                    %]
                    [% error_skeletal_survey %]
				</td>
				<td class="label">Hb:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_hb
                        type  = 'plasmacell'
						units = 'g/L'
                        name  = 'hb'
                        size  = 3
                    %]
				</td>
			</tr>

			<tr>
				<td class="label">Immunoglobulins:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'igs'
                        type  = 'plasmacell'
                    %]
                    [% error_igs %]
				</td>
				<td class="label">Albumin:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_albumin
                        type  = 'plasmacell'
                        name  = 'albumin'
						units = 'g/L'
                        size  = 3
                    %]
				</td>

            </tr>

            <tr>
                <td class="label">ECOG:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'ecog'
                        type  = 'plasmacell'
                    %]
                    [% error_ecog %]
				</td>
				<td class="label">Calcium:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_calcium
						units = 'mmol/L'
                        type  = 'plasmacell'
                        name  = 'calcium'
                        size  = 3
                    %]
				</td>
            </tr>

            <tr>
                <td class="label">Platelets:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_plts
						units = '10<sup>9</sup>/L'
                        type  = 'plasmacell'
                        name  = 'plts'
                        size  = 3
                    %]
				</td>
                <td class="label">WBC:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_wbc
						units = '10<sup>9</sup>/L'
                        type  = 'plasmacell'
                        name  = 'wbc'
                        size  = 3
                    %]
				</td>
            </tr>

            <tr>
                <td class="label">Neutrophils:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_neutrophils
						units = 'x 10<sup>9</sup>/L'
                        type  = 'plasmacell'
                        name  = 'neutrophils'
                        size  = 3
                    %]
				</td>
				<td class="label">PCV:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_pcv
						units = '%'
                        type  = 'plasmacell'
                        name  = 'pcv'
                        size  = 4
                    %]
				</td> 
				<!-- Removed HCV for PCV instead.....
					<td class="label">Haematocrit vol.:</td>
					<td class="content">
						[% INCLUDE build_text_field
							error = error_haematocrit_vol
							units = '%'
							type  = 'plasmacell'
							name  = 'haematocrit_vol'
							size  = 3
						%]
					</td>
				-->
            </tr>

            <tr>
                <td class="label">Monocytes:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						units = 'x 10<sup>9</sup>/L'
						error = error_monocytes
                        type  = 'plasmacell'
                        name  = 'monocytes'
                        size  = 3
                    %]
				</td>
                <td class="label">Lymphocytes:</td>
				<td class="content">
                    [% INCLUDE build_text_field
                        units = 'x 10<sup>9</sup>/L'
                        error = error_lymphs
                        type  = 'plasmacell'
                        name  = 'lymphs'
                        size  = 3
                    %]
				</td>
            </tr>

			[% IF hmrn_data.category_has_data_include_shared.plasmacell.size;
                    INCLUDE hmrn_submit delete_section = 'plasmacell';
                ELSE; INCLUDE hmrn_submit; END %]
		</table>
    </form>
    </div>
<!-- END hmrn/data/plasmacell.tt -->
