Replace ambulance Call next queue with an EMS dispatch board.
Deploy Ladill Care / deploy (push) Successful in 35s
Deploy Ladill Care / deploy (push) Successful in 35s
Home columns follow New call → Dispatched → On scene → Transport → Handover; walk-ins land as New call and Call next is disabled for this module. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -297,9 +297,15 @@ class AppointmentService
|
||||
|
||||
AuditLogger::record($ownerRef, 'appointment.walk_in', $organization->id, $actorRef, Appointment::class, $appointment->id);
|
||||
|
||||
$appointment = $appointment->load(['patient', 'practitioner', 'branch', 'visit']);
|
||||
$appointment = $appointment->load(['patient', 'practitioner', 'branch', 'visit', 'department']);
|
||||
$this->queueBridge->issueForAppointment($organization, $appointment);
|
||||
|
||||
if ($appointment->department?->type === 'ambulance' && $appointment->visit) {
|
||||
$appointment->visit->update([
|
||||
'specialty_stage' => \App\Services\Care\Ambulance\AmbulanceWorkflowService::STAGE_CHECK_IN,
|
||||
]);
|
||||
}
|
||||
|
||||
return $appointment->fresh(['patient', 'practitioner', 'branch', 'visit']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user