Expand specialty RBAC with dedicated specialist roles and support access.
Deploy Ladill Care / deploy (push) Successful in 41s
Deploy Ladill Care / deploy (push) Successful in 41s
Add cardiologist/ENT/derm/ophthalmology/ortho/podiatry/fertility roles and manage/refer/view matrices so GPs, nurses, lab, pharmacy, and reception get realistic module access beyond single-app specialists. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -55,7 +55,7 @@ class CareSpecialtyShellTest extends TestCase
|
||||
'owner_ref' => $this->owner->public_id,
|
||||
'organization_id' => $this->organization->id,
|
||||
'user_ref' => $this->owner->public_id,
|
||||
'role' => 'nurse',
|
||||
'role' => 'dentist',
|
||||
]);
|
||||
|
||||
$this->branch = Branch::create([
|
||||
@@ -99,6 +99,8 @@ class CareSpecialtyShellTest extends TestCase
|
||||
|
||||
public function test_specialty_shell_overview_and_sections_render(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'emergency_physician']);
|
||||
|
||||
app(SpecialtyModuleService::class)->activate(
|
||||
$this->organization,
|
||||
$this->owner->public_id,
|
||||
@@ -153,6 +155,8 @@ class CareSpecialtyShellTest extends TestCase
|
||||
|
||||
public function test_workspace_can_add_catalog_service_to_visit_bill(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'emergency_physician']);
|
||||
|
||||
app(SpecialtyModuleService::class)->activate(
|
||||
$this->organization,
|
||||
$this->owner->public_id,
|
||||
@@ -307,7 +311,7 @@ class CareSpecialtyShellTest extends TestCase
|
||||
|
||||
public function test_workspace_includes_timeline_tab_and_complete_action(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'dentist']);
|
||||
|
||||
app(SpecialtyModuleService::class)->activate(
|
||||
$this->organization,
|
||||
@@ -393,7 +397,7 @@ class CareSpecialtyShellTest extends TestCase
|
||||
|
||||
public function test_called_workspace_shows_call_again_until_session_starts(): void
|
||||
{
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'doctor']);
|
||||
Member::query()->where('user_ref', $this->owner->public_id)->update(['role' => 'dentist']);
|
||||
|
||||
app(SpecialtyModuleService::class)->activate(
|
||||
$this->organization,
|
||||
|
||||
Reference in New Issue
Block a user