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 (95 percentile) by specimen:</h2>
    
    [% PROCESS site/date_constraints.tt
        func_name = 'get_page'
        target_url = app_url _ '/audit/turnaround/specimen/percentile'
        query_args = 'order_by=' _ c.query.param('order_by')
    %]

    <p class="indent title">[% title | upper %]</p>
    
    [% IF data.size %]
    <table class="indent">
        <caption></caption>
        <tr>
            <th>Specimen</th>
            <th>Total</td>
            <th colspan="2">
                <div>
                    <span class='acronym'
                          title='time from registration, in number of week days'>
                        Delta days:
                    </span>
                </div>
                <div>Report | Auth'n</div>
            </th>
            <th>
                <span class='acronym' title='report to authorisation difference'>
                    R &#187; A</span>
            </th>
        </tr>
        
        [%
            FOREACH entry IN data; # array
                specimen = entry.key;
                count = entry.value.count;
                delta_report = entry.value.delta_report;
                delta_auth = entry.value.delta_authorise;
       %]
        <tr class="[% count < 20 ? 'grey' : 'normal' %]">
            <td align="right">[% specimen %]</td>
            <td>[% count %]</td>
            <td align="center">[% delta_report %]</td>
            <td align="center">[% delta_auth %]</td>
            <td>+[% delta_auth - delta_report %]</td>
        </tr>
        [% END %]
    </table>
    [% ELSE %]
        <p class="info indent">no data for time period specified</p>
    [% END %]
    
    <p class="indent">[% site.html.back_button %]</p>
<!-- END [% template.name %] -->