Show nursing care on patient chart for floor nurses.
Deploy Ladill Care / deploy (push) Successful in 1m11s

Nurses without consult rights see unit placement, MAR, nursing assessments, and meds/labs instead of the GP consult/pathways toolkit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 16:24:55 +00:00
co-authored by Cursor
parent 2bfaa9af4a
commit d4b645d85b
3 changed files with 278 additions and 84 deletions
@@ -308,4 +308,53 @@ class CareMyShiftsAndNavPermissionsTest extends TestCase
->assertOk()
->assertSee('Open care unit');
}
public function test_nurse_patient_chart_shows_nursing_care_not_gp_clinical_toolkit(): void
{
$user = User::create([
'public_id' => 'nurse-chart',
'name' => 'Nurse Chart',
'email' => 'nurse-chart@example.com',
]);
Member::create([
'owner_ref' => $this->owner->public_id,
'organization_id' => $this->organization->id,
'user_ref' => $user->public_id,
'role' => 'nurse',
'branch_id' => $this->branch->id,
]);
$patient = \App\Models\Patient::create([
'uuid' => (string) \Illuminate\Support\Str::uuid(),
'owner_ref' => $this->owner->public_id,
'organization_id' => $this->organization->id,
'branch_id' => $this->branch->id,
'patient_number' => 'P-CHART-1',
'first_name' => 'Efua',
'last_name' => 'Owusu',
]);
\App\Models\Visit::create([
'owner_ref' => $this->owner->public_id,
'organization_id' => $this->organization->id,
'branch_id' => $this->branch->id,
'patient_id' => $patient->id,
'care_unit_id' => $this->unit->id,
'status' => \App\Models\Visit::STATUS_OPEN,
'checked_in_at' => now(),
'placed_at' => now(),
]);
$this->actingAs($user)
->get(route('care.patients.show', $patient))
->assertOk()
->assertSee('Visit &amp; nursing care', false)
->assertSee('On unit now')
->assertSee('Nursing assessments')
->assertSee('My care unit')
->assertDontSee('Visit &amp; clinical history', false)
->assertDontSee('Condition pathways')
->assertDontSee('Follow-up scores')
->assertDontSee('Start assessment');
}
}