<!-- BEGIN hmrn/data/myeloid.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() { 
	      $("#myeloid").validate({ 
            rules: { },
          });
        });
  </script>
    [% ELSE %]
	<script type="text/javascript">
		$(document).ready(function() {
			$("#myeloid").validationEngine()
		})
	</script>
    [% END %]
  
	<h4 class="indent">
        2. Myelodysplastic/myeloproliferative data:
		[% div_name = 'myeloidData'; INCLUDE site/snippets/toggleview.tt %]
	</h4>
	
	<div id="[% div_name %]" class="[% hmrn_data.category_has_data.myeloid.size
        || c.query.param('data_set') == 'myeloid' ? 'visible' : 'itemhidden' %]">

    <form method="post" name="myeloid" id="myeloid"
            action="[% app_url %]/hmrn_data/edit/[% data.id	%]/[% patient.id %]">
        <input type="hidden" name="data_set" value="myeloid" />
        
        [% IF error_mds_or_mpd %]
            <p class="error indent">require a full MPD or MDS data set (or both)</p>
        [% END %]
        
		<table class="indent">
			<tr>
				<td class="label">Splenomegaly:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'splenomegaly'
                        type  = 'myeloid'
                    %]
                    [% error_splenomegaly %]
				</td>
				<td class="label">Detected by:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'detection_spleen'
                        type  = 'myeloid'
                    %]
                    [% error_detection_spleen %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Hepatomegaly:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'hepatomegaly'
                        type  = 'myeloid'
                    %]
                    [% error_hepatomegaly %]
				</td>
				<td class="label">Detected by:</td>
				<td class="content">
                    [% INCLUDE build_select_field
                        name  = 'detection_liver'
                        type  = 'myeloid'
                    %]
                    [% error_detection_liver %]
				</td>
                <td class="grey borderless">[common]</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  = 'myeloid'
                        name  = 'wbc'
                        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  = 'myeloid'
                        name  = 'neutrophils'
                        size  = 4
                    %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
			
			<tr>
				<td class="label">Hb:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_hb
						units = 'g/dL'
                        type  = 'myeloid'
                        name  = 'hb'
                        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  = 'myeloid'
                        name  = 'monocytes'
                        size  = 4
                    %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
			
			<tr>
				<td class="label">PCV:</td>
				<td class="content">
                    [% INCLUDE build_text_field
						error = error_pcv
						units = '%'
                        type  = 'myeloid'
                        name  = 'pcv'
                        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  = 'myeloid'
                        name  = 'plts'
                        size  = 4
                    %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>

			<tr>
				<td class="label">Erythropoietin:</td>
				<td class="hmrnMPD">
                    [% INCLUDE build_select_field
                        name  = 'epo'
                        type  = 'myeloid'
                    %]
                    [% error_epo %]
				</td>
				<td class="label">Red-cell mass:</td>
				<td class="hmrnMPD">
                    [% INCLUDE build_select_field
                        name  = 'rcm'
                        type  = 'myeloid'
                    %]
                    [% error_rcm %]
				</td>
                <td class="grey borderless">[MPD data]</td>
			</tr>
            
			<tr>
				<td class="label">Karyotype:</td>
				<td class="hmrnMDS">
                    [% INCLUDE build_select_field
                        name  = 'karyotype'
                        type  = 'myeloid'
                    %]
                    [% error_karyotype %]
				</td>
				<td class="label">BM CD34:</td>
				<td class="hmrnMDS">
                    [% INCLUDE build_text_field
						error = error_cd34
						units = '%'
                        type  = 'myeloid'
                        name  = 'cd34'
                        size  = 3
                    %]
 				</td>
                <td class="grey borderless">[MDS data]</td>
			</tr>
			<tr>
				<td class="label">RBC dependent:</td>
				<td class="hmrnMDS">
                    [% INCLUDE build_select_field
                        name  = 'transfusion'
                        type  = 'myeloid'
                    %]
                    [% error_transfusion %]
				</td>
				<td class="label">Cytopenias:</td>
				<td class="hmrnMDS">
                    [% INCLUDE build_select_field
                        name  = 'cytopenias'
                        type  = 'myeloid'
                    %]
                    [% error_cytopenias %]
				</td>
                <td class="grey borderless">[MDS data]</td>
			</tr>
			[% INCLUDE hmrn_submit %]
		</table>
    </form>
    </div>
<!-- END hmrn/data/myeloid.tt -->
