Use a specialty dropdown when adding practitioners.
Deploy Ladill Care / deploy (push) Successful in 26s

Replace free-text specialty on practitioner and team-invite forms with a shared selectable list so clinicians pick a known specialty.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 17:39:29 +00:00
co-authored by Cursor
parent 2ac84faf73
commit 18c24077e3
8 changed files with 127 additions and 8 deletions
@@ -72,6 +72,7 @@ class MemberController extends Controller
'branches' => $branches,
'roles' => config('care.roles'),
'mailboxOptions' => $mailboxOptions,
'specialties' => Practitioner::specialtyOptions(),
]);
}
@@ -92,9 +93,13 @@ class MemberController extends Controller
],
'create_practitioner' => ['sometimes', 'boolean'],
'practitioner_name' => ['nullable', 'string', 'max:255'],
'specialty' => ['nullable', 'string', 'max:255'],
'specialty' => ['nullable', 'string', 'max:255', Rule::in(Practitioner::specialtyOptions())],
]);
if (($validated['specialty'] ?? '') === '') {
$validated['specialty'] = null;
}
if (! empty($validated['branch_id'])) {
$branch = Branch::owned($owner)->findOrFail($validated['branch_id']);
abort_unless($branch->organization_id === $organization->id, 404);