Add full Physiotherapy and Maternity specialty clinical suites.
Deploy Ladill Care / deploy (push) Successful in 52s
Deploy Ladill Care / deploy (push) Successful in 52s
Mirror Eye Care depth with stages, workspace tabs, clinical JSON, stage Move→tab routing, reports/print, demo seeds, and suite feature tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,6 +12,8 @@ use App\Models\Visit;
|
||||
use App\Services\Care\BloodBank\BloodBankWorkflowService;
|
||||
use App\Services\Care\Emergency\EmergencyWorkflowService;
|
||||
use App\Services\Care\Ophthalmology\OphthalmologyWorkflowService;
|
||||
use App\Services\Care\Physiotherapy\PhysiotherapyWorkflowService;
|
||||
use App\Services\Care\Maternity\MaternityWorkflowService;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
@@ -56,6 +58,8 @@ class SpecialtyShellService
|
||||
'emergency' => 'care.specialty.emergency.stage',
|
||||
'blood_bank' => 'care.specialty.blood-bank.stage',
|
||||
'ophthalmology' => 'care.specialty.ophthalmology.stage',
|
||||
'physiotherapy' => 'care.specialty.physiotherapy.stage',
|
||||
'maternity' => 'care.specialty.maternity.stage',
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
@@ -71,6 +75,8 @@ class SpecialtyShellService
|
||||
'emergency' => app(EmergencyWorkflowService::class)->stageFlow(),
|
||||
'blood_bank' => app(BloodBankWorkflowService::class)->stageFlow(),
|
||||
'ophthalmology' => app(OphthalmologyWorkflowService::class)->stageFlow(),
|
||||
'physiotherapy' => app(PhysiotherapyWorkflowService::class)->stageFlow(),
|
||||
'maternity' => app(MaternityWorkflowService::class)->stageFlow(),
|
||||
'dentistry' => [
|
||||
'waiting' => ['next' => 'chair', 'label' => 'Seat at chair'],
|
||||
'chair' => ['next' => 'procedure', 'label' => 'Start procedure'],
|
||||
@@ -370,7 +376,7 @@ class SpecialtyShellService
|
||||
) {
|
||||
$code = (string) ($stage['code'] ?? '');
|
||||
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology'], true) && $visitIds->isNotEmpty()) {
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology', 'physiotherapy', 'maternity'], true) && $visitIds->isNotEmpty()) {
|
||||
$count = Visit::owned($ownerRef)
|
||||
->where('organization_id', $organization->id)
|
||||
->whereIn('id', $visitIds)
|
||||
@@ -401,6 +407,8 @@ class SpecialtyShellService
|
||||
'emergency' => $clinical->countOpenByType($organization, 'emergency', 'triage', $branchScope),
|
||||
'blood_bank' => $clinical->countOpenByType($organization, 'blood_bank', 'blood_request', $branchScope),
|
||||
'ophthalmology' => $clinical->countOpenByType($organization, 'ophthalmology', 'eye_exam', $branchScope),
|
||||
'physiotherapy' => $clinical->countOpenByType($organization, 'physiotherapy', 'pt_assessment', $branchScope),
|
||||
'maternity' => $clinical->countOpenByType($organization, 'maternity', 'anc_history', $branchScope),
|
||||
'dentistry' => \App\Models\DentalPlanItem::query()
|
||||
->whereHas('plan', function ($q) use ($organization, $ownerRef) {
|
||||
$q->owned($ownerRef)
|
||||
|
||||
Reference in New Issue
Block a user