RSS Git Download  Clone
Raw Blame History
<!-- BEGIN hmrn/data/lymphoid.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() { 
	      $("#lymphoid").validate({ 
            rules: { },
          });
        });
    </script>
    [% ELSE %]
	<script type="text/javascript">
		$(document).ready(function() {
			$("#lymphoid").validationEngine()
		})
	</script>
    [% END %]
  
	<h4 class="indent">
        3. Lymphoproliferative data:
		[% div_name = 'lymphoidData'; INCLUDE site/snippets/toggleview.tt %]
	</h4>

	<div id="[% div_name %]" class="[% hmrn_data.category_has_data.lymphoid.size
        || c.query.param('data_set') == 'lymphoid' ? 'visible' : 'itemhidden' %]">

    <form method="post" name="lymphoid" id="lymphoid"
            action="[% app_url %]/hmrn_data/edit/[% data.id %]/[% patient.id %]">
        <input type="hidden" name="data_set" value="lymphoid" />
        
        [% IF error_clls_or_non_cll %]
            <p class="error indent">require a CLL or non-CLL data set (or both)</p>
        [% END %]
        
		<table class="indent">
			<tr>
				<td class="label">ECOG:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'ecog'
                        type  = 'lymphoid'
                    %]
                    [% error_ecog %]
				</td>
				<td class="label">Hb:</td>
				<td class="content">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'hb'
                        size  = 4
                    %]
                    [% IF error_hb; error_hb;
                        ELSE; PROCESS build_defaults
                            type  = 'lymphoid'
                            name = 'hb'
                            units = 'g/dL';
                        END %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Bone marrow:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'bm'
                        type  = 'lymphoid'
                    %]
                    [% error_bm %]
				</td>
				<td class="label">WBC:</td>
				<td class="content">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'wbc'
                        size  = 4
                    %]
                    [% IF error_wbc; error_wbc;
                        ELSE; PROCESS build_defaults
                            name = 'wbc'
                            units = 'x 10<sup>9</sup>/L';
                        END %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Sweats:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'sweats'
                        type  = 'lymphoid'
                    %]
                    [% error_sweats %]
				</td>
				<td class="label">Lymphocytes:</td>
				<td class="content">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'lymphs'
                        size  = 4
                    %]
                    [% IF error_lymphs; error_lymphs;
                        ELSE; PROCESS build_defaults
                            name = 'lymphs'
                            units = 'x 10<sup>9</sup>/L';
                        END %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Fever:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'fever'
                        type  = 'lymphoid'
                    %]
                    [% error_fever %]
				</td>
				<td class="label">Albumin:</td>
				<td class="content">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'albumin'
                        size  = 4
                    %]
                    [% IF error_albumin; error_albumin;
                        ELSE; PROCESS build_defaults
                            name = 'albumin'
                            units = 'g/L';
                        END %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Weight loss:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'wt_loss'
                        type  = 'lymphoid'
                    %]
                    [% error_wt_loss %]
				</td>
				<td class="label">&beta;<sub>2</sub>m:</td>
				<td class="content">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'b2m'
                        size  = 4
                    %]
                    [% IF error_b2m; error_b2m;
                        ELSE; PROCESS build_defaults
                            name = 'b2m'
                            units = 'mg/L';
                        END %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">CT scan:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'ct'
                        type  = 'lymphoid'
                    %]
                    [% error_ct_scan %]
				</td>
				<td class="label">LDH:</td>
				<td class="content">
                    [% PROCESS build_select_field
                        name  = 'ldh'
                        type  = 'lymphoid'
                    %]
                    [% error_ldh %]
				</td>
                <td class="grey borderless">[common]</td>
			</tr>
            
			<tr>
				<td class="label">Binet stage:</td>
				<td class="hmrnCLL">
                    [% PROCESS build_select_field
                        name  = 'binet'
                        type  = 'lymphoid'
                    %]
                    [% error_binet %]
				</td>
				<td class="label">Platelets:</td>
				<td class="hmrnCLL">
                    [% PROCESS build_text_field
                        type  = 'lymphoid'
                        name  = 'plts'
                        size  = 4
                    %]
                    [% IF error_plts; error_plts;
                        ELSE; PROCESS build_defaults
                            name = 'plts'
                            units = 'x 10<sup>9</sup>/L';
                        END %]
				</td>
                <td class="grey borderless">[CLL data]</td>
			</tr>

			<tr>
				<td class="label">Ann-Arbor:</td>                
				<td class="hmrnLPD">
                    [% PROCESS build_select_field
                        name  = 'stage'
                        type  = 'lymphoid'
                    %]
                    [% error_stage %]
				</td>
                [% IF indices.ann_arbor %]
                    <td class="calculated">Calculated:</td>
                    <td class="content">
                        <input type="text" [% site.html.disabled %] size="4"
                            value="[% indices.ann_arbor %]" />
                    </td>
                [% ELSE %]
                    <td colspan="2" class="borderless"></td>
                [% END %]
                <td class="grey borderless">[non-CLL data]</td>
            </tr>
			[% INCLUDE hmrn_submit %]
		</table>
    </form>
    
    [% IF hmrn_data.params.indices.size;
        indices = hmrn_data.params.indices;
        labels = {
            ann_arbor => 'Ann-Arbor'
            binet     => 'Binet'
            ipi       => 'Age-adjusted IPI'
        }
    %]
    <div class="indent">
        <h4>Calculated prognostic indicators:</h4>
        <table class="indent">
            [% FOREACH entry IN indices; # PROCESS dumper.tt dump = entry; %]
            <tr>
                <td class="label">
                    [% label = labels.item(entry.key);
                        IF label; label; ELSE; entry.key | upper; END %]:
                </td>
                <td class="content">[% entry.value %]</td>
            </tr>
            [% END; label = '' # reset for involved_sites block %]
        </table>
    </div>
    [% END %]
    
    [% INCLUDE hmrn/data/staging.tt %]
    </div>
    
<!-- END hmrn/data/lymphoid.tt -->