Return doctors to the patient queue after completing a consultation.
Deploy Ladill Care / deploy (push) Successful in 1m6s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 18:57:45 +00:00
co-authored by Cursor
parent 986ec0155c
commit 5e8c082e02
3 changed files with 3 additions and 3 deletions
@@ -240,7 +240,7 @@ class ConsultationController extends Controller
app(ConsultationReturnContext::class)->forget();
return redirect()->route('care.patients.show', $consultation->patient)
return redirect()->route('care.queue.index')
->with('success', 'Consultation completed.');
}
+1 -1
View File
@@ -175,7 +175,7 @@ class CareAppointmentTest extends TestCase
$this->actingAs($this->user)
->post(route('care.consultations.complete', $consultation))
->assertRedirect(route('care.patients.show', $this->patient));
->assertRedirect(route('care.queue.index'));
$appointment->refresh();
$consultation->refresh();
@@ -218,7 +218,7 @@ class CareConsultationReturnContextTest extends TestCase
$this->actingAs($this->user)
->withSession([ConsultationReturnContext::SESSION_KEY => $this->consultation->uuid])
->post(route('care.consultations.complete', $this->consultation))
->assertRedirect(route('care.patients.show', $this->patient))
->assertRedirect(route('care.queue.index'))
->assertSessionMissing(ConsultationReturnContext::SESSION_KEY);
}
}