Keep consultation context on nested clinical pages and add Call again on patient queue cards.
Deploy Ladill Care / deploy (push) Successful in 1m7s
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:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user