Show assessment template names on the ward board.
Deploy Ladill Care / deploy (push) Successful in 1m42s

Buttons and headers were uppercasing internal codes (PAIN_NRS), which looked like a broken label.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 16:49:42 +00:00
co-authored by Cursor
parent 6ab9caae27
commit 4c0dbc22d8
2 changed files with 5 additions and 3 deletions
@@ -26,7 +26,7 @@
<th class="px-4 py-3">Patient</th> <th class="px-4 py-3">Patient</th>
<th class="px-4 py-3">Latest vitals</th> <th class="px-4 py-3">Latest vitals</th>
@foreach ($templates as $template) @foreach ($templates as $template)
<th class="px-4 py-3">{{ $template->code }}</th> <th class="px-4 py-3">{{ $template->name }}</th>
@endforeach @endforeach
<th class="px-4 py-3"></th> <th class="px-4 py-3"></th>
</tr> </tr>
@@ -73,7 +73,7 @@
<form method="POST" action="{{ route('care.care-units.assessments.start', [$unit, $visit]) }}"> <form method="POST" action="{{ route('care.care-units.assessments.start', [$unit, $visit]) }}">
@csrf @csrf
<input type="hidden" name="template_code" value="{{ $template->code }}"> <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">{{ strtoupper($template->code) }}</button> <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>
</form> </form>
@endforeach @endforeach
</div> </div>
@@ -146,7 +146,9 @@ class CareNursingAssessmentsAndPerformanceTest extends TestCase
->get(route('care.care-units.assessments', $this->unit)) ->get(route('care.care-units.assessments', $this->unit))
->assertOk() ->assertOk()
->assertSee('Ama') ->assertSee('Ama')
->assertSee('NEWS2'); ->assertSee('NEWS2 (Nursing early warning)')
->assertSee('Pain NRS (010)')
->assertDontSee('PAIN_NRS');
} }
public function test_record_visit_vitals_and_performance_dashboard(): void public function test_record_visit_vitals_and_performance_dashboard(): void