Allow explicit multi-branch practitioner assignment for telemedicine.
Deploy Ladill Care / deploy (push) Successful in 1m29s

Replace optional “All branches” with required branch checkboxes; doctors may switch only among assigned sites, never org-wide by default.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 08:50:03 +00:00
co-authored by Cursor
parent d643687335
commit 899b08179e
17 changed files with 478 additions and 103 deletions
@@ -77,6 +77,7 @@ class CareStaffTenantScopeTest extends TestCase
'name' => 'Demo Pro Doctor',
'is_active' => true,
]);
$mine->syncAssignedBranches([$branch->id]);
$other = Practitioner::create([
'owner_ref' => $owner->public_id,
@@ -85,6 +86,7 @@ class CareStaffTenantScopeTest extends TestCase
'name' => 'Other Doctor',
'is_active' => true,
]);
$other->syncAssignedBranches([$branch->id]);
$assignedPatient = Patient::create([
'uuid' => (string) \Illuminate\Support\Str::uuid(),