Add My ward nurse station for bedside clinical work.
Deploy Ladill Care / deploy (push) Successful in 39s
Deploy Ladill Care / deploy (push) Successful in 39s
Floor nurses keep Nursing Services admin-only, but now get a My ward home keyed off today's roster or unit placement with patient lists and direct links to MAR, vitals/assessments, notes, and handovers. Care unit show and board crumbs open for station users so clinical pages are reachable without department admin rights. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,8 +2,29 @@
|
||||
<div class="space-y-6">
|
||||
<div class="flex flex-wrap items-start justify-between gap-4">
|
||||
<div>
|
||||
@php
|
||||
$member = auth()->user()
|
||||
? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user())
|
||||
: null;
|
||||
$permissions = app(\App\Services\Care\CarePermissions::class);
|
||||
$canAdminUnits = $permissions->can($member, 'admin.departments.view');
|
||||
$canStation = $permissions->can($member, 'nursing.station.view');
|
||||
$canManageUnit = $permissions->can($member, 'admin.departments.manage');
|
||||
$canMar = $permissions->can($member, 'mar.view');
|
||||
$canNotes = $permissions->can($member, 'nursing.notes.view');
|
||||
$canHandover = $permissions->can($member, 'nursing.handover.view');
|
||||
$canAssess = $permissions->can($member, 'nursing.assessments.view');
|
||||
$canPerf = $permissions->can($member, 'nursing.performance.view');
|
||||
$canRoster = $permissions->can($member, 'nursing.roster.view');
|
||||
@endphp
|
||||
<p class="text-sm text-slate-500">
|
||||
<a href="{{ route('care.care-units.index') }}" class="text-indigo-600 hover:text-indigo-800">Care units</a>
|
||||
@if ($canAdminUnits)
|
||||
<a href="{{ route('care.care-units.index') }}" class="text-indigo-600 hover:text-indigo-800">Care units</a>
|
||||
@elseif ($canStation)
|
||||
<a href="{{ route('care.nursing.station', ['unit' => $unit->id]) }}" class="text-indigo-600 hover:text-indigo-800">My ward</a>
|
||||
@else
|
||||
Care units
|
||||
@endif
|
||||
<span class="text-slate-300">/</span>
|
||||
{{ $unit->department?->name }}
|
||||
</p>
|
||||
@@ -18,19 +39,6 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@php
|
||||
$member = auth()->user()
|
||||
? app(\App\Services\Care\OrganizationResolver::class)->memberFor(auth()->user())
|
||||
: null;
|
||||
$permissions = app(\App\Services\Care\CarePermissions::class);
|
||||
$canManageUnit = $permissions->can($member, 'admin.departments.manage');
|
||||
$canMar = $permissions->can($member, 'mar.view');
|
||||
$canNotes = $permissions->can($member, 'nursing.notes.view');
|
||||
$canHandover = $permissions->can($member, 'nursing.handover.view');
|
||||
$canAssess = $permissions->can($member, 'nursing.assessments.view');
|
||||
$canPerf = $permissions->can($member, 'nursing.performance.view');
|
||||
$canRoster = $permissions->can($member, 'nursing.roster.view');
|
||||
@endphp
|
||||
@if ($canMar)
|
||||
<a href="{{ route('care.care-units.mar', $unit) }}" class="btn-primary">MAR board</a>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user