<!-- BEGIN [% template.name %] -->
  [% META title = 'Resources &raquo; View Sysmex Log' -%]

    [% # PROCESS dumper.tt dump = data %]

  [% param_fields = [
        'wbc' 'rbc' 'hb' 'plt' 'hct' 'mcv' 'mch' 'mchc' 'lymph_percent' 'lymph'
        'mixed_percent' 'mixed' 'neutr_percent' 'neutr'
    ]
  %]
  
  [% IF data.size %]
    <h3 class="header">Sysmex log [[% data.size %]]</h3>
  
    <table class="indent">
      <tr>
          <td class="borderless"></td>
          <th>Date/Time</th>
          <th>LabNo/ID</th>
          <th>WBC</th>
          <th>RBC</th>
          <th>Hb</th>
          <th>Plt</th>
          <th>HCT</th>
          <th>MCV</th>
          <th>MCH</th>
          <th>MCHC</th>
          <th>Lym %</th>
          <th>Lym #</th>
          <th>Mix %</th>
          <th>Mix #</th>
          <th>Neu %</th>
          <th>Neu #</th>
      </tr>
      [% FOREACH entry IN data; # PROCESS dumper.tt dump = entry; %]
        <tr>
            <td>[% loop.count %]</td>
            <td>[% entry.datetime.replace('T', ' ') %]</td>
            <td>[% entry.id %]</td>
            [% FOREACH param IN param_fields %]
                <td>[% entry.${param} %]</td>           
            [% END %]
        </tr>
      [% END %]
    </table>
  [% ELSE %]
    <p class="error">No sysmex log data</p>
  [% END %]
<!-- END [% template.title %] -->
