@extends('layouts.app') @section('content')

Clinical Assessment Queue

Patients awaiting clinician assessment after triage
Waiting: {{ $encounters->count() }}
@php $criticalCount = $encounters ->where('triage_category', 'red') ->count(); @endphp @if($criticalCount > 0)
Critical: {{ $criticalCount }}
@endif
@if($encounters->isEmpty())
No patients waiting for clinical assessment
Triaged patients will appear here automatically
@else
@foreach($encounters as $index => $encounter) @php $category = strtolower( $encounter->triage_category ?? 'green' ); $bg = '#dcfce7'; $color = '#166534'; $label = 'GREEN'; if ($category === 'red') { $bg = '#fee2e2'; $color = '#991b1b'; $label = 'RED'; } elseif ($category === 'orange') { $bg = '#fed7aa'; $color = '#9a3412'; $label = 'ORANGE'; } elseif ($category === 'yellow') { $bg = '#fef3c7'; $color = '#92400e'; $label = 'YELLOW'; } @endphp @endforeach
Queue Patient Triage Vitals Visit Arrival Action
{{ $index + 1 }}
{{ $encounter->first_name }} {{ $encounter->last_name }}
{{ $encounter->patient_no }}
Encounter: {{ $encounter->encounter_no }}
@if(!empty($encounter->triage_notes))
{{ $encounter->triage_notes }}
@endif
{{ $label }}
@if($category === 'red')
EMERGENCY PRIORITY · Immediate clinician review required
@elseif($category === 'orange')
URGENT REVIEW · Patient should be assessed quickly
@endif
🌡 Temp: {{ $encounter->temperature ?? '—' }}
❤️ Pulse: {{ $encounter->pulse_rate ?? '—' }}
🫁 RR: {{ $encounter->respiratory_rate ?? '—' }}
🩸 SpO₂: {{ $encounter->spo2 ?? '—' }}
{{ $encounter->visit_no }}
{{ ucfirst( $encounter->visit_type ?? 'Medical' ) }}
{{ \Carbon\Carbon::parse( $encounter->created_at )->format('H:i') }}
{{ \Carbon\Carbon::parse( $encounter->created_at )->diffForHumans() }}
{{ $category === 'red' ? 'Review Urgently' : 'Start Assessment' }}
Consultation queue is automatically prioritized using triage severity classification. Red patients appear first for urgent clinician review, followed by orange, yellow and green categories.
@endif
@endsection