RSS Git Download  Clone
Raw Blame History
<!-- BEGIN worklist/local/histology/immunochemistry.tt -->
  [% META title = 'Worklist &raquo; Immunohistochemistry' -%]

  [% # PROCESS dumper.tt dump = request_data %]
  [% # PROCESS dumper.tt dump = specimens %]
  [% # PROCESS dumper.tt dump = lab_test_status %]
  [% # PROCESS dumper.tt dump = results %]
  
  [% # define some data structures:
    headers = [ 'LabNo' 'Name' 'Sample' 'Test' 'Microtomy' "ICC\nStaining" 'QC' 'Complete' ];
  %]

  [% histology_immunochemistry_dfv_js %]
  
  <h3 class="header">Immunohistochemistry</h3>

  [% IF dfv_errors %]
    <dl>
        <dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
        [% IF error_foo %]
            <dd>foo [% error_surname %]</dd>[% END %]
    </dl>
  [% END %]

  <form action="[% app_url %]/local_worklist_histology/immunochemistry_update/[% c.param('id') %]"
    method="post" name="immunochemistry" id="immunochemistry"
    [% histology_immunochemistry_onsubmit %]>

    <input type="hidden" name="lab_section_id" value="[% lab_section_id %]" />
    <input type="hidden" name="lab_test_id" value="[% lab_test_id %]" />
    
    [% INCLUDE worklist/snippets/data_entry.tt skip_status = 1 # just need users %]
    
    <p class="spacer"></p>

   [% BLOCK status_display; # displays tick or cross:
        IF lab_test_status.item(status); '<img src="/images/tick.gif" />';
        ELSE; "<input type='checkbox' name='${status}' value=1 />"; END;
      END;
    %]

    <table class="indent">
      <tr>
        [% FOREACH item IN headers %]
        <th scope="">[% item | html_line_break %]</th>
        [% END %]
        <td class="borderless"></td>
      </tr>

      <tr>
        <td>[% data = request_data; INCLUDE site/lab_number.tt want_url = 1 %]</td>
        <td>
            [% patient = request_data.patient_case.patient %]
          [% patient.last_name   | upper %],
          [% patient.first_name  | ucfirst %]
          [% patient.middle_name | ucfirst %]
        </td>
        <td align="center">
          [% specimens.join(', ') %]
        </td>
        <td>[% lab_test_name %]</td>
        <td align="center">
            [% INCLUDE status_display status = 'microtomy' %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'ICC staining' %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'QC' %]
        </td>
        <td align="center">
            <input type="checkbox" name="complete" value=1 />
        </td>
        <td>[% site.html.submit %]</td>
      </tr>
    </table>
  </form>
<!-- END worklist/local/histology/immunochemistry.tt -->