<?php

return [
    // Module + menu
    'medward_module'  => 'Inpatient & ICU',
    'inpatient'       => 'Inpatient',
    'bed_board'       => 'Bed board',
    'admissions'      => 'Admissions',
    'wards'           => 'Wards',
    'icu_dashboard'   => 'ICU',

    // Permissions
    'perm_board_view'          => 'View bed board & admissions',
    'perm_wards_manage'        => 'Manage wards & beds',
    'perm_admission_create'    => 'Create admissions & transfer',
    'perm_admission_discharge' => 'Discharge patients',
    'perm_mar_administer'      => 'Administer medications (MAR) & fluid balance',
    'perm_icu_chart'           => 'Chart ICU flow-sheet',

    // Generic
    'active'    => 'Active',
    'inactive'  => 'Inactive',
    'all'       => 'All',
    'view'      => 'View',
    'open'      => 'Open',
    'save'      => 'Save',
    'cancel'    => 'Cancel',
    'actions'   => 'Actions',
    'none'      => 'None',
    'yes'       => 'Yes',
    'no'        => 'No',
    'status'    => 'Status',
    'notes'     => 'Notes',
    'back'      => 'Back',
    'invalid_action' => 'Unknown action.',
    'reason_required' => 'A reason is required.',

    // Ward
    'ward'            => 'Ward',
    'ward_name'       => 'Name',
    'ward_code'       => 'Code',
    'ward_type'       => 'Type',
    'ward_type_general'   => 'General',
    'ward_type_icu'       => 'ICU',
    'ward_type_nicu'      => 'NICU',
    'ward_type_picu'      => 'PICU',
    'ward_type_maternity' => 'Maternity',
    'ward_type_surgical'  => 'Surgical',
    'ward_type_medical'   => 'Medical',
    'ward_type_isolation' => 'Isolation',
    'ward_type_other'     => 'Other',
    'floor'           => 'Floor',
    'department'      => 'Department (link)',
    'in_charge'       => 'In-charge (user id)',
    'total_beds'      => 'Total beds',
    'occupied'        => 'Occupied',
    'add_ward'        => 'Add ward',
    'edit_ward'       => 'Edit ward',
    'ward_saved'      => 'Ward saved.',
    'ward_deleted'    => 'Ward deleted.',
    'ward_in_use'     => 'This ward has occupied beds and cannot be deleted.',
    'wards_help'      => 'Wards group beds. A ward may link (never duplicate) a department. ICU/NICU/PICU wards surface the ICU flow-sheet.',

    // Bed
    'bed'             => 'Bed',
    'beds'            => 'Beds',
    'bed_number'      => 'Bed number',
    'bed_type'        => 'Type',
    'bed_type_standard'  => 'Standard',
    'bed_type_electric'  => 'Electric',
    'bed_type_pediatric' => 'Pediatric',
    'bed_type_incubator' => 'Incubator',
    'bed_type_isolation' => 'Isolation',
    'bed_type_other'     => 'Other',
    'bed_status_available'   => 'Available',
    'bed_status_occupied'    => 'Occupied',
    'bed_status_reserved'    => 'Reserved',
    'bed_status_maintenance' => 'Maintenance',
    'bed_status_blocked'     => 'Blocked',
    'cleaning_status' => 'Cleaning',
    'clean_clean'     => 'Clean',
    'clean_dirty'     => 'Dirty',
    'clean_cleaning'  => 'Cleaning',
    'add_bed'         => 'Add bed',
    'edit_bed'        => 'Edit bed',
    'bed_saved'       => 'Bed saved.',
    'bed_deleted'     => 'Bed deleted.',
    'bed_updated'     => 'Bed updated.',
    'bed_number_taken' => 'That bed number is already used in this ward.',
    'bed_occupied_locked' => 'This bed is occupied — release the admission first.',
    'beds_of_ward'    => 'Beds of :ward',
    'mark_clean'      => 'Mark clean',
    'set_maintenance' => 'To maintenance',
    'set_available'   => 'To available',

    // Bed board
    'board_help'      => 'Live bed status by ward. Click a bed to admit, transfer or release. Auto-refreshes every :sec s.',
    'admit_here'      => 'Admit here',
    'transfer_here'   => 'Transfer here',
    'release'         => 'Release',
    'no_wards'        => 'No wards yet — add a ward and beds first.',
    'transfer'        => 'Transfer',
    'transfer_patient' => 'Transfer patient',
    'transfer_done'   => 'Patient transferred.',
    'select_bed'      => 'Select an available bed',
    'no_available_beds' => 'No available beds.',
    'empty'           => 'Empty',

    // Admission
    'admission'       => 'Admission',
    'admission_no'    => 'Admission no',
    'patient'         => 'Patient',
    'ward_bed'        => 'Ward / Bed',
    'admitted_at'     => 'Admitted',
    'admit_patient'   => 'Admit patient',
    'new_admission'   => 'New admission',
    'admission_type'  => 'Admission type',
    'admission_type_elective'    => 'Elective',
    'admission_type_emergency'   => 'Emergency',
    'admission_type_transfer'    => 'Transfer',
    'admission_type_maternity'   => 'Maternity',
    'admission_type_observation' => 'Observation',
    'admission_source' => 'Source',
    'admission_source_er'         => 'Emergency (ER)',
    'admission_source_outpatient' => 'Outpatient',
    'admission_source_external'   => 'External transfer',
    'admission_source_referral'   => 'Referral',
    'admission_source_other'      => 'Other',
    'admitting_diagnosis' => 'Admitting diagnosis',
    'admitting_doctor'    => 'Admitting doctor (id)',
    'expected_discharge'  => 'Expected discharge',
    'adm_status_admitted'          => 'Admitted',
    'adm_status_discharge_pending' => 'Discharge pending',
    'adm_status_discharged'        => 'Discharged',
    'admitted'        => 'Patient admitted.',
    'admissions_help' => 'Every inpatient episode. Open an admission for its MAR, fluid balance, ICU flow-sheet and discharge.',
    'ward'            => 'Ward',
    'select_ward'     => 'Select ward',
    'select_patient'  => 'Select patient',
    'select_bed_ward' => 'Pick a ward to list its available beds',
    'is_icu'          => 'ICU admission',
    'icu_details'     => 'ICU details',
    'icu_type'        => 'ICU type',
    'icu_type_medical'  => 'Medical',
    'icu_type_surgical' => 'Surgical',
    'icu_type_cardiac'  => 'Cardiac',
    'icu_type_neuro'    => 'Neuro',
    'icu_type_pediatric' => 'Pediatric',
    'icu_type_neonatal' => 'Neonatal',
    'apache_ii'       => 'APACHE II',
    'sofa'            => 'SOFA',
    'ventilator'      => 'Ventilator',
    'ventilator_mode' => 'Ventilator mode',
    'patient_no_contact' => 'That patient has no linked contact — cannot admit.',
    'icu_only'        => 'ICU only',

    // Admission detail tabs
    'tab_overview'    => 'Overview',
    'tab_mar'         => 'MAR',
    'tab_fluid'       => 'Fluid balance',
    'tab_icu'         => 'ICU flow-sheet',
    'tab_discharge'   => 'Discharge',
    'overview'        => 'Overview',

    // MAR
    'mar'             => 'Medication Administration Record',
    'mar_help'        => 'Scheduled doses drawn from the active inpatient prescription. Generate the day, then give / hold each dose. Controlled meds need a witness.',
    'generate_mar'    => 'Generate today\'s MAR',
    'mar_generated'   => 'Generated :count scheduled dose(s).',
    'medicine'        => 'Medicine',
    'scheduled'       => 'Scheduled',
    'dose'            => 'Dose',
    'route'           => 'Route',
    'give'            => 'Give',
    'hold'            => 'Hold',
    'refuse'          => 'Refused',
    'miss'            => 'Missed',
    'witness'         => 'Witness (user id, controlled meds)',
    'witness_required' => 'A witness is required for controlled medications.',
    'mar_status_scheduled' => 'Scheduled',
    'mar_status_given'     => 'Given',
    'mar_status_held'      => 'Held',
    'mar_status_refused'   => 'Refused',
    'mar_status_missed'    => 'Missed',
    'mar_given'       => 'Dose recorded as given.',
    'mar_updated'     => 'Dose updated.',
    'mar_already_actioned' => 'This dose has already been actioned.',
    'mar_invalid_status'   => 'Invalid MAR status.',
    'no_mar'          => 'No MAR entries yet — generate the day.',
    'administered'    => 'Administered',
    'held_reason'     => 'Reason',

    // Fluid balance
    'fluid_balance'   => 'Fluid balance',
    'fluid_help'      => 'Per-shift intake / output (ml). The net balance is computed for you.',
    'shift'           => 'Shift',
    'shift_morning'   => 'Morning',
    'shift_evening'   => 'Evening',
    'shift_night'     => 'Night',
    'intake_oral'     => 'Oral in',
    'intake_iv'       => 'IV in',
    'intake_other'    => 'Other in',
    'output_urine'    => 'Urine out',
    'output_drain'    => 'Drain out',
    'output_other'    => 'Other out',
    'intake_total'    => 'Total in',
    'output_total'    => 'Total out',
    'balance'         => 'Balance',
    'add_fluid'       => 'Add fluid record',
    'fluid_saved'     => 'Fluid record saved.',
    'no_fluid'        => 'No fluid records yet.',
    'recorded_at'     => 'Recorded',

    // ICU flow-sheet
    'flowsheet'       => 'ICU flow-sheet',
    'icu_flowsheet_help' => 'High-frequency ICU chart. MAP is auto-calculated; MAP < :map or SpO2 < :spo2 raises a critical alert.',
    'chart_flowsheet' => 'Chart flow-sheet',
    'gcs'             => 'GCS',
    'rass'            => 'RASS',
    'pupils'          => 'Pupils',
    'hr'              => 'HR',
    'bp'              => 'BP',
    'bp_sys'          => 'BP systolic',
    'bp_dia'          => 'BP diastolic',
    'map'             => 'MAP',
    'spo2'            => 'SpO2',
    'rr'              => 'RR',
    'temp'            => 'Temp',
    'fio2'            => 'FiO2',
    'peep'            => 'PEEP',
    'tidal_volume'    => 'Tidal volume',
    'interventions'   => 'Interventions',
    'labs_note'       => 'Labs note',
    'flowsheet_saved' => 'Flow-sheet row charted.',
    'no_flowsheet'    => 'No flow-sheet rows yet.',
    'icu_critical_value' => 'ICU critical value',
    'icu_dashboard_help' => 'One strip per active ICU admission: latest flow-sheet vitals + active critical alerts. Auto-refreshes every :sec s.',
    'no_icu_admissions' => 'No active ICU admissions.',
    'latest'          => 'Latest',
    'alerts'          => 'Alerts',
    'never_charted'   => 'Not charted yet',

    // Discharge
    'discharge'            => 'Discharge',
    'discharge_help'       => 'Complete the discharge: med reconciliation, a required summary and instructions. The bed is then released and cleaning-flagged.',
    'request_discharge'    => 'Start discharge',
    'discharge_type'       => 'Discharge type',
    'discharge_type_recovered'   => 'Recovered',
    'discharge_type_improved'    => 'Improved',
    'discharge_type_transferred' => 'Transferred',
    'discharge_type_absconded'   => 'Absconded',
    'discharge_type_expired'     => 'Expired',
    'discharge_type_referred'    => 'Referred',
    'discharge_type_other'       => 'Other',
    'discharge_summary'    => 'Discharge summary',
    'discharge_instructions' => 'Discharge instructions',
    'med_reconciliation'   => 'Medication reconciliation',
    'followup_date'        => 'Follow-up date',
    'summary_required'     => 'A discharge summary is required.',
    'complete_discharge'   => 'Complete discharge',
    'discharge_pending_set' => 'Admission moved to discharge pending.',
    'discharged'           => 'Patient discharged; bed released.',
    'discharge_bad_state'  => 'This admission is not in a dischargeable state.',
    'already_discharged'   => 'This patient has been discharged.',

    // Service reasons
    'reason_admission' => 'Admission',
    'reason_transfer'  => 'Transfer',
    'reason_discharge' => 'Discharge',

    // Errors
    'bed_not_found'        => 'Bed not found.',
    'bed_not_available'    => 'That bed is not available.',
    'bed_wrong_ward'       => 'The bed does not belong to the chosen ward.',
    'bed_same'             => 'The patient is already in that bed.',
    'admission_not_active' => 'This admission is not active.',
];
