Add specialty clinical records on the shared shell (Phase 3).
Deploy Ladill Care / deploy (push) Failing after 1m2s
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:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user