📃Config

Config = {}

-- Framework to use: 'qbcore' or 'esx'
Config.Framework = 'qbcore'

Config.AppName = 'Medical Records'

-- Medical jobs (full access to medical system)
Config.MedicalJobs = {
    ambulance = true,
}

-- Firefighter jobs (read-only access: can view patient info only)
Config.FirefighterJobs = {
    police = true,
}

-- Grade level required for doctor privileges (managing medications, schedules)
Config.DoctorGrade = 4

-- Grade level required for boss/chief privileges (full audit log access)
Config.BossGrade = 4

-- Allow all medical staff to set availability schedule (not just doctors)
Config.AllowScheduleForAllMedical = true

-- Login system settings
Config.UseLoginSystem = true -- Set to false to use framework-based authentication only
Config.MinPasswordLength = 4 -- Minimum password length for account creation

-- Blood types available
Config.BloodTypes = {
    'A+', 'A-', 'B+', 'B-', 'AB+', 'AB-', 'O+', 'O-'
}

-- Marital status options
Config.MaritalStatus = {
    'Single', 'Married', 'Widowed', 'Divorced', 'Separated'
}

-- Lifestyle habits
Config.SmokingOptions = {
    'Non-smoker', 'Former smoker', 'Light smoker', 'Regular smoker', 'Heavy smoker'
}

Config.AlcoholOptions = {
    'Non-drinker', 'Occasional', 'Social drinker', 'Regular', 'Heavy'
}

-- Vital signs normal ranges (for UI hints)
Config.VitalRanges = {
    pulse = { min = 60, max = 100, unit = 'bpm' },
    oxygen = { min = 95, max = 100, unit = '%' },
    bloodPressureSystolic = { min = 90, max = 120, unit = 'mmHg' },
    bloodPressureDiastolic = { min = 60, max = 80, unit = 'mmHg' },
    bloodSugar = { min = 70, max = 100, unit = 'mg/dL' },
    temperature = { min = 36.5, max = 37.5, unit = '°C' }
}

-- Intervention types
Config.InterventionTypes = {
    'Accident', 'Medical Emergency', 'Fire', 'Rescue', 'Other'
}

-- Intervention severity levels
Config.SeverityLevels = {
    { value = 1, label = 'Minor', color = '#4ade80' },
    { value = 2, label = 'Moderate', color = '#fbbf24' },
    { value = 3, label = 'Serious', color = '#fb923c' },
    { value = 4, label = 'Critical', color = '#ef4444' },
    { value = 5, label = 'Life-threatening', color = '#dc2626' }
}

-- Medical exam types
Config.ExamTypes = {
    'Blood Test',
    'Urine Test',
    'X-Ray',
    'CT Scan',
    'MRI Scan',
    'Ultrasound',
    'ECG/EKG',
    'Echocardiogram',
    'Endoscopy',
    'Colonoscopy',
    'Biopsy',
    'Allergy Test',
    'Drug Test',
    'COVID-19 Test',
    'Pregnancy Test',
    'Other'
}

-- Visit types for history
Config.VisitTypes = {
    'Emergency',
    'Routine Checkup',
    'Follow-up',
    'Surgery',
    'Consultation',
    'Vaccination',
    'Physical Exam',
    'Mental Health',
    'Injury Treatment',
    'Other'
}

-- Medical image types for patient gallery
Config.ImageTypes = {
    'X-Ray',
    'CT Scan',
    'MRI Scan',
    'Ultrasound',
    'Wound Photo',
    'Surgery Photo',
    'Skin Condition',
    'Burn Injury',
    'Fracture',
    'Post-operative',
    'Diagnostic Image',
    'Other'
}

-- Body parts for image categorization
Config.BodyParts = {
    'Head',
    'Neck',
    'Chest',
    'Abdomen',
    'Back',
    'Left Arm',
    'Right Arm',
    'Left Hand',
    'Right Hand',
    'Left Leg',
    'Right Leg',
    'Left Foot',
    'Right Foot',
    'Full Body',
    'Other'
}

-- Common medications list (shown as quick-select in Add Medication modal)
Config.Medications = {
    'Acetaminophen (Paracetamol)',
    'Ibuprofen',
    'Aspirin',
    'Amoxicillin',
    'Azithromycin',
    'Ciprofloxacin',
    'Metronidazole',
    'Morphine',
    'Fentanyl',
    'Ketamine',
    'Midazolam',
    'Diazepam',
    'Lorazepam',
    'Epinephrine (Adrenaline)',
    'Atropine',
    'Lidocaine',
    'Amiodarone',
    'Furosemide',
    'Metoprolol',
    'Atenolol',
    'Lisinopril',
    'Amlodipine',
    'Omeprazole',
    'Ondansetron',
    'Metoclopramide',
    'Dexamethasone',
    'Methylprednisolone',
    'Prednisone',
    'Insulin (Regular)',
    'Heparin',
    'Warfarin',
    'Clopidogrel',
    'Naloxone',
    'Tranexamic Acid',
    'Salbutamol (Albuterol)',
    'Ipratropium',
    'Other'
}

-- Common medication dosages (quick-select)
Config.MedicationDosages = {
    '25 mg', '50 mg', '100 mg', '200 mg', '250 mg',
    '400 mg', '500 mg', '1000 mg',
    '0.1 mg', '0.5 mg', '1 mg', '2 mg', '5 mg', '10 mg',
    '5 ml', '10 ml', '20 ml',
    '1 ampoule', '2 ampoules'
}

-- Common medication frequencies
Config.MedicationFrequencies = {
    'Once',
    'Once daily (QD)',
    'Twice daily (BID)',
    'Three times daily (TID)',
    'Four times daily (QID)',
    'Every 4 hours',
    'Every 6 hours',
    'Every 8 hours',
    'Every 12 hours',
    'As needed (PRN)',
    'Emergency use'
}

-- Common allergens list (shown as quick-select in Add Allergy modal)
Config.Allergens = {
    'Penicillin',
    'Amoxicillin',
    'Sulfonamides (Sulfa drugs)',
    'Cephalosporins',
    'Aspirin',
    'Ibuprofen (NSAIDs)',
    'Codeine',
    'Morphine',
    'Latex',
    'Iodine / Contrast dye',
    'Lidocaine',
    'Peanuts',
    'Tree nuts',
    'Shellfish',
    'Eggs',
    'Milk / Dairy',
    'Wheat / Gluten',
    'Bee / Wasp stings',
    'Pollen',
    'Dust mites',
    'Animal dander',
    'Mold',
    'Other'
}

-- Clinical note categories
Config.NoteCategories = {
    'General Note',
    'Admission Note',
    'Discharge Note',
    'Progress Note',
    'Operative Note',
    'Consultation Note',
    'Emergency Note',
    'Procedure Note',
    'Transfer Note',
    'Nursing Note'
}

Last updated