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
@@ -11,6 +11,7 @@ use App\Models\Assessment;
use App\Models\AssessmentTemplate;
use App\Services\Care\CareFeatures;
use App\Services\Care\CarePermissions;
use App\Services\Care\ConsultationReturnContext;
use App\Services\Care\ConsultationService;
use App\Services\Care\OrganizationResolver;
use App\Services\Care\PathwayService;
@@ -37,6 +38,8 @@ class ConsultationController extends Controller
'investigationRequests.investigationType', 'prescriptions.items',
]);
app(ConsultationReturnContext::class)->remember($consultation);
$permissions = app(CarePermissions::class);
$member = $this->member($request);
$organization = $this->organization($request);
@@ -235,6 +238,8 @@ class ConsultationController extends Controller
$this->ownerRef($request),
);
app(ConsultationReturnContext::class)->forget();
return redirect()->route('care.patients.show', $consultation->patient)
->with('success', 'Consultation completed.');
}