Add full Radiology, Cardiology, and Psychiatry specialty clinical suites.
Deploy Ladill Care / deploy (push) Successful in 49s
Deploy Ladill Care / deploy (push) Successful in 49s
Mirror the Ophthalmology/Maternity shell pattern with stages, stage_tabs, workspace clinical records, reports/print, demo seeds, and suite tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -14,6 +14,9 @@ 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 App\Services\Care\Radiology\RadiologyWorkflowService;
|
||||
use App\Services\Care\Cardiology\CardiologyWorkflowService;
|
||||
use App\Services\Care\Psychiatry\PsychiatryWorkflowService;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
@@ -60,6 +63,9 @@ class SpecialtyShellService
|
||||
'ophthalmology' => 'care.specialty.ophthalmology.stage',
|
||||
'physiotherapy' => 'care.specialty.physiotherapy.stage',
|
||||
'maternity' => 'care.specialty.maternity.stage',
|
||||
'radiology' => 'care.specialty.radiology.stage',
|
||||
'cardiology' => 'care.specialty.cardiology.stage',
|
||||
'psychiatry' => 'care.specialty.psychiatry.stage',
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
@@ -77,6 +83,9 @@ class SpecialtyShellService
|
||||
'ophthalmology' => app(OphthalmologyWorkflowService::class)->stageFlow(),
|
||||
'physiotherapy' => app(PhysiotherapyWorkflowService::class)->stageFlow(),
|
||||
'maternity' => app(MaternityWorkflowService::class)->stageFlow(),
|
||||
'radiology' => app(RadiologyWorkflowService::class)->stageFlow(),
|
||||
'cardiology' => app(CardiologyWorkflowService::class)->stageFlow(),
|
||||
'psychiatry' => app(PsychiatryWorkflowService::class)->stageFlow(),
|
||||
'dentistry' => [
|
||||
'waiting' => ['next' => 'chair', 'label' => 'Seat at chair'],
|
||||
'chair' => ['next' => 'procedure', 'label' => 'Start procedure'],
|
||||
@@ -376,7 +385,7 @@ class SpecialtyShellService
|
||||
) {
|
||||
$code = (string) ($stage['code'] ?? '');
|
||||
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology', 'physiotherapy', 'maternity'], true) && $visitIds->isNotEmpty()) {
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology', 'physiotherapy', 'maternity', 'radiology', 'cardiology', 'psychiatry'], true) && $visitIds->isNotEmpty()) {
|
||||
$count = Visit::owned($ownerRef)
|
||||
->where('organization_id', $organization->id)
|
||||
->whereIn('id', $visitIds)
|
||||
@@ -409,6 +418,9 @@ class SpecialtyShellService
|
||||
'ophthalmology' => $clinical->countOpenByType($organization, 'ophthalmology', 'eye_exam', $branchScope),
|
||||
'physiotherapy' => $clinical->countOpenByType($organization, 'physiotherapy', 'pt_assessment', $branchScope),
|
||||
'maternity' => $clinical->countOpenByType($organization, 'maternity', 'anc_history', $branchScope),
|
||||
'radiology' => $clinical->countOpenByType($organization, 'radiology', 'imaging_request', $branchScope),
|
||||
'cardiology' => $clinical->countOpenByType($organization, 'cardiology', 'cardiac_exam', $branchScope),
|
||||
'psychiatry' => $clinical->countOpenByType($organization, 'psychiatry', 'mental_status', $branchScope),
|
||||
'dentistry' => \App\Models\DentalPlanItem::query()
|
||||
->whereHas('plan', function ($q) use ($organization, $ownerRef) {
|
||||
$q->owned($ownerRef)
|
||||
|
||||
Reference in New Issue
Block a user