RSS Git Download  Clone
Raw Blame History
<!-- BEGIN [% template.name %] -->
  [% META title = 'Worklist &raquo; Print FISH Worksheets' -%]

    [% # PROCESS dumper.tt dump = data %]
    
    [% BLOCK row;
        request = entry.request;
		patient = request.patient_case.patient;    
    %]
	  <tr>
        <td>[% loop.count %]</td>
        <td>
          [% data = request; PROCESS site/lab_number.tt want_url = 1;
            # expects request object 'data' %]
        </td>
        [% class = request_options_map.item(request.id).urgent ? 'red' : 'normal' %]
        <td class="[% class %]">
          [% patient.last_name   | upper %],
          [% patient.first_name  | ucfirst %]
          [% patient.middle_name | ucfirst %]
        </td>
		<td>[% request.created_at.strftime('%d.%m.%Y') %]</td>
        <td>[% specimen_map.item(request.id).sample_code.join(', ') %]</td>
		<td>
		    [% SET location = request.patient_case.referral_source.display_name %]
            [% PROCESS site/display_name.tt %]
		</td>
        <td>
          [% IF request.request_initial_screen %]
            [% request.request_initial_screen.screen.description | html %]
          [% ELSE %]
            [% site.html.grey_null %]
          [% END %]
		</td>
        [% class = request_options_map.item(request.id).doi ? 'red' : 'normal' %]
        <td class="[% class %]">
		  [% prefix = entry.lab_test.test_type.match('panel') ? 'P' : 'T' %]
		  [[% prefix %]] [% entry.lab_test.field_label %]
        </td>
        <td>
		  [% entry.status.description | upper %]
        </td>
        <td align="center">
            <input type="checkbox" name="request_id" value="[% request.id %]" />
        </td>
      </tr>
    [% END %]
    
    <p class="classname">[% site.html.back_button %]</p>
  
    <h3>Print FISH worksheets</h3>
    
    <form action="[% app_url %]/local_worklist_fish-worksheet" method="post"
        name="fish_worksheets" id="fish_worksheets"> 
    <table>
      <tr>
        <td class="borderless"></td>		
        <th>Lab No</th>
        <th>Name</th>
        <th>Date</th>
        <th>Sample</th>
        <th>Source</th>
		<th>Presentation</th>
		<th>Investigation</th>
		<th>Status</th>
		<th>Print</th>
      </tr>
      
      [% FOREACH entry IN data; # PROCESS dumper.tt dump = entry
        PROCESS row; END %]
    </table>
    
    <p class="indent">
      <input type="button" name="CheckAll" value="Select all"
        onClick="checkAll(document.fish_worksheets.request_id)">
      <input type="button" name="UnCheckAll" value="Clear all"
        onClick="uncheckAll(document.fish_worksheets.request_id)">
        [% site.html.submit %]
    </p>
    </form>
<!-- END [% template.name %] -->