Add full Ambulance and Child Welfare specialty clinical suites.
Deploy Ladill Care / deploy (push) Successful in 54s
Deploy Ladill Care / deploy (push) Successful in 54s
EMS clinic workflow (dispatch → scene → transport → handover) plus completed CWC suite, with shell stages, clinical records, reports/print, demo seed, and suite tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -29,6 +29,8 @@ use App\Services\Care\Infusion\InfusionWorkflowService;
|
||||
use App\Services\Care\Dermatology\DermatologyWorkflowService;
|
||||
use App\Services\Care\Podiatry\PodiatryWorkflowService;
|
||||
use App\Services\Care\Fertility\FertilityWorkflowService;
|
||||
use App\Services\Care\ChildWelfare\ChildWelfareWorkflowService;
|
||||
use App\Services\Care\Ambulance\AmbulanceWorkflowService;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
@@ -90,6 +92,8 @@ class SpecialtyShellService
|
||||
'dermatology' => 'care.specialty.dermatology.stage',
|
||||
'podiatry' => 'care.specialty.podiatry.stage',
|
||||
'fertility' => 'care.specialty.fertility.stage',
|
||||
'child_welfare' => 'care.specialty.child-welfare.stage',
|
||||
'ambulance' => 'care.specialty.ambulance.stage',
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
@@ -122,6 +126,8 @@ class SpecialtyShellService
|
||||
'dermatology' => app(DermatologyWorkflowService::class)->stageFlow(),
|
||||
'podiatry' => app(PodiatryWorkflowService::class)->stageFlow(),
|
||||
'fertility' => app(FertilityWorkflowService::class)->stageFlow(),
|
||||
'child_welfare' => app(ChildWelfareWorkflowService::class)->stageFlow(),
|
||||
'ambulance' => app(AmbulanceWorkflowService::class)->stageFlow(),
|
||||
'dentistry' => [
|
||||
'waiting' => ['next' => 'chair', 'label' => 'Seat at chair'],
|
||||
'chair' => ['next' => 'procedure', 'label' => 'Start procedure'],
|
||||
@@ -421,7 +427,7 @@ class SpecialtyShellService
|
||||
) {
|
||||
$code = (string) ($stage['code'] ?? '');
|
||||
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology', 'physiotherapy', 'maternity', 'radiology', 'cardiology', 'psychiatry', 'pediatrics', 'orthopedics', 'ent', 'oncology', 'renal', 'surgery', 'vaccination', 'pathology', 'infusion', 'dermatology', 'podiatry', 'fertility'], true) && $visitIds->isNotEmpty()) {
|
||||
if (in_array($moduleKey, ['dentistry', 'emergency', 'blood_bank', 'ophthalmology', 'physiotherapy', 'maternity', 'radiology', 'cardiology', 'psychiatry', 'pediatrics', 'orthopedics', 'ent', 'oncology', 'renal', 'surgery', 'vaccination', 'pathology', 'infusion', 'dermatology', 'podiatry', 'fertility', 'child_welfare', 'ambulance'], true) && $visitIds->isNotEmpty()) {
|
||||
$count = Visit::owned($ownerRef)
|
||||
->where('organization_id', $organization->id)
|
||||
->whereIn('id', $visitIds)
|
||||
@@ -469,6 +475,8 @@ class SpecialtyShellService
|
||||
'dermatology' => $clinical->countOpenByType($organization, 'dermatology', 'skin_exam', $branchScope),
|
||||
'podiatry' => $clinical->countOpenByType($organization, 'podiatry', 'foot_exam', $branchScope),
|
||||
'fertility' => $clinical->countOpenByType($organization, 'fertility', 'fert_exam', $branchScope),
|
||||
'child_welfare' => $clinical->countOpenByType($organization, 'child_welfare', 'cwc_assessment', $branchScope),
|
||||
'ambulance' => $clinical->countOpenByType($organization, 'ambulance', 'amb_scene', $branchScope),
|
||||
'dentistry' => \App\Models\DentalPlanItem::query()
|
||||
->whereHas('plan', function ($q) use ($organization, $ownerRef) {
|
||||
$q->owned($ownerRef)
|
||||
|
||||
Reference in New Issue
Block a user