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

  [% # 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' "Blocking\nout" "Microtomy"
      "H &amp; E\nstain" "Giemsa\nstain" 'Processing quality' 'QC' 'Complete' ];
  %]

  [% histology_staining_dfv_js %]
  
  <h3 class="header">Histology tinctorial staining</h3>

  [% IF dfv_errors # no mandatory fields for this worklist  %]
    <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/staining_update/[% c.param('id') %]"
    method="post" name="staining" id="staining" [% histology_staining_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>
          [% specimens.join(', ') %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'block out' %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'microtomy' %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'H & E stain' %]
        </td>
        <td align="center">
            [% INCLUDE status_display status = 'giemsa stain' %]
        </td>
        <td align="center">
            <table class="borderless">
                <tr>
                    <td><u>good</u></td>
                    <td><u>avg</u></td>
                    <td><u>poor</u></td>
                </tr>
                <tr>
                [% FOR opt IN ['good' 'average' 'poor'] %]
                    <td>
                        <input type="radio" name="haematoxylin_eosin" value="[% opt %]"
                            [% 'checked' IF results.haematoxylin_eosin == opt %] />
                    </td>
                [% END %]
                </tr>
            </table>
        </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/processing.tt -->