Route Care tickets to per-staff service points instead of shared branch queues.
Deploy Ladill Care / deploy (push) Successful in 1m40s
Deploy Ladill Care / deploy (push) Successful in 1m40s
Provision one consultation point per doctor (room + identity) and role-based points for pharmacy, lab, billing, and triage. Fixed-doctor appointments and walk-ins issue only to the assigned point; Call next respects that assignment and flags unresolved patients rather than random routing. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -246,10 +246,12 @@ class AppointmentController extends Controller
|
||||
*/
|
||||
protected function validatedWalkInData(Request $request): array
|
||||
{
|
||||
$queueOn = (bool) data_get($this->organization($request)->settings, 'queue_integration_enabled');
|
||||
|
||||
return $request->validate([
|
||||
'branch_id' => ['required', 'integer', 'exists:care_branches,id'],
|
||||
'patient_id' => ['required', 'integer', 'exists:care_patients,id'],
|
||||
'practitioner_id' => ['nullable', 'integer', 'exists:care_practitioners,id'],
|
||||
'practitioner_id' => [$queueOn ? 'required' : 'nullable', 'integer', 'exists:care_practitioners,id'],
|
||||
'department_id' => ['nullable', 'integer', 'exists:care_departments,id'],
|
||||
'reason' => ['nullable', 'string', 'max:1000'],
|
||||
'notes' => ['nullable', 'string', 'max:5000'],
|
||||
|
||||
Reference in New Issue
Block a user