Use short assessment labels on the ward board.
Deploy Ladill Care / deploy (push) Successful in 1m5s
Deploy Ladill Care / deploy (push) Successful in 1m5s
Full template names blew out headers and action buttons; show NEWS2/Braden/Morse/Pain with the full name on hover. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,12 +21,14 @@
|
||||
|
||||
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
|
||||
<table class="min-w-full text-sm">
|
||||
<thead class="bg-slate-50 text-left text-xs uppercase text-slate-500">
|
||||
<thead class="bg-slate-50 text-left text-xs uppercase tracking-wide text-slate-500">
|
||||
<tr>
|
||||
<th class="px-4 py-3">Patient</th>
|
||||
<th class="px-4 py-3">Latest vitals</th>
|
||||
@foreach ($templates as $template)
|
||||
<th class="px-4 py-3">{{ $template->name }}</th>
|
||||
<th class="px-4 py-3 whitespace-nowrap" title="{{ $template->name }}">
|
||||
{{ \App\Services\Care\NursingAssessmentService::shortLabel($template->code) }}
|
||||
</th>
|
||||
@endforeach
|
||||
<th class="px-4 py-3"></th>
|
||||
</tr>
|
||||
@@ -38,11 +40,11 @@
|
||||
$vitals = $row['vitals'];
|
||||
@endphp
|
||||
<tr>
|
||||
<td class="px-4 py-3 font-medium">
|
||||
<td class="px-4 py-3 font-medium whitespace-nowrap">
|
||||
{{ $row['patient']?->fullName() }}
|
||||
<div class="text-xs text-slate-400">{{ $row['bed']?->label ?? 'No bed' }}</div>
|
||||
<div class="text-xs font-normal text-slate-400">{{ $row['bed']?->label ?? 'No bed' }}</div>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-xs text-slate-600">
|
||||
<td class="px-4 py-3 text-xs text-slate-600 whitespace-nowrap">
|
||||
@if ($vitals)
|
||||
BP {{ $vitals->bp_systolic }}/{{ $vitals->bp_diastolic }}
|
||||
· P {{ $vitals->pulse }}
|
||||
@@ -54,7 +56,7 @@
|
||||
</td>
|
||||
@foreach ($templates as $template)
|
||||
@php $assessment = $row['assessments']->get($template->code); @endphp
|
||||
<td class="px-4 py-3">
|
||||
<td class="px-4 py-3 whitespace-nowrap">
|
||||
@if ($assessment)
|
||||
<a href="{{ route('care.assessments.show', $assessment) }}" class="text-sky-600 hover:text-sky-800">
|
||||
{{ $assessment->status === 'completed'
|
||||
@@ -68,12 +70,16 @@
|
||||
@endforeach
|
||||
<td class="px-4 py-3 text-right">
|
||||
@if ($canCapture && $engineEnabled)
|
||||
<div class="inline-flex flex-wrap justify-end gap-1">
|
||||
<div class="inline-flex flex-nowrap justify-end gap-1">
|
||||
@foreach ($templates as $template)
|
||||
<form method="POST" action="{{ route('care.care-units.assessments.start', [$unit, $visit]) }}">
|
||||
@csrf
|
||||
<input type="hidden" name="template_code" value="{{ $template->code }}">
|
||||
<button type="submit" class="rounded border border-slate-200 px-2 py-1 text-xs text-slate-700 hover:bg-slate-50">{{ $template->name }}</button>
|
||||
<button
|
||||
type="submit"
|
||||
title="{{ $template->name }}"
|
||||
class="rounded border border-slate-200 px-2 py-1 text-xs text-slate-700 hover:bg-slate-50"
|
||||
>{{ \App\Services\Care\NursingAssessmentService::shortLabel($template->code) }}</button>
|
||||
</form>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user