Issue Queue tickets for every waiting appointment when integration is on.
Deploy Ladill Care / deploy (push) Successful in 51s

Patient queue syncs consultation and specialty waiters; specialty contexts now provision desks so check-in/onboarding no longer leaves half the list on local positions only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 06:12:32 +00:00
co-authored by Cursor
parent 4e910a1db7
commit e94708d46c
6 changed files with 312 additions and 66 deletions
@@ -214,8 +214,17 @@ class SettingsController extends Controller
->where('is_active', true)
->pluck('id');
foreach ($branches as $branchId) {
try {
$bridge->syncMissingAppointmentTickets($organization, (int) $branchId, 50);
} catch (\Throwable) {
// Continue other branches.
}
foreach (array_keys(CareQueueContexts::departments()) as $context) {
if ($context === CareQueueContexts::RECEPTION) {
if (in_array($context, [
CareQueueContexts::RECEPTION,
CareQueueContexts::CONSULTATION,
CareQueueContexts::TRIAGE,
], true)) {
continue;
}
try {