Ship full Emergency specialty suite on the shared shell.
Deploy Ladill Care / deploy (push) Successful in 34s

Add ED visit stages, triage-driven routing, vitals, observation, disposition, reports, and print summary so Emergency matches Dentistry’s operational depth without a parallel EHR.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 17:48:57 +00:00
co-authored by Cursor
parent 18c24077e3
commit 7989ab9184
19 changed files with 1413 additions and 22 deletions
+2 -2
View File
@@ -270,13 +270,13 @@ class SpecialtyShellService
) {
$code = (string) ($stage['code'] ?? '');
if ($moduleKey === 'dentistry' && $visitIds->isNotEmpty()) {
if (in_array($moduleKey, ['dentistry', 'emergency'], true) && $visitIds->isNotEmpty()) {
$count = Visit::owned($ownerRef)
->where('organization_id', $organization->id)
->whereIn('id', $visitIds)
->where('specialty_stage', $code)
->when(
$code !== 'completed',
! in_array($code, ['completed', 'disposition'], true),
fn ($q) => $q->whereIn('status', [Visit::STATUS_OPEN, Visit::STATUS_IN_PROGRESS]),
)
->count();