Show nursing care on patient chart for floor nurses.
Deploy Ladill Care / deploy (push) Successful in 1m11s
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:
@@ -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 & nursing care', false)
|
||||
->assertSee('On unit now')
|
||||
->assertSee('Nursing assessments')
|
||||
->assertSee('My care unit')
|
||||
->assertDontSee('Visit & clinical history', false)
|
||||
->assertDontSee('Condition pathways')
|
||||
->assertDontSee('Follow-up scores')
|
||||
->assertDontSee('Start assessment');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user