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:
@@ -138,6 +138,21 @@ class QueueController extends Controller
|
||||
return back()->with('success', 'Completed '.$ticket['ticket_number'].'.');
|
||||
}
|
||||
|
||||
public function recall(Request $request, Appointment $appointment): RedirectResponse
|
||||
{
|
||||
$this->authorizeAbility($request, 'consultations.manage');
|
||||
$this->authorizeAppointment($request, $appointment);
|
||||
$organization = $this->organization($request);
|
||||
abort_unless($this->queueBridge->isEnabled($organization), 404);
|
||||
|
||||
$ticket = $this->queueBridge->recall($organization, $appointment);
|
||||
if (! $ticket) {
|
||||
return back()->with('error', 'Could not call patient again.');
|
||||
}
|
||||
|
||||
return back()->with('success', 'Called again '.$ticket['ticket_number'].'.');
|
||||
}
|
||||
|
||||
public function start(Request $request, Appointment $appointment): RedirectResponse
|
||||
{
|
||||
$this->authorizeAbility($request, 'consultations.manage');
|
||||
|
||||
Reference in New Issue
Block a user