Use short assessment labels on the ward board.
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:
isaacclad
2026-07-20 16:53:43 +00:00
co-authored by Cursor
parent 4c0dbc22d8
commit 5fd402c043
3 changed files with 28 additions and 10 deletions
@@ -14,6 +14,18 @@ class NursingAssessmentService
/** @var list<string> */
public const NURSING_PACK_CODES = ['news2', 'braden', 'morse', 'pain_nrs'];
/** Compact board labels — full names stay on the assessment form. */
public static function shortLabel(string $code): string
{
return match ($code) {
'news2' => 'NEWS2',
'braden' => 'Braden',
'morse' => 'Morse',
'pain_nrs' => 'Pain',
default => strtoupper(str_replace('_', ' ', $code)),
};
}
/**
* @return Collection<int, AssessmentTemplate>
*/