Gate Queue to doctors and land specialty modules on list indexes.
Deploy Ladill Care / deploy (push) Successful in 34s
Deploy Ladill Care / deploy (push) Successful in 34s
Hide the patient-flow Queue board from nurses, reception, and other non-doctors; specialty home routes now render the queue board list instead of auto-opening the first open visit. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -111,15 +111,13 @@ class CarePermissions
|
||||
}
|
||||
|
||||
/**
|
||||
* Dedicated patient-flow board (GP / specialty Queue homes).
|
||||
* Nurses keep specialty workspaces and vitals — not the call-next board.
|
||||
* Dedicated patient-flow board (GP Queue home / call-next board).
|
||||
* Doctors only — nurses, reception, pharmacy, and other floor roles use
|
||||
* specialty module lists and service queues instead.
|
||||
* Facility admins manage settings/staff and do not staff this board.
|
||||
*/
|
||||
public function canAccessPatientQueue(?Member $member): bool
|
||||
{
|
||||
if (! $this->handlesFloorCare($member)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $member->role !== 'nurse';
|
||||
return $member !== null && $member->role === 'doctor';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user