Clarify patient vs nurse unit placement on nursing charts.
Deploy Ladill Care / deploy (push) Successful in 55s
Deploy Ladill Care / deploy (push) Successful in 55s
The empty state referred to the patient but read like the nurse was unassigned; show duty units and patient-specific copy instead. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -107,9 +107,12 @@
|
||||
@if (($isNurseStation ?? false) && ! ($canConsult ?? false))
|
||||
@if ($activePlacedVisit ?? null)
|
||||
<div class="rounded-xl border border-teal-100 bg-teal-50/60 px-3 py-3">
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-teal-800">On unit now</p>
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-teal-800">Patient on unit</p>
|
||||
<p class="mt-1 font-medium text-slate-900">
|
||||
{{ $activePlacedVisit->careUnit?->name ?? 'Care unit' }}
|
||||
@if ($activePlacedVisit->careUnit?->department?->branch)
|
||||
· {{ $activePlacedVisit->careUnit->department->branch->name }}
|
||||
@endif
|
||||
@if ($activePlacedVisit->bed)
|
||||
· Bed {{ $activePlacedVisit->bed->label }}
|
||||
@endif
|
||||
@@ -130,14 +133,34 @@
|
||||
@if ($canViewMar ?? false)
|
||||
<a href="{{ route('care.visits.mar', $activePlacedVisit) }}" class="text-sm font-medium text-teal-700 hover:text-teal-900">MAR chart</a>
|
||||
@endif
|
||||
<a href="{{ route('care.care-units.assessments', $activePlacedVisit->careUnit) }}" class="text-sm font-medium text-teal-700 hover:text-teal-900">Vitals & assess</a>
|
||||
<a href="{{ route('care.care-units.notes', $activePlacedVisit->careUnit) }}" class="text-sm font-medium text-teal-700 hover:text-teal-900">Nursing notes</a>
|
||||
@if ($activePlacedVisit->careUnit)
|
||||
<a href="{{ route('care.care-units.assessments', $activePlacedVisit->careUnit) }}" class="text-sm font-medium text-teal-700 hover:text-teal-900">Vitals & assess</a>
|
||||
<a href="{{ route('care.care-units.notes', $activePlacedVisit->careUnit) }}" class="text-sm font-medium text-teal-700 hover:text-teal-900">Nursing notes</a>
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
@else
|
||||
<div class="rounded-xl border border-dashed border-slate-200 px-3 py-3 text-slate-500">
|
||||
Not placed on a care unit right now.
|
||||
<a href="{{ route('care.nursing.station') }}" class="ml-1 font-medium text-indigo-600 hover:text-indigo-800">My care unit</a>
|
||||
<div class="rounded-xl border border-dashed border-slate-200 px-3 py-3 text-slate-600">
|
||||
<p class="font-medium text-slate-800">This patient is not on a care unit right now.</p>
|
||||
@if (($nurseDutyUnits ?? collect())->isNotEmpty())
|
||||
<p class="mt-1 text-sm text-slate-500">
|
||||
You are on duty at
|
||||
{{ $nurseDutyUnits->pluck('name')->join(', ') }} —
|
||||
this chart is about the patient’s placement, not yours.
|
||||
</p>
|
||||
<p class="mt-2 flex flex-wrap gap-3">
|
||||
@foreach ($nurseDutyUnits as $dutyUnit)
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $dutyUnit->id]) }}" class="text-sm font-medium text-indigo-600 hover:text-indigo-800">
|
||||
Open {{ $dutyUnit->name }}
|
||||
</a>
|
||||
@endforeach
|
||||
</p>
|
||||
@else
|
||||
<p class="mt-1 text-sm text-slate-500">
|
||||
Ask a charge nurse to place them, or open
|
||||
<a href="{{ route('care.nursing.station') }}" class="font-medium text-indigo-600 hover:text-indigo-800">My care unit</a>.
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user