RSS Git Download  Clone
Raw Blame History
<!-- BEGIN [% component.name %] -->
  <p>
    <font size="+1"><i><u>Additional Information</u></i></font>
  </p>
  
  <strong>  
  <blockquote>
    <ul>
    [% IF request.outstanding_tests.size %]
      <li><font color="purple">
        there are further laboratory investigations pending</font></li>
    [% END %]
  
    [% IF request_errors.size;
      errs = [ ];
      FOREACH entry IN request_errors; # only want reportable errs:
        err_code = entry.error_code.code; uc_err_code = err_code | upper;
        NEXT UNLESS report_error_codes.item(err_code);
          err_str = report_error_codes.item(err_code).description
            _ ' [' _ uc_err_code _ ']';
        errs.push(err_str);
      END;
      IF errs.size;
        FOREACH err IN errs %]
			  <li><font color="red">[% err %]</font></li>
    [% END; END; END %]
  
    [% specimen = request.specimen_map.item(data.id).sample_code.join('');
      IF specimen.match('BMA') AND NOT specimen.match('PB') AND NOT data.request_trial; %]
      <li><font color="blue">
        please send a peripheral blood sample with all bone marrows</font></li>
    [% END %]

    [% IF is_amended_report %]
      <li><font color="tomato">
        this is an amended report which supercedes any previous report on this
        specimen</font></li>  
    [% END %]
  
      <li><font color="green">the definitive report is available online at
        [% c.cfg('settings').service_url %]</font></li>
    </ul>
    
  </blockquote>
  </strong>
<!-- END [% component.name %] -->