Embed Ladill Queue on role pages and add specialty modules under Settings.
Deploy Ladill Care / deploy (push) Successful in 53s
Deploy Ladill Care / deploy (push) Successful in 53s
Remove the standalone Service Queues nav so call-next/now-serving lives on clinical queue, appointments, pharmacy, lab, and specialty surfaces; Pro orgs can activate dentistry and related modules with branch departments and queue stubs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,8 @@ use App\Services\Care\AppointmentService;
|
||||
use App\Services\Care\CarePermissions;
|
||||
use App\Services\Care\OrganizationResolver;
|
||||
use App\Services\Care\ReportService;
|
||||
use App\Services\Care\ServiceQueuePresenter;
|
||||
use App\Services\Care\SpecialtyModuleService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\View\View;
|
||||
@@ -24,6 +26,8 @@ class DashboardController extends Controller
|
||||
protected ReportService $reports,
|
||||
protected CarePermissions $permissions,
|
||||
protected AppointmentService $appointments,
|
||||
protected ServiceQueuePresenter $serviceQueues,
|
||||
protected SpecialtyModuleService $specialtyModules,
|
||||
) {}
|
||||
|
||||
public function index(Request $request): View
|
||||
@@ -76,6 +80,12 @@ class DashboardController extends Controller
|
||||
? $this->patientQueueForMember($request, $organization->id, $owner, $member, $branchScope)
|
||||
: [collect(), collect(), null];
|
||||
|
||||
$serviceQueueContext = match ($member?->role) {
|
||||
'pharmacist' => 'pharmacy',
|
||||
'lab_technician' => 'laboratory',
|
||||
default => 'clinical',
|
||||
};
|
||||
|
||||
return view('care.dashboard', [
|
||||
'organization' => $organization,
|
||||
'member' => $member,
|
||||
@@ -93,6 +103,14 @@ class DashboardController extends Controller
|
||||
'patientQueue' => $queue,
|
||||
'inConsultation' => $inConsultation,
|
||||
'practitionerId' => $practitionerId,
|
||||
'serviceQueuePanel' => $this->serviceQueues->panel(
|
||||
$request,
|
||||
$organization,
|
||||
$member,
|
||||
$serviceQueueContext,
|
||||
$request->input('counter_uuid'),
|
||||
),
|
||||
'specialtyModules' => $this->specialtyModules->enabledModules($organization),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user