@extends('hms.layout') @section('title','My patient queue') @section('content')

Live worklist, ordered by arrival or request time (oldest first). Refresh to see newly assigned work. These are in-app alerts, not push notifications.

@if($role==='nurse' || $role==='physician')

{{ $role==='nurse'?'Awaiting triage':'New arrivals ready for consultation' }} {{ $new->count() }}

@forelse($new as $a) @empty@endforelse
PatientArrivedAction
{{ ($patients[$a->patient_id]??null)?->first_name }} {{ ($patients[$a->patient_id]??null)?->last_name }}{{ $a->checked_in_at?->format('d M H:i')??'Pending' }} @if($role==='nurse')Record vitals @elseStart consultation@endif · Visit
Queue is empty.
@endif @if($role==='physician')

Returning from laboratory — results recorded {{ $returning->count() }}

Results are drafts and must be reviewed by the treating physician; this is not laboratory verification.

@forelse($returning as $e) @empty@endforelse
PatientConsultation openedAction
{{ ($patients[$e->patient_id]??null)?->first_name }} {{ ($patients[$e->patient_id]??null)?->last_name }}{{ $e->created_at->format('d M H:i') }}Review results
No returned results.
@endif @if($role==='laboratory')

Laboratory patients and tests {{ $labs->count() }}

@forelse($labs as $lab) @php($enc=$encounters[$lab->encounter_id]??null) @empty@endforelse
PatientTestRequestedStatusAction
{{ ($patients[$enc?->patient_id]??null)?->first_name }} {{ ($patients[$enc?->patient_id]??null)?->last_name }}{{ $lab->test_name }}{{ $lab->created_at->format('d M H:i') }}{{ str_replace('_',' ',$lab->status) }}Process test
Queue is empty.
@endif @endsection