<?php

declare(strict_types=1);

$jeddah = [
    'national_payer' => [
        'company_id' => 365,
        'company_name' => 'CENTER FOR NATIONAL HEALTH INSURANCE',
        'short_stay_icu_rate' => 4746.87,
        'standard_rate' => 2373.00,
        'short_stay_days_less_than' => 30,
        'icu_types' => ['Intr ICU', 'ICU', 'NICU', 'PICU'],
        'nicu_types' => ['NICU'],
        'nicu_days_up_to' => 14,
        'nicu_rate_days_1_to_limit' => 5232.15,
        'nicu_rate_after_limit' => 3251.77,
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'tier_schedule' => [
        'days_1_3' => 2250.00,
        'days_4_8' => 1950.00,
        'days_9_plus' => 1750.00,
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'tiered_payers' => [
        'tcs' => [
            'company_id' => 170,
            'company_name' => 'TCS',
        ],
        'gosi' => [
            'company_id' => 406,
            'company_name' => 'GENERAL ORGANIZATION FOR SOCIAL INSURANCE',
        ],
    ],
    'cash' => [
        'company_ids' => [1],
        'formula' => 'patient_share_per_los',
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'other_insurance' => [
        'formula' => 'company_share_per_los',
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
];

$madina = [
    'national_payer' => [
        'company_id' => 9002,
        'company_name' => 'MOH Ministry of Health',
        'short_stay_icu_rate' => 4746.87,
        'standard_rate' => 2373.00,
        'short_stay_days_less_than' => 30,
        'icu_types' => ['Intr ICU', 'ICU', 'NICU', 'PICU'],
        'nicu_types' => ['NICU'],
        'nicu_days_up_to' => 14,
        'nicu_rate_days_1_to_limit' => 5232.15,
        'nicu_rate_after_limit' => 3251.77,
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'tier_schedule' => [
        'days_1_3' => 2250.00,
        'days_4_8' => 1950.00,
        'days_9_plus' => 1750.00,
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'tiered_payers' => [
        'tcs' => [
            'company_id' => 2009,
            'company_name' => 'TCS',
        ],
        'gosi' => [
            'company_id' => 3005,
            'company_name' => 'G.O.S.I',
        ],
    ],
    'cash' => [
        'company_ids' => [1],
        'formula' => 'patient_share_per_los',
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
    'other_insurance' => [
        'formula' => 'company_share_per_los',
        'los_source' => 'continuous_inpatient_chain_from_rcp_visit_classcode_1',
    ],
];

return [
    'schema_version' => 1,
    'branches' => [
        'njch' => $jeddah,
        'jckh' => $jeddah,
        'mnh' => $madina,
    ],
];
