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:
@@ -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>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user