Add specialty clinical records on the shared shell (Phase 3).
Deploy Ladill Care / deploy (push) Failing after 1m2s

Visit-scoped structured forms for Emergency triage, Blood Bank requests,
and Dentistry odontogram with derived alerts, document upload, and KPI counts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 10:09:32 +00:00
co-authored by Cursor
parent 0181221fe8
commit 57358e4206
15 changed files with 1093 additions and 21 deletions
@@ -248,12 +248,21 @@ class SpecialtyShellService
];
})->all();
$clinical = app(SpecialtyClinicalRecordService::class);
$clinicalOpen = match ($moduleKey) {
'emergency' => $clinical->countOpenByType($organization, 'emergency', 'triage', $branchScope),
'blood_bank' => $clinical->countOpenByType($organization, 'blood_bank', 'blood_request', $branchScope),
'dentistry' => $clinical->countOpenByType($organization, 'dentistry', 'odontogram', $branchScope),
default => 0,
};
return [
'waiting' => $waiting,
'in_progress' => $inProgress,
'completed_today' => $completedToday,
'open_visits' => $openVisits,
'revenue_today_minor' => $revenueToday,
'clinical_open' => $clinicalOpen,
'stages' => $stages,
];
}