RSS Git Download  Clone
Raw Blame History
[% META title = 'Resources » Stats & Audit » Turnaround times by specimen' %]

<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = data %]
    
    <h2>Request turnaround times by specimen:</h2>
    
    [% INCLUDE audit/constraints.tt %]
    
    [% this_url = app_url _ '/audit/turnaround/specimen' %]
    
    <table class="indent">
        <tr>
            <th><a href="[% this_url %]?order_by=type">Specimen</a></th>
            <th><a href="[% this_url %]?order_by=totals">Total</a></td>
            <th colspan="2">
                <div>
                    <span class='acronym' title='week days, excluding public holdays'>
                        Delta days:
                    </span>
                </div>
                <div>
                    <a href="[% this_url %]?order_by=delta_report">Report</a> |
                    <a href="[% this_url %]?order_by=delta_auth">Auth'n</a>
                </div>
            </th>
            <th>
                <span class='acronym' title='report to authorisation difference'>
                    <a href="[% this_url %]?order_by=delta_r2a">R &#187; A</a>
                </span>
            </th>
        </tr>
        
        [%
            USE math = format('%.1f');

            FOREACH entry IN data; # array
                specimen = entry.type;
                delta_report = entry.delta_report / entry.count;
                delta_auth   = entry.delta_authorise / entry.count;
        %]
        <tr>
            <td align="right">[% specimen %]</td>
            <td>[% entry.count %]</td>
            <td align="center">[% math(delta_report) %]</td>
            <td align="center">[% math(delta_auth) %]</td>
            <td>+[% math(delta_auth - delta_report) %]</td>
        </tr>
        [% END %]
    </table>
    
    <p class="indent">[% site.html.back_button %]</p>
<!-- END [% template.name %] -->