Return doctors to the patient queue after completing a consultation.
Deploy Ladill Care / deploy (push) Successful in 1m6s
Deploy Ladill Care / deploy (push) Successful in 1m6s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user