{{-- DTHospital - the report menu. Each card is hidden unless the signed in role can open what it points at, the same rule the sidebar uses. A menu of links that bounce reads as a broken application rather than as a restriction. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @php($may = fn ($p) => \App\Support\Permissions::allows($p))

Reports

Every figure below is worked out when you open the report. Nothing is stored as a running total, so none of it can drift out of step with the records underneath.

@if ($may('lab_test_view'))

Outstanding lab work

Tests requested and not yet reported, oldest first. A request with the bloods back and the culture still growing shows only the culture.

@endif @if ($may('view_pharmacy_reports'))

Drug usage

What was prescribed against what was actually dispensed, over a date range. The gap between the two columns is the part worth reading.

@endif
@if ($may('view_payment_reports'))

Debtors

Who owes money and for how long, aged into the usual buckets. Balances come from the payment rows, so a part paid invoice shows its remainder.

@endif @if ($may('bed_view'))

Bed occupancy

Occupancy per day, average length of stay and the split by ward. Counted from admissions rather than the bed status column.

@endif
@stop @section('script') @stop