<!-- BEGIN [% component.name %] -->
  [%-
    # INCLUDE dumper.tt dump = report.as_tree;
    request_specimen = specimen_map.item(data.id);

    specimen_description = report.biopsy_site ||
        request_specimen.description.join(' & ').replace('^research','');

    IF report;
        'reported on '; specimen_description.lower.match('^[aeiou]') ? 'an ' : 'a ';
    END;

    '<span class="bold">';
        specimen_description.replace('\.$','').replace(';',' + ').html;
    '</span>';

    IF request_specimen.sample_code.join == 'CMP'; ' form ';
    ELSIF NOT specimen_description.match('block|biopsy'); ' specimen '; ELSE; ' '; END;

    IF has_optional.external_ref;
        external_ref = data.request_external_ref.external_reference;
        '['; IF NOT external_ref.lower.match('ref'); 'ref: '; END;
        external_ref | html; ']';
    END;

    IF report AND request_specimen.sample_code.join != 'CMP'; # ie not CMP alone
        ' of ' _ report.specimen_quality _ ' quality '; 
    END;

    IF report.specimen_date; # from request_report_view %] taken
        <span class="bold nowrap">[% report.specimen_date.strftime('%a %d.%b.%Y') %]</span>
        [% IF report.specimen_date.strftime('%H:%M').match('00:00'); '[time unknown]';
          ELSE; ' @ '; report.specimen_date.strftime('%H:%M'); END;
    END %]

    received <span class="bold nowrap">[% data.created_at.strftime('%a %d.%b.%Y')
    %]</span> @ [% data.created_at.strftime('%H:%M') %]
<!-- END [% component.name %] -->
