Deploy Ladill Care / deploy (push) Successful in 1m37s
Add Cardiology through Child Welfare to the specialty catalog, keep Emergency and Blood Bank always enabled on Pro/Enterprise sidebars, and generate matching demo specialty doctors. Co-authored-by: Cursor <cursoragent@cursor.com>
257 lines
11 KiB
PHP
257 lines
11 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Specialty practice modules (Settings → Modules).
|
|
* Pro-gated via plans.*.features specialty_modules.
|
|
*
|
|
* default_on_paid_plans: always on for Pro/Enterprise (sidebar + access).
|
|
*
|
|
* @return array<string, array<string, mixed>>
|
|
*/
|
|
return [
|
|
'emergency' => [
|
|
'label' => 'Emergency',
|
|
'description' => 'Emergency department triage, resus, and urgent care queues.',
|
|
'department_type' => 'emergency',
|
|
'department_name' => 'Emergency',
|
|
'queue_name' => 'Emergency',
|
|
'queue_prefix' => 'ER',
|
|
'nav_label' => 'Emergency',
|
|
'queue_keywords' => ['emerg', 'casualty', 'trauma', 'er', 'a&e'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
'default_on_paid_plans' => true,
|
|
],
|
|
'blood_bank' => [
|
|
'label' => 'Blood Bank',
|
|
'description' => 'Blood products, cross-match requests, and transfusion counters.',
|
|
'department_type' => 'blood_bank',
|
|
'department_name' => 'Blood Bank',
|
|
'queue_name' => 'Blood Bank',
|
|
'queue_prefix' => 'BB',
|
|
'nav_label' => 'Blood Bank',
|
|
'queue_keywords' => ['blood', 'transfusion', 'crossmatch', 'donor'],
|
|
'roles' => ['doctor', 'nurse', 'lab_technician', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
'default_on_paid_plans' => true,
|
|
],
|
|
'dentistry' => [
|
|
'label' => 'Dentistry',
|
|
'description' => 'Dental chairs, oral consults, and dentistry waiting lists.',
|
|
'department_type' => 'dental',
|
|
'department_name' => 'Dentistry',
|
|
'queue_name' => 'Dentistry',
|
|
'queue_prefix' => 'DEN',
|
|
'nav_label' => 'Dentistry',
|
|
'queue_keywords' => ['dent', 'dental', 'oral'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'ophthalmology' => [
|
|
'label' => 'Eye care',
|
|
'description' => 'Ophthalmology and optometry clinics with dedicated queues.',
|
|
'department_type' => 'ophthalmology',
|
|
'department_name' => 'Eye care',
|
|
'queue_name' => 'Eye care',
|
|
'queue_prefix' => 'EYE',
|
|
'nav_label' => 'Eye care',
|
|
'queue_keywords' => ['eye', 'ophthal', 'optom'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'physiotherapy' => [
|
|
'label' => 'Physiotherapy',
|
|
'description' => 'Rehab sessions and physiotherapy treatment queues.',
|
|
'department_type' => 'physiotherapy',
|
|
'department_name' => 'Physiotherapy',
|
|
'queue_name' => 'Physiotherapy',
|
|
'queue_prefix' => 'PHY',
|
|
'nav_label' => 'Physiotherapy',
|
|
'queue_keywords' => ['physio', 'rehab', 'therapy'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'maternity' => [
|
|
'label' => 'Maternity / Antenatal',
|
|
'description' => 'Antenatal clinics, maternity wards, and related queues.',
|
|
'department_type' => 'maternity',
|
|
'department_name' => 'Maternity',
|
|
'queue_name' => 'Maternity',
|
|
'queue_prefix' => 'MAT',
|
|
'nav_label' => 'Maternity',
|
|
'queue_keywords' => ['matern', 'antenatal', 'obstetric'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'radiology' => [
|
|
'label' => 'Radiology',
|
|
'description' => 'Imaging requests and radiology service counters.',
|
|
'department_type' => 'radiology',
|
|
'department_name' => 'Radiology',
|
|
'queue_name' => 'Radiology',
|
|
'queue_prefix' => 'RAD',
|
|
'nav_label' => 'Radiology',
|
|
'queue_keywords' => ['radio', 'imaging', 'x-ray', 'xray', 'ultrasound', 'ct', 'mri'],
|
|
'roles' => ['doctor', 'lab_technician', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'cardiology' => [
|
|
'label' => 'Cardiology',
|
|
'description' => 'Heart clinics, ECG follow-up, and cardiology waiting lists.',
|
|
'department_type' => 'cardiology',
|
|
'department_name' => 'Cardiology',
|
|
'queue_name' => 'Cardiology',
|
|
'queue_prefix' => 'CAR',
|
|
'nav_label' => 'Cardiology',
|
|
'queue_keywords' => ['cardio', 'heart', 'ecg', 'echo'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'psychiatry' => [
|
|
'label' => 'Psychiatry',
|
|
'description' => 'Mental health consultations and psychiatry clinic queues.',
|
|
'department_type' => 'psychiatry',
|
|
'department_name' => 'Psychiatry',
|
|
'queue_name' => 'Psychiatry',
|
|
'queue_prefix' => 'PSY',
|
|
'nav_label' => 'Psychiatry',
|
|
'queue_keywords' => ['psych', 'mental', 'behaviour'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'pediatrics' => [
|
|
'label' => 'Pediatrics',
|
|
'description' => 'Child health clinics and pediatric consultation queues.',
|
|
'department_type' => 'pediatrics',
|
|
'department_name' => 'Pediatrics',
|
|
'queue_name' => 'Pediatrics',
|
|
'queue_prefix' => 'PED',
|
|
'nav_label' => 'Pediatrics',
|
|
'queue_keywords' => ['pedia', 'paedia', 'child', 'infant'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'orthopedics' => [
|
|
'label' => 'Orthopedics',
|
|
'description' => 'Bones, joints, fracture clinics, and orthopedic queues.',
|
|
'department_type' => 'orthopedics',
|
|
'department_name' => 'Orthopedics',
|
|
'queue_name' => 'Orthopedics',
|
|
'queue_prefix' => 'ORT',
|
|
'nav_label' => 'Orthopedics',
|
|
'queue_keywords' => ['ortho', 'fracture', 'bone', 'joint'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'ent' => [
|
|
'label' => 'ENT',
|
|
'description' => 'Ear, nose, and throat clinics with dedicated queues.',
|
|
'department_type' => 'ent',
|
|
'department_name' => 'ENT',
|
|
'queue_name' => 'ENT',
|
|
'queue_prefix' => 'ENT',
|
|
'nav_label' => 'ENT',
|
|
'queue_keywords' => ['ent', 'ear', 'nose', 'throat', 'otolaryng'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'oncology' => [
|
|
'label' => 'Oncology',
|
|
'description' => 'Cancer care clinics, chemo day-care, and oncology queues.',
|
|
'department_type' => 'oncology',
|
|
'department_name' => 'Oncology',
|
|
'queue_name' => 'Oncology',
|
|
'queue_prefix' => 'ONC',
|
|
'nav_label' => 'Oncology',
|
|
'queue_keywords' => ['oncol', 'cancer', 'chemo'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'renal' => [
|
|
'label' => 'Renal Care',
|
|
'description' => 'Dialysis, nephrology clinics, and renal care queues.',
|
|
'department_type' => 'renal',
|
|
'department_name' => 'Renal Care',
|
|
'queue_name' => 'Renal Care',
|
|
'queue_prefix' => 'REN',
|
|
'nav_label' => 'Renal Care',
|
|
'queue_keywords' => ['renal', 'dialysis', 'nephro', 'kidney'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'surgery' => [
|
|
'label' => 'Surgery',
|
|
'description' => 'Surgical OPD, pre-op assessment, and theatre-linked queues.',
|
|
'department_type' => 'surgery',
|
|
'department_name' => 'Surgery',
|
|
'queue_name' => 'Surgery',
|
|
'queue_prefix' => 'SUR',
|
|
'nav_label' => 'Surgery',
|
|
'queue_keywords' => ['surg', 'theatre', 'operat', 'pre-op'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'vaccination' => [
|
|
'label' => 'Vaccination & Immunization',
|
|
'description' => 'Immunization clinics, EPI schedules, and vaccine queues.',
|
|
'department_type' => 'vaccination',
|
|
'department_name' => 'Vaccination',
|
|
'queue_name' => 'Vaccination',
|
|
'queue_prefix' => 'VAX',
|
|
'nav_label' => 'Vaccination',
|
|
'queue_keywords' => ['vaccin', 'immun', 'epi', 'injection'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'pathology' => [
|
|
'label' => 'Pathology',
|
|
'description' => 'Histopathology, cytology, and pathology service counters.',
|
|
'department_type' => 'pathology',
|
|
'department_name' => 'Pathology',
|
|
'queue_name' => 'Pathology',
|
|
'queue_prefix' => 'PATH',
|
|
'nav_label' => 'Pathology',
|
|
'queue_keywords' => ['pathol', 'histo', 'cytol', 'biopsy'],
|
|
'roles' => ['doctor', 'lab_technician', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'infusion' => [
|
|
'label' => 'Infusion Centre',
|
|
'description' => 'IV therapy, infusion chairs, and day-care infusion queues.',
|
|
'department_type' => 'infusion',
|
|
'department_name' => 'Infusion Centre',
|
|
'queue_name' => 'Infusion',
|
|
'queue_prefix' => 'INF',
|
|
'nav_label' => 'Infusion',
|
|
'queue_keywords' => ['infusion', 'iv', 'drip', 'day care'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'dermatology' => [
|
|
'label' => 'Dermatology',
|
|
'description' => 'Skin clinics, dermatology procedures, and specialty queues.',
|
|
'department_type' => 'dermatology',
|
|
'department_name' => 'Dermatology',
|
|
'queue_name' => 'Dermatology',
|
|
'queue_prefix' => 'DER',
|
|
'nav_label' => 'Dermatology',
|
|
'queue_keywords' => ['derma', 'skin', 'rash'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'podiatry' => [
|
|
'label' => 'Podiatry',
|
|
'description' => 'Foot clinics, diabetic foot care, and podiatry queues.',
|
|
'department_type' => 'podiatry',
|
|
'department_name' => 'Podiatry',
|
|
'queue_name' => 'Podiatry',
|
|
'queue_prefix' => 'POD',
|
|
'nav_label' => 'Podiatry',
|
|
'queue_keywords' => ['podiat', 'foot', 'diabetic foot'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'fertility' => [
|
|
'label' => 'Fertility',
|
|
'description' => 'Fertility / IVF clinics and reproductive health queues.',
|
|
'department_type' => 'fertility',
|
|
'department_name' => 'Fertility',
|
|
'queue_name' => 'Fertility',
|
|
'queue_prefix' => 'FER',
|
|
'nav_label' => 'Fertility',
|
|
'queue_keywords' => ['fertil', 'ivf', 'reproduct'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
'child_welfare' => [
|
|
'label' => 'Child Welfare Clinic',
|
|
'description' => 'Well-child visits, growth monitoring, and CWC queues.',
|
|
'department_type' => 'child_welfare',
|
|
'department_name' => 'Child Welfare Clinic',
|
|
'queue_name' => 'Child Welfare',
|
|
'queue_prefix' => 'CWC',
|
|
'nav_label' => 'Child Welfare',
|
|
'queue_keywords' => ['cwc', 'child welfare', 'well baby', 'growth'],
|
|
'roles' => ['doctor', 'nurse', 'receptionist', 'hospital_admin', 'super_admin'],
|
|
],
|
|
];
|