<!-- BEGIN worklist/snippets/row.tt -->
     [%
		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('%a %d.%b.%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>
        
        [% IF worklist_cols.item(lab_section.section_name).row_tt;
            tt = worklist_cols.item(lab_section.section_name).row_tt;
            PROCESS $tt # override for default cols %]
        [% ELSE %]
        <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 %]
		  
		  [% IF requesting_user_sections.item( c.param('id') ); # get user who requested it: 
				requester = requesting_user(request.id, entry.lab_test.field_label);
				IF requester; '['; requester.user.username | upper; ']'; END;
		  END %] 
        </td>
        [% END %]
        
        <td>
		  [% entry.status.description | upper %]
        </td>
        
		[% IF is_results_entry %]
		  <td align="right">
			<span>
			  [% PROCESS site/lab_number.tt want_url = 0 %]:
			</span>
			[% field_name = c.stash.individual_tests_only ?
				  'request_lab_test_result_id' : 'request_lab_test_id' %]
			  <input type="checkbox" style="vertical-align: middle"
				  name="[% field_name %]" value="[% entry.id %]" />
		  </td>
		[% ELSIF section_has_test_details %]
		<td>
          [% request_section_notes_map.item(request.id) %]
		</td>
		[% END %]
      </tr>
<!-- END worklist/snippets/row.tt -->