Include checked-in clinic visits on outpatient nursing boards.
Deploy Ladill Care / deploy (push) Successful in 2m12s
Deploy Ladill Care / deploy (push) Successful in 2m12s
OPD/service units list open department appointments without manual place; nursing actions soft-place the visit onto the unit. Inpatient wards stay placement-only. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -69,9 +69,18 @@
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
<div>
|
||||
<h2 class="text-base font-semibold text-slate-900">Patients on this unit</h2>
|
||||
<p class="text-sm text-slate-500">Active visit placements — open MAR, notes, and handovers from the actions above.</p>
|
||||
<p class="text-sm text-slate-500">
|
||||
@if ($isClinicUnit ?? false)
|
||||
Checked-in clinic visits for this department appear here automatically. Nursing actions attach them to the unit.
|
||||
@else
|
||||
Active visit placements — open MAR, notes, and handovers from the actions above.
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-sm font-medium text-slate-700">{{ $placedVisits->count() }} placed</p>
|
||||
<p class="text-sm font-medium text-slate-700">
|
||||
{{ $placedVisits->count() }}
|
||||
{{ ($isClinicUnit ?? false) ? 'in clinic' : 'placed' }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 overflow-x-auto">
|
||||
@@ -80,7 +89,7 @@
|
||||
<tr>
|
||||
<th class="pb-2 pr-4">Patient</th>
|
||||
<th class="pb-2 pr-4">Bed</th>
|
||||
<th class="pb-2 pr-4">Placed</th>
|
||||
<th class="pb-2 pr-4">{{ ($isClinicUnit ?? false) ? 'Checked in' : 'Placed' }}</th>
|
||||
<th class="pb-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -92,14 +101,19 @@
|
||||
@if ($visit->patient?->patient_number)
|
||||
<span class="text-xs text-slate-400">{{ $visit->patient->patient_number }}</span>
|
||||
@endif
|
||||
@if (($isClinicUnit ?? false) && $visit->care_unit_id === null)
|
||||
<span class="ml-1 rounded bg-amber-50 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-amber-800">Clinic</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="py-3 pr-4">{{ $visit->bed?->label ?? '—' }}</td>
|
||||
<td class="py-3 pr-4 whitespace-nowrap">{{ $visit->placed_at?->format('d M Y H:i') ?? '—' }}</td>
|
||||
<td class="py-3 pr-4 whitespace-nowrap">
|
||||
{{ ($visit->placed_at ?? $visit->checked_in_at)?->format('d M Y H:i') ?? '—' }}
|
||||
</td>
|
||||
<td class="py-3 text-right whitespace-nowrap">
|
||||
@if ($canMar ?? false)
|
||||
<a href="{{ route('care.visits.mar', $visit) }}" class="mr-2 text-indigo-600 hover:text-indigo-800">MAR</a>
|
||||
@endif
|
||||
@if ($canPlace)
|
||||
@if ($canPlace && $visit->care_unit_id)
|
||||
<form method="POST" action="{{ route('care.visits.placement.destroy', $visit) }}" class="inline" onsubmit="return confirm('Discharge placement and free the bed?')">
|
||||
@csrf @method('DELETE')
|
||||
<button type="submit" class="text-red-600 hover:text-red-800">Discharge bed</button>
|
||||
@@ -108,7 +122,15 @@
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="4" class="py-4 text-slate-500">No patients placed on this unit.</td></tr>
|
||||
<tr>
|
||||
<td colspan="4" class="py-4 text-slate-500">
|
||||
@if ($isClinicUnit ?? false)
|
||||
No checked-in clinic visits for this department right now.
|
||||
@else
|
||||
No patients placed on this unit.
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -8,7 +8,13 @@
|
||||
Nursing assessments
|
||||
</p>
|
||||
<h1 class="mt-1 text-2xl font-semibold text-slate-900">Ward assessment board</h1>
|
||||
<p class="mt-1 text-sm text-slate-500">NEWS2, Braden, Morse, pain, and visit vitals for placed patients.</p>
|
||||
<p class="mt-1 text-sm text-slate-500">
|
||||
@if (in_array($unit->kind, ['outpatient', 'service'], true))
|
||||
NEWS2, Braden, Morse, pain, and visit vitals for checked-in clinic patients.
|
||||
@else
|
||||
NEWS2, Braden, Morse, pain, and visit vitals for placed patients.
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
<a href="{{ route('care.care-units.performance', $unit) }}" class="btn-secondary">Performance</a>
|
||||
</div>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
<tr>
|
||||
<th class="pb-2 pr-4">Patient</th>
|
||||
<th class="pb-2 pr-4">Bed</th>
|
||||
<th class="pb-2 pr-4">Placed</th>
|
||||
<th class="pb-2 pr-4">{{ in_array($unit->kind, ['outpatient', 'service'], true) ? 'In clinic' : 'Placed' }}</th>
|
||||
<th class="pb-2 text-right">Chart</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -118,7 +118,7 @@
|
||||
</td>
|
||||
<td class="py-3 pr-4 text-slate-600">{{ $visit->bed?->label ?? '—' }}</td>
|
||||
<td class="py-3 pr-4 whitespace-nowrap text-slate-500">
|
||||
{{ $visit->placed_at?->format('d M H:i') ?? '—' }}
|
||||
{{ ($visit->placed_at ?? $visit->checked_in_at)?->format('d M H:i') ?? '—' }}
|
||||
</td>
|
||||
<td class="py-3 text-right whitespace-nowrap">
|
||||
@if ($canMar)
|
||||
@@ -135,11 +135,12 @@
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="4" class="py-10 text-center text-slate-500">
|
||||
No patients placed on this unit yet.
|
||||
@if ($canServicesHub)
|
||||
Placements are managed from the care unit board.
|
||||
@if (in_array($unit->kind, ['outpatient', 'service'], true))
|
||||
No checked-in clinic patients for this department right now.
|
||||
@elseif ($canServicesHub)
|
||||
No patients placed on this unit yet. Placements are managed from the care unit board.
|
||||
@else
|
||||
Ask a charge nurse to place patients on this unit.
|
||||
No patients placed on this unit yet. Ask a charge nurse to place patients on this unit.
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user