Consolidate consultation and specialty actions into a sticky panel.
Deploy Ladill Care / deploy (push) Successful in 35s

Desktop uses a right sticky Actions column; mobile uses a FAB above the nav that opens a bottomsheet. Request investigations moves into a modal/sheet, and Call next is available on the consultation panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 14:38:09 +00:00
co-authored by Cursor
parent f138ea598a
commit 2b3eed8f84
8 changed files with 343 additions and 139 deletions
@@ -10,8 +10,11 @@ use App\Models\Consultation;
use App\Models\InvestigationType;
use App\Models\Practitioner;
use App\Services\Care\AssessmentService;
use App\Services\Care\BranchContext;
use App\Services\Care\CareFeatures;
use App\Services\Care\CarePermissions;
use App\Services\Care\CareQueueBridge;
use App\Services\Care\CareQueueContexts;
use App\Services\Care\ConsultationReturnContext;
use App\Services\Care\ConsultationService;
use App\Services\Care\OrganizationResolver;
@@ -170,6 +173,24 @@ class ConsultationController extends Controller
->orderBy('name')
->get();
$queueIntegration = ['enabled' => false];
$queueBranchId = null;
$queueBridge = app(CareQueueBridge::class);
if ($permissions->handlesFloorCare($member) && $queueBridge->isEnabled($organization)) {
$queueBranchId = app(BranchContext::class)->resolve($request, $organization, $member)
?: (int) ($consultation->practitioner?->branch_id
?: $consultation->visit?->branch_id
?: $consultation->appointment?->branch_id
?: 0);
if ($queueBranchId > 0) {
$queueIntegration = $queueBridge->listMeta(
$organization,
CareQueueContexts::CONSULTATION,
$queueBranchId,
);
}
}
return view('care.consultations.show', [
'consultation' => $consultation,
'practitioners' => $practitioners,
@@ -193,6 +214,8 @@ class ConsultationController extends Controller
'pathwaySuggestions' => $pathwaySuggestions,
'activePathways' => $activePathways,
'pathwayInstruments' => $pathwayInstruments ?? collect(),
'queueIntegration' => $queueIntegration,
'queueBranchId' => $queueBranchId,
]);
}