Keep consultation context on nested clinical pages and add Call again on patient queue cards.
Deploy Ladill Care / deploy (push) Successful in 1m7s

Doctors can return to the active consultation from forms, lab, prescriptions, pathways, and bills; queue cards can re-announce called/serving tickets via the existing Queue recall bridge.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 17:48:34 +00:00
co-authored by Cursor
parent e73b39b678
commit 94e53d05bf
21 changed files with 615 additions and 30 deletions
@@ -10,6 +10,7 @@ use App\Models\Patient;
use App\Models\PatientPathway;
use App\Services\Care\CareFeatures;
use App\Services\Care\CarePermissions;
use App\Services\Care\ConsultationReturnContext;
use App\Services\Care\OrganizationResolver;
use App\Services\Care\PathwayService;
use Illuminate\Http\JsonResponse;
@@ -51,6 +52,7 @@ class PathwayController extends Controller
'catalog' => $catalog,
'canManage' => $canManage,
'statuses' => config('care.patient_pathway_statuses'),
'returnConsultation' => app(ConsultationReturnContext::class)->resolve($request, (int) $patient->id),
]);
}
@@ -91,8 +93,13 @@ class PathwayController extends Controller
],
);
$return = app(ConsultationReturnContext::class);
return redirect()
->route('care.pathways.index', $patient)
->route('care.pathways.index', array_filter([
'patient' => $patient,
...$return->routeQuery($request),
]))
->with('success', "Pathway “{$pathway->name}” activated.");
}