{
    "release": "11.0.15.0",
    "phase": "DIAR-4A-R1",
    "title": "NJCH WATANY Central Rules, Settings and Versioning Foundation",
    "baseline": "11.0.15.0",
    "baseline_phase": "DIAR-4A-R1",
    "database_changes": "10_DIAR_CONTROL_TABLES_9_SEQUENCES_IN_NJCH_WATANY",
    "oracle_write_operations": "DIAR_AND_SHARED_CONTROL_TABLES_ONLY",
    "local_settings_writes": "JSON_ONLY_WITH_BACKUP_AUDIT_AND_ROLLBACK",
    "scope": "DIAR_RULES_SETTINGS_VERSIONING_FOUNDATION",
    "production_route": "revenue",
    "settings_route": "inpatient-daily-revenue-settings",
    "export_route": "inpatient-daily-revenue-export",
    "calculation_rules_changed": false,
    "functional_baseline_status": "CANDIDATE_UNTIL_WINDOWS_LIVE_ORACLE_PARITY_AND_BROWSER_ACCEPTANCE",
    "branch_rule_mapping": {
        "jeddah": {
            "national_payer": 365,
            "tcs": 170,
            "gosi": 406
        },
        "madinah": {
            "national_payer": 9002,
            "tcs": 2009,
            "gosi": 3005
        }
    },
    "national_payer_rule": {
        "short_stay_icu_rate": 4746.87,
        "standard_rate": 2373,
        "short_stay_condition": "TOTAL_LOS_STRICTLY_LESS_THAN_30_AND_ICU_TYPE_MATCH",
        "icu_types": [
            "Intr ICU",
            "ICU",
            "NICU",
            "PICU"
        ],
        "day_30_rate": 2373,
        "los_source": "LATEST_UNINTERRUPTED_RCP_VISIT_CLASSCODE_1_RUN",
        "nicu_special_rule": {
            "unit_types": [
                "NICU"
            ],
            "days_up_to_inclusive": 14,
            "rate_days_1_to_14": 5232.15,
            "rate_after_14": 3251.77,
            "priority": "OVERRIDES_GENERAL_ICU_SHORT_STAY_RULE"
        }
    },
    "shared_tcs_gosi_tiers": {
        "los_1_3": 2250,
        "los_4_8": 1950,
        "los_9_plus": 1750,
        "los_source": "LATEST_UNINTERRUPTED_RCP_VISIT_CLASSCODE_1_RUN"
    },
    "preserved_general_rules": {
        "cash": "PATIENT_SHARE_DIVIDED_BY_LOS",
        "other_insurance": "COMPANY_SHARE_DIVIDED_BY_LOS",
        "other_insurance_los_source": "LATEST_UNINTERRUPTED_RCP_VISIT_CLASSCODE_1_RUN",
        "legacy_procedure_direct_call": false,
        "residence_flag_source": "PACC_PAT_RES_TRAN_ALIAS_R_IN_OUT_PKG"
    },
    "executive_ui_policy": {
        "calculation_rule_panel_removed": true,
        "calculation_method_column_removed": true,
        "technical_rule_values_hidden": true,
        "load_error_uses_na_not_zero": true
    },
    "settings_governance": {
        "branch_aware": true,
        "edit_permission": "dashboard_role_fin",
        "csrf_protected": true,
        "storage": "LOCAL_JSON",
        "backup_before_save": true,
        "audit_trail": true,
        "windows_safe_swap": true,
        "automatic_rollback_on_activation_or_audit_failure": true,
        "oracle_writes": "NONE"
    },
    "workbook_sheets": [
        "Summary",
        "Daily Revenue"
    ],
    "obsolete_audit_sheets_removed": true,
    "unit_daily_revenue_subtotal_under_daily_revenue_column": true,
    "historical_daily_revenue_baseline": {
        "release": "11.0.10.5.1",
        "phase": "H11.0-P10.5-R1",
        "former_inherited_gate": "23/23 PASS",
        "former_critical_hashes": "9/9 PASS",
        "status_after_this_patch": "INTENTIONALLY_SUPERSEDED_FOR_CHANGED_CRITICAL_FILES_BY_USER_REQUESTED_FUNCTIONAL_RULE_CHANGE"
    },
    "live_acceptance_requirement": "TARGET_WINDOWS_FULL_TEST_MUST_PRODUCE CURRENT BROWSER + NJCH/MNH ORACLE READ-ONLY EVIDENCE; MISSING EVIDENCE IS NOT PASS",
    "mnh_data_recovery": {
        "root_cause": "MNH had no configured oracle_branch_id, and the R1 repository rejected the branch before querying Oracle.",
        "resolution": "Deterministic read-only Oracle branch resolution using configured ID when present, hospital_main_data identity matching, active-branch intersection, or single active inpatient branch fallback.",
        "oracle_writes": "NONE",
        "requires_live_nonzero_rows_for": [
            "njch",
            "mnh"
        ]
    },
    "workbook_changes": {
        "chart_on_separate_sheet": true,
        "calculation_rules_removed_from_workbook": true,
        "unit_average_on_summary": true,
        "unit_average_below_each_unit_on_daily_revenue": true,
        "obsolete_audit_sheets_removed": true,
        "revenue_chart_layout_refined": true,
        "revenue_chart_sheet_prioritizes_chart_canvas": true,
        "source_table_moved_below_visible_chart_area": true,
        "data_labels_outside_end_no_series_name": true,
        "three_sheet_executive_redesign": true,
        "summary_theme": "TEAL_EXECUTIVE",
        "daily_revenue_theme": "BLUE_OPERATIONAL",
        "revenue_chart_theme": "PURPLE_ANALYTICS",
        "sheet_tab_colors": true,
        "summary_kpi_cards": 5,
        "daily_revenue_kpi_cards": 4,
        "chart_kpi_cards": 3,
        "executive_visual_fidelity_upgrade": true,
        "harmonious_color_diversity": true,
        "summary_kpi_palette": [
            "mint",
            "amber",
            "sky",
            "lilac",
            "emerald"
        ],
        "daily_kpi_palette": [
            "blue",
            "cyan",
            "indigo",
            "rose"
        ],
        "chart_kpi_palette": [
            "lavender",
            "mint",
            "amber"
        ],
        "chart_bar_palette": [
            "purple",
            "blue",
            "teal",
            "amber",
            "pink",
            "cyan",
            "violet",
            "sky",
            "emerald",
            "orange"
        ],
        "alternating_unit_section_accents": true,
        "chart_labels_shortened_for_legibility": true,
        "support_table_moved_below_row_62": true,
        "kpi_number_formats_corrected": true
    },
    "browser_gate_correction": {
        "r2_false_positive_root_cause": "Browser telemetry used body.textContent, so its own embedded QA script text triggered the forbidden-text checks.",
        "resolution": "Evaluate visible page text from the page content container and DOM selectors only; exclude script/style text."
    },
    "previous_qa_attempt": {
        "phase": "H11.0-P11.1-R2",
        "result": "FAIL",
        "rule_qa": "PASS",
        "oracle_live": "PASS",
        "http_qa": "PASS",
        "browser_gate": "FAIL_FALSE_POSITIVE_SELF_DETECTION"
    },
    "r4_chart_layout_refinement": {
        "root_cause": "Revenue Chart sheet placed a source table beside a constrained chart area, causing a cramped chart and crowded labels.",
        "resolution": "Use the Revenue Chart worksheet primarily as a large executive chart canvas; move chart source data below the visible area and format data labels outside end without repeated series text.",
        "source_mutation_scope": [
            "DDB_VERSION.json",
            "app/Services/XlsxExportService.php",
            "app/Services/InpatientDailyRevenueRulesQaService.php"
        ],
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE"
    },
    "continuous_inpatient_los": {
        "applies_to": "ALL_CURRENT_INPATIENTS_REGARDLESS_OF_FINANCIAL_CLASS",
        "source_table": "RCP_VISIT",
        "inpatient_classcode": 1,
        "start_date_rule": "FIRST_VISIT_START_DATE_IN_LATEST_UNINTERRUPTED_CONSECUTIVE_CLASSCODE_1_RUN",
        "break_rule": "ANY_NON_CLASSCODE_1_VISIT_BETWEEN_INPATIENT_VISITS_STARTS_A_NEW_RUN",
        "performance_strategy": "LIMIT_RCP_VISIT_HISTORY_TO_CURRENT_ACTIVE_PATIENT_KEYS_THEN_USE_ANALYTIC_LAG_AND_CUMULATIVE_RUN_NUMBER",
        "oracle_writes": "NONE"
    },
    "r5_continuous_los_and_nicu_rule": {
        "base_official_live_closure": "11.0.11.3 / H11.0-P11.1-R3",
        "includes_unpromoted_r4_workbook_refinement": true,
        "calculation_rules_changed": true,
        "oracle_logic_changed": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r6_three_sheet_workbook_redesign": {
        "base": "11.0.11.5 / H11.0-P11.1-R5",
        "target": "11.0.11.6 / H11.0-P11.1-R6",
        "scope": [
            "app/Services/XlsxExportService.php",
            "DDB_VERSION.json"
        ],
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "design": {
            "Summary": "teal executive KPI and dual-table summary",
            "Daily Revenue": "blue operational KPI header and unit-grouped detail",
            "Revenue Chart": "purple analytics canvas with large payer chart and KPI cards"
        }
    },
    "r7_executive_workbook_visual_fidelity_upgrade": {
        "base": "11.0.11.6 / H11.0-P11.1-R6",
        "target": "11.0.11.7 / H11.0-P11.1-R7",
        "scope": [
            "app/Services/XlsxExportService.php",
            "DDB_VERSION.json"
        ],
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "design_principle": "DIVERSE_BUT_HARMONIOUS_EXECUTIVE_COLOR_SYSTEM_WITH_CLEAR_VISUAL_HIERARCHY"
    },
    "version": "11.0.15.0",
    "updated_at": "2026-07-21T15:30:00+03:00",
    "notes": "R42 restores the eight Legacy Executive Dashboard KPI contracts from old ddb/files/home_main_conent.php, separates those legacy Today metrics from the 07:00 operational-day window, restores Follow-up and First Visits on Hospital Pulse, and adds exact 8/8 live-vs-summary reconciliation. Oracle writes NONE; database changes NONE. Live Oracle and browser acceptance remain required.",
    "workbook_template_architecture": {
        "mode": "HYBRID_WITH_EXPLICIT_ROLLBACK",
        "default_export_mode": "hybrid_final",
        "summary_engine": "app/Services/HybridXlsxExportService.php::buildSummarySheet (legacy code-driven layout)",
        "daily_revenue_engine": "app/Services/HybridXlsxExportService.php::buildManualFriendlyDailyRevenueSheet (legacy code-driven layout)",
        "revenue_chart_engine": "app/Services/HybridXlsxExportService.php native Excel chart package",
        "master_template": "resources/templates/daily_inpatient_revenue_master.xlsx",
        "previous_template_backup": "resources/templates/daily_inpatient_revenue_master_r10b_backup.xlsx",
        "legacy_code_engine": "app/Services/LegacyXlsxExportService.php",
        "switch_env": "DDB_DAILY_REVENUE_XLSX_MODE",
        "allowed_modes": [
            "hybrid_final",
            "legacy_r9",
            "template_final",
            "template_r10b"
        ],
        "native_excel_chart": true,
        "sheets": [
            "Summary",
            "Daily Revenue",
            "Revenue Chart"
        ],
        "calculation_rules_visible": false,
        "excel_repair_policy": "NO_REPAIR_WARNING_REQUIRED_FOR_PROMOTION"
    },
    "r10b_template_first_workbook_integration": {
        "base": "11.0.11.9 / H11.0-P11.1-R9",
        "target": "11.0.11.10 / H11.0-P11.1-R10B",
        "master_template": "resources/templates/daily_inpatient_revenue_master.xlsx",
        "architecture": "TEMPLATE_FIRST",
        "runtime_population": [
            "Summary",
            "all Daily Revenue units and patients",
            "unit totals and averages",
            "Top Payers",
            "Top 5 Payers",
            "native Excel chart cache"
        ],
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "excel_desktop_gate": "NO_REPAIR_WARNING_REQUIRED_FOR_FORMAL_PROMOTION"
    },
    "r10d_final_approved_workbook_and_rollback": {
        "base": "11.0.11.10 / H11.0-P11.1-R10B",
        "target": "11.0.11.11 / H11.0-P11.1-R10D",
        "default_mode": "template_final",
        "rollback_modes": {
            "template_r10b": "Previous template-first workbook",
            "legacy_r9": "Previous code-driven workbook generator"
        },
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r10e_hybrid_workbook_architecture": {
        "base": "11.0.11.11 / H11.0-P11.1-R10D",
        "target": "11.0.11.12 / H11.0-P11.1-R10E",
        "default_mode": "hybrid_final",
        "sheet_engines": {
            "Summary": "LEGACY_CODE_DRIVEN_GENERATOR",
            "Daily Revenue": "LEGACY_CODE_DRIVEN_GENERATOR",
            "Revenue Chart": "NATIVE_EXCEL_CHART_HYBRID_GENERATOR"
        },
        "rollback_modes": {
            "legacy_r9": "Previous code-driven workbook generator for all three sheets",
            "template_final": "R10D final template-first workbook",
            "template_r10b": "R10B previous template-first workbook"
        },
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r10f_native_chart_drawing_repair_closure": {
        "base": "11.0.11.12 / H11.0-P11.1-R10E",
        "target": "11.0.11.13 / H11.0-P11.1-R10F",
        "root_cause": "Hybrid chart drawing emitted an empty xdr:xfrm element. Excel Desktop requires the graphicFrame transform to contain a:off and a:ext, so it removed xl/drawings/drawing1.xml during repair.",
        "resolution": [
            "emit complete xdr:xfrm with a:off and a:ext",
            "hide Revenue Chart support columns N:Q",
            "set plotVisOnly=0 so hidden support data still drives the native chart",
            "add static and runtime QA gates for the drawing transform contract"
        ],
        "sheet_engines": {
            "Summary": "LEGACY_CODE_DRIVEN_GENERATOR",
            "Daily Revenue": "LEGACY_CODE_DRIVEN_GENERATOR",
            "Revenue Chart": "NATIVE_EXCEL_CHART_HYBRID_GENERATOR"
        },
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "excel_desktop_gate": "NO_REPAIR_WARNING_REQUIRED_FOR_PROMOTION"
    },
    "xlsx_export_architecture": {
        "default_mode": "hybrid_final",
        "summary_engine": "legacy_code_driven_generator",
        "daily_revenue_engine": "legacy_code_driven_generator",
        "revenue_chart_engine": "excel_safe_cell_based_chart_no_drawing_xml",
        "native_excel_chart": "disabled_by_root_cause_closure",
        "drawing_parts": "not_emitted",
        "rollback_modes": [
            "legacy_r9",
            "template_final",
            "template_r10b"
        ]
    },
    "r11_daily_inpatient_revenue_page_redesign": {
        "base": "11.0.11.14 / H11.0-P11.1-R10G",
        "target": "11.0.11.15 / H11.0-P11.1-R11",
        "scope": [
            "app/Views/inpatient_daily_revenue/index.php",
            "public/assets/css/inpatient-daily-revenue.css",
            "DDB_VERSION.json"
        ],
        "page_route": "inpatient-daily-revenue",
        "design_contract": {
            "executive_clarity_seconds": "3-5",
            "hero": "simple business context with branch, snapshot and Excel export",
            "kpis": [
                "patients_in_rooms",
                "total_daily_revenue",
                "average_per_patient",
                "automatic_coverage",
                "needs_review"
            ],
            "insight_sections": [
                "payer_concentration",
                "revenue_by_care_area",
                "patient_level_detail"
            ],
            "no_technical_ui_text": true,
            "no_implementation_plan_text": true
        },
        "calculation_rules_changed": false,
        "oracle_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "excel_export_changed": false
    },
    "powerbi_export_route": "inpatient-daily-revenue-powerbi-export",
    "powerpoint_export_route": "inpatient-daily-revenue-powerpoint-export",
    "excel_revenue_chart_sheet_removed": true,
    "advanced_visual_exports": [
        "Power BI data pack",
        "PowerPoint brief"
    ],
    "r12_1_export_integrity_closure": {
        "base": "11.0.11.16 / H11.0-P11.1-R12",
        "target": "11.0.11.17 / H11.0-P11.1-R12.1",
        "powerpoint_export": "template_based_editable_pptx_no_handcrafted_ooxml",
        "powerbi_export": "honestly_labeled_power_bi_data_pack_zip_not_pbix",
        "excel_export_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r12_2_page_and_export_refinement": {
        "automatic_coverage_removed_from_executive_page": true,
        "largest_payer_share_kpi_added": true,
        "power_bi_button_label": "Data Pack",
        "power_bi_file_type": "CSV_ZIP_DATA_PACK_NOT_PBIX",
        "powerpoint_brief_redesigned": true,
        "donut_center_overlap_removed": true,
        "payer_names_no_ellipsis": true,
        "excel_export_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "power_bi_export_policy": {
        "button_downloads": "ZIP_PACKAGE",
        "data_pack_included": true,
        "master_pbix_included_only_if_valid_server_file_exists": "resources/powerbi/Daily_Inpatient_Revenue_Master.pbix",
        "legacy_fallback_server_file": "resources/powerbi/NJCH_Daily_Revenue.pbix",
        "package_pbix_name": "Daily_Inpatient_Revenue_Master.pbix",
        "pbix_signature_gate": "PK_ZIP_CONTAINER_SIGNATURE",
        "cannot_generate_pbix_without_power_bi_desktop": true,
        "does_not_fabricate_pbix": true
    },
    "pptx_changes": "Approved executive five-slide PowerPoint template applied to export service for both NJCH and MNH; includes cover KPIs, detailed revenue snapshot, two-panel payer concentration, care-area performance, and top-five patient highlights.",
    "r13_powerbi_master_pbix_package_integration": {
        "base": "11.0.11.19 / H11.0-P11.1-R12.3",
        "target": "11.0.11.20 / H11.0-P11.1-R13",
        "scope": [
            "app/Services/PowerBiDailyRevenueExportService.php",
            "resources/powerbi/README.txt",
            "docs/H11_0_P11_1_R13_POWERBI_MASTER_PBIX_EXPORT_AR.md",
            "DDB_VERSION.json"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "excel_export_changed": false,
        "powerpoint_export_changed": false,
        "master_pbix_path": "resources/powerbi/Daily_Inpatient_Revenue_Master.pbix",
        "legacy_pbix_path": "resources/powerbi/NJCH_Daily_Revenue.pbix",
        "package_filename": "Daily_Inpatient_Revenue_Master.pbix",
        "missing_pbix_marker": "PBIX_NOT_INCLUDED.txt"
    },
    "r14_daily_revenue_executive_focus_micro_refinement": {
        "base": "11.0.11.20 / H11.0-P11.1-R13",
        "target": "11.0.11.21 / H11.0-P11.1-R14",
        "scope": [
            "app/Views/inpatient_daily_revenue/index.php",
            "public/assets/css/inpatient-daily-revenue.css",
            "DDB_VERSION.json"
        ],
        "data_pack_button_hidden_when_real_pbix_absent": true,
        "power_bi_button_shown_only_when_real_pbix_available": true,
        "donut_center": "TOTAL_DAILY_REVENUE_VALUE",
        "revenue_split_label_removed": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "excel_export_changed": false,
        "powerpoint_export_changed": false,
        "powerbi_export_service_changed": false
    },
    "r15_daily_revenue_executive_decision_view": {
        "base": "11.0.11.21 / H11.0-P11.1-R14",
        "target": "11.0.11.22 / H11.0-P11.1-R15",
        "scope": [
            "app/Views/inpatient_daily_revenue/index.php",
            "public/assets/css/inpatient-daily-revenue.css",
            "DDB_VERSION.json",
            "docs/H11_0_P11_1_R15_DAILY_REVENUE_EXECUTIVE_DECISION_VIEW_AR.md"
        ],
        "primary_kpis": [
            "total_daily_revenue",
            "patients_in_rooms",
            "average_per_patient",
            "needs_review"
        ],
        "payer_concentration": {
            "donut_center": "TOTAL_DAILY_REVENUE_VALUE",
            "top_payers": 5,
            "executive_insight": true
        },
        "care_area": {
            "highest_revenue_unit": true,
            "highest_occupancy_unit": true,
            "revenue_per_patient_context": true,
            "occupancy_na_when_bed_denominator_unavailable": true
        },
        "executive_attention": {
            "review_cases": true,
            "payer_concentration_threshold_pct": 50,
            "occupancy_threshold_pct": 90,
            "max_items": 3,
            "no_fabricated_alerts": true
        },
        "patient_highlights": {
            "sort": "DAILY_REVENUE_DESC",
            "initial_rows": 5,
            "view_all_button_preserved": true,
            "search_and_status_filter_preserved": true
        },
        "data_pack_ui_hidden": true,
        "power_bi_button_requires_real_pbix": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "excel_export_changed": false,
        "powerpoint_export_changed": false,
        "powerbi_export_service_changed": false
    },
    "r16_daily_revenue_general_manager_executive_polish": {
        "base": "11.0.11.22 / H11.0-P11.1-R15",
        "target": "11.0.11.23 / H11.0-P11.1-R16",
        "scope": [
            "app/Views/inpatient_daily_revenue/index.php",
            "app/Views/layouts/main.php",
            "public/assets/css/inpatient-daily-revenue.css",
            "DDB_VERSION.json",
            "docs/H11_0_P11_1_R16_DAILY_REVENUE_GENERAL_MANAGER_EXECUTIVE_POLISH_AR.md"
        ],
        "leadership_copy": {
            "hero_title": "Today's Inpatient Revenue Position",
            "payer_heading": "Current revenue concentration",
            "payer_insight": "Leadership insight",
            "care_area_heading": "Revenue and occupancy performance by care area",
            "attention_heading": "Leadership Attention",
            "patients_heading": "Top Inpatients by Daily Revenue"
        },
        "kpi_full_value_no_ellipsis": true,
        "attention_cards_compacted": true,
        "top5_patient_status_column_removed": true,
        "desktop_top5_horizontal_scroll_target": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "excel_export_changed": false,
        "powerpoint_export_changed": false,
        "powerbi_export_service_changed": false
    },
    "r17_powerpoint_executive_template_fidelity_closure": {
        "base": "11.0.11.23 / H11.0-P11.1-R16",
        "target": "11.0.11.24 / H11.0-P11.1-R17",
        "scope": [
            "app/Services/PowerPointDailyRevenueExportService.php",
            "resources/templates/daily_revenue_brief_template.pptx",
            "DDB_VERSION.json",
            "docs/H11_0_P11_1_R17_POWERPOINT_EXECUTIVE_TEMPLATE_FIDELITY_AR.md"
        ],
        "template_source": "Approved user-supplied NJCH_Daily_Revenue_Brief_2026-07-14 (2)_need to aply(1).pptx visual contract",
        "slides": 5,
        "applies_to": [
            "NJCH",
            "MNH"
        ],
        "top_payer_name_placeholder_added": true,
        "payer_mix_copy_removed": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "excel_export_changed": false,
        "power_bi_export_changed": false
    },
    "r18_revenue_general_manager_executive_view": {
        "base": "11.0.11.24 / H11.0-P11.1-R17",
        "target": "11.0.11.25 / H11.0-P11.1-R18",
        "scope": [
            "app/Views/revenue/index.php",
            "app/Controllers/RevenueController.php",
            "public/assets/css/executive-ui-core.css",
            "DDB_VERSION.json",
            "docs/H11_0_P11_1_R18_REVENUE_GENERAL_MANAGER_EXECUTIVE_VIEW_AR.md"
        ],
        "executive_information_architecture": [
            "Revenue & Financial Position hero",
            "Four primary KPI cards",
            "Revenue Composition",
            "Revenue Drivers",
            "Leadership Attention",
            "Financial Performance Trend",
            "Recommended Actions"
        ],
        "primary_kpis": [
            "current_period_revenue",
            "net_profit_or_loss",
            "insurance_revenue",
            "cash_revenue"
        ],
        "revenue_composition": {
            "insurance_and_cash_primary_split": true,
            "moh_shown_separately": true,
            "donut_center": "CURRENT_PERIOD_REVENUE"
        },
        "revenue_drivers": [
            "primary_revenue_source",
            "strongest_month",
            "current_direction_vs_comparison"
        ],
        "leadership_attention": {
            "no_fabricated_alerts": true,
            "signals": [
                "current_period_loss",
                "material_revenue_decline_or_growth",
                "high_insurance_concentration"
            ],
            "clear_state_when_no_issue": true
        },
        "technical_ui_text_removed": true,
        "legacy_contract_copy_removed_from_user_facing_error": true,
        "trend_tabs_preserved": 5,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "revenue_repository_changed": false,
        "oracle_sql_changed": false,
        "excel_export_changed": false,
        "powerpoint_export_changed": false,
        "powerbi_export_changed": false
    },
    "r19_chart_and_tooltip_standard": {
        "base": "11.0.11.25 / H11.0-P11.1-R18",
        "target": "11.0.11.26 / H11.0-P11.1-R19",
        "chart_redesign": {
            "wider_columns": true,
            "data_labels_on_columns": true,
            "month_labels_visible": true,
            "compact_axis_labels": true,
            "strong_current_comparison_palette": true,
            "horizontal_tab_scroll_removed": true,
            "responsive_tabs": true
        },
        "global_chart_interaction_rule": {
            "pointer_hover_tooltip_required": true,
            "touch_or_pointer_tap_supported": true,
            "bar_and_column_charts": true,
            "horizontal_bar_charts": true,
            "donut_and_pie_segments": true,
            "tooltip_content": "LABEL + SERIES_WHEN_APPLICABLE + FULL_VALUE + PERCENTAGE_WHEN_APPLICABLE"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "release_notes": [
        "R39: Redesigns the Executive Command Center for general-manager review with four primary KPIs, four leadership signals, a three-column hospital pulse, four focused decision panels, compact executive attention, and grounded next actions without technical copy.",
        "R33: Redesigns Doctor Performance Intelligence for general-manager review with compact controls, four KPIs, leadership signals, top-five horizontal doctor and specialty charts, overlap-safe revenue profiling, top-five-first doctor overview, and executive actions.",
        "R30: Isolates all three Specialty Finance ECharts cards, fits chart hosts to their real containers, prevents overflow into the executive detail section, and closes lower-page executive spacing.",
        "R29: General Manager decision closure for Specialty Finance with stronger executive signals, compact chart cards, grounded recommended actions, and no horizontal table scrolling.",
        "R28: Specialty Finance redesigned for general-manager executive use with four KPIs, leadership signals, three professional specialty charts, concise table, and recommended actions.",
        "R27: Fixes Daily Inpatient Revenue donut center presentation, removes legacy/new-layer interference, enlarges and recenters the donut, and standardizes care-area visible value formatting while preserving exact hover values.",
        "R26: fixes white-on-white smart labels and prevents ECharts bar/series disappearance or fading while moving the pointer between columns.",
        "R25: Added central smart data-label orchestration with collision detection, adaptive lanes, combined fallback, exact tooltip preservation, resize reflow, and donut-center simplification.",
        "R23: Smart professional chart labels, safer chart headroom, duplicate legend removal, normalized month labels, and centered donut text across the executive chart engine.",
        "R22: Migrated all major site charts to locally bundled Apache ECharts 6.1.0 with exact-value hover/touch tooltips and fallback preservation.",
        "R21: Executive chart visual closure with tighter axis scaling, reduced empty space, stronger wide columns, uncluttered data labels, and verified hover/tap value tooltips.",
        "R20: Full rebuild of executive revenue charts with stronger colors, wider columns, clearer axes, visible value labels, and enforced hover tooltips."
    ],
    "chart_engine": {
        "name": "Apache ECharts",
        "version": "6.1.0",
        "delivery": "LOCAL_VENDOR_BUNDLE_NO_CDN",
        "adapter": "public/assets/js/ddb-echarts-adapter.js",
        "fallback": "EXISTING_HTML_CANVAS_FALLBACK_PRESERVED_UNTIL_SUCCESSFUL_RENDER",
        "interaction_contract": "EXACT_VALUE_ON_HOVER_OR_TOUCH"
    },
    "chart_migration_scope": {
        "canvas_compare_charts": "ALL renderBarCompareChart callers sitewide",
        "specialty_finance_horizontal_charts": true,
        "revenue_composition_donut": true,
        "daily_inpatient_payer_donut": true,
        "daily_inpatient_care_area_bars": true,
        "dashboard_capacity_donut": true,
        "dashboard_occupancy_bars": true,
        "dashboard_specialty_ranking": true,
        "action_center_review_trend": true,
        "action_center_review_status_donut": true,
        "action_center_action_ranking": true,
        "operations_daily_bars": true,
        "operations_rank_lists": true,
        "micro_indicators": "Unified exact-value tooltip; remain compact HTML by design"
    },
    "r25_smart_data_label_orchestration": {
        "engine": "Apache ECharts 6.1.0",
        "policy": "ADAPTIVE_LANES_WITH_COMBINED_FALLBACK",
        "visible_values_priority": "MANDATORY_FOR_NON_ZERO_BAR_VALUES",
        "collision_detection": "BOUNDING_BOX_BASED",
        "placement_candidates": [
            "outside_top_bottom",
            "outward_shift",
            "secondary_lane",
            "inside_bar_when_safe",
            "combined_category_fallback"
        ],
        "tooltip_exact_value_preserved": true,
        "resize_reflow": true,
        "mixed_sign_support": true,
        "donut_center_policy": "AMOUNT_PRIMARY_CURRENCY_SECONDARY_NO_ELLIPSIS_DEPENDENCY"
    },
    "visits_executive_redesign": {
        "four_primary_kpis": true,
        "single_primary_chart_with_metric_tabs": true,
        "default_chart_months": 5,
        "new_followup_vertical_block_removed": true,
        "new_followup_horizontal_balance": true,
        "top_specialties_default": 5,
        "monthly_matrix_default_rows": 5,
        "supporting_details_collapsed_by_default": true,
        "technical_leadership_copy_removed": true,
        "oracle_writes": "NONE",
        "calculation_rules_changed": false
    },
    "r32_visits_full_matrix_interaction_hotfix": {
        "root_cause": "The View full matrix anchor targeted a closed details element. Native fragment navigation does not open the details element, so the user saw no visible response.",
        "resolution": "Open the supporting details element explicitly, target the full matrix card directly, update accessibility state, preserve keyboard behavior, and support direct/deep-link hashes.",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r33_doctor_performance_general_manager_redesign": {
        "base": "11.0.11.39 / H11.0-P11.1-R32",
        "target": "11.0.11.40 / H11.0-P11.1-R33",
        "executive_information_architecture": [
            "Compact comparison context and ranking controls",
            "Four primary doctor KPIs",
            "What leadership should know now decision lens",
            "Independent revenue profile measures",
            "Top five leading doctors horizontal chart",
            "Top five leading specialties horizontal chart",
            "Leading doctor performance overview with top-five-first disclosure",
            "Recommended leadership actions"
        ],
        "oversized_duplicate_hero_removed": true,
        "chart_default_items": 5,
        "horizontal_chart_labels_for_long_names": true,
        "exact_hover_values_preserved": true,
        "doctor_table_default_rows": 5,
        "doctor_table_expand_to": 10,
        "doctor_matrix_term_removed": true,
        "revenue_profile_overlap_safe": true,
        "technical_leadership_copy_removed": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "doctor_repository_changed": false,
        "oracle_sql_changed": false
    },
    "r34_beds_occupancy_general_manager_executive_redesign": {
        "base": "11.0.11.40 / H11.0-P11.1-R33",
        "target": "11.0.11.41 / H11.0-P11.1-R34",
        "oversized_duplicate_hero_removed": true,
        "primary_kpis": 4,
        "leadership_signals": 4,
        "default_unit_chart_limit": 5,
        "default_bed_chart_limit": 5,
        "unit_table_top_five_first": true,
        "view_all_units_toggle": true,
        "supporting_operational_details_collapsed": true,
        "professional_chart_engine": "Apache ECharts 6.1.0",
        "exact_hover_values_preserved": true,
        "controller_changed": false,
        "repository_changed": false,
        "oracle_sql_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r35_beds_unit_selector_width_hover_stability_hotfix": {
        "base": "11.0.11.41 / H11.0-P11.1-R34",
        "target": "11.0.11.42 / H11.0-P11.1-R35",
        "unit_selector_desktop_min_width_px": 340,
        "unit_selector_responsive": true,
        "beds_horizontal_stable_hover": true,
        "emphasis_visual_change_disabled_for_beds_horizontal_charts": true,
        "state_animation_duration_ms": 0,
        "exact_hover_tooltip_preserved": true,
        "controller_changed": false,
        "repository_changed": false,
        "oracle_sql_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r36_beds_filter_layout_no_overlap_hotfix": {
        "base": "11.0.11.42 / H11.0-P11.1-R35",
        "target": "11.0.11.43 / H11.0-P11.1-R36",
        "year_layout": [
            "View",
            "Year",
            "Unit",
            "Update view"
        ],
        "range_layout": [
            "View",
            "From",
            "To",
            "Unit",
            "Update view"
        ],
        "forced_unit_min_width_removed": true,
        "button_has_independent_grid_track": true,
        "mode_classes_synced": true,
        "responsive_no_overlap_contract": true,
        "controller_changed": false,
        "repository_changed": false,
        "echarts_adapter_changed": false,
        "oracle_sql_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r37_operations_recovery_general_manager_executive_decision_redesign": {
        "base": "11.0.11.43 / H11.0-P11.1-R36",
        "target": "11.0.11.44 / H11.0-P11.1-R37",
        "oversized_duplicate_hero_removed": true,
        "duplicate_period_cards_removed": true,
        "primary_kpis": 4,
        "leadership_signals": 4,
        "primary_chart_tabs": [
            "scheduled",
            "performed",
            "cancelled"
        ],
        "default_chart_months": 5,
        "top_specialties_default": 5,
        "top_doctors_default": 5,
        "full_monthly_detail_collapsed_by_default": true,
        "technical_executive_copy_removed": true,
        "controller_changed": false,
        "repository_changed": false,
        "parity_service_changed": false,
        "echarts_adapter_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r38_lab_radiology_general_manager_executive_redesign": {
        "base": "11.0.11.44 / H11.0-P11.1-R37",
        "target": "11.0.11.45 / H11.0-P11.1-R38",
        "oversized_duplicate_hero_removed": true,
        "duplicate_period_cards_removed": true,
        "technical_leadership_copy_removed": true,
        "kpi_cards": 4,
        "decision_signals": 4,
        "primary_chart_tabs": [
            "laboratory",
            "radiology"
        ],
        "default_chart_months": 5,
        "default_table_months": 5,
        "full_monthly_detail_collapsed": true,
        "view_all_months_interaction": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "controller_changed": false,
        "repository_changed": false,
        "parity_service_changed": false,
        "echarts_adapter_changed": false
    },
    "r39_executive_command_center_general_manager_decision_redesign": {
        "base": "11.0.11.45 / H11.0-P11.1-R38",
        "target": "11.0.11.46 / H11.0-P11.1-R39",
        "compact_hospital_position_hero": true,
        "primary_kpis": 4,
        "leadership_signals": 4,
        "hospital_pulse_cards": 6,
        "desktop_pulse_columns": 3,
        "decision_panels": [
            "Patient Flow",
            "Capacity & Occupancy",
            "Financial Position",
            "Clinical Contribution"
        ],
        "critical_alerts_max_visible": 2,
        "recommended_actions_max_visible": 3,
        "duplicate_bottom_quick_navigation_removed": true,
        "technical_executive_copy_removed": true,
        "controller_changed": false,
        "repository_changed": false,
        "oracle_sql_changed": false,
        "echarts_adapter_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r40_powerbi_pbix_trust_gate": {
        "base": "11.0.11.46 / H11.0-P11.1-R39",
        "target": "11.0.11.47 / H11.0-P11.1-R40",
        "gate_version": "DDB_POWERBI_PBIX_TRUST_GATE_V1",
        "acceptance_schema": "DDB_POWERBI_DESKTOP_ACCEPTANCE_V1",
        "master_pbix_path": "resources/powerbi/Daily_Inpatient_Revenue_Master.pbix",
        "legacy_pbix_path": "resources/powerbi/NJCH_Daily_Revenue.pbix",
        "raw_file_existence_gate_removed": true,
        "pk_signature_only_gate_superseded": true,
        "structural_heuristic_required": true,
        "sha256_bound_desktop_acceptance_required": true,
        "required_desktop_acceptance_gates": [
            "power_bi_desktop_open",
            "refresh_from_datapack",
            "njch_reconciliation",
            "mnh_reconciliation"
        ],
        "user_facing_package_fail_closed": true,
        "ui_and_export_share_same_status_source": true,
        "validation_manifest_in_accepted_package": "PBIX_VALIDATION.json",
        "local_qa": "13/13 PASS",
        "real_pbix_in_candidate": "NOT_PRESENT",
        "power_bi_desktop_acceptance": "PENDING",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "official_baseline_claimed": false,
        "required_receipt_metadata": [
            "accepted_at",
            "accepted_by",
            "evidence_reference"
        ]
    },
    "r41_executive_command_center_readability_typography_closure": {
        "base": "11.0.11.47 / H11.0-P11.1-R40",
        "target": "11.0.11.48 / H11.0-P11.1-R41",
        "scope": "Executive Command Center only",
        "explicit_dashboard_font_floor_px": 14,
        "executive_body_copy_px": "16-17",
        "kpi_labels_px": 14,
        "kpi_description_px": 16,
        "decision_signal_detail_px": 15,
        "panel_labels_px": 14,
        "action_title_px": 16,
        "action_description_px": 14,
        "topbar_kept_compact": true,
        "capacity_unit_truncation_removed": true,
        "ranking_label_truncation_removed": true,
        "arabic_body_readability_lift": true,
        "mobile_single_column_rules_preserved": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "official_baseline_claimed": false,
        "browser_acceptance_required": true
    },
    "r42_executive_dashboard_legacy_kpi_parity_live_reconciliation_closure": {
        "base": "11.0.11.48 / H11.0-P11.1-R41",
        "target": "11.0.11.49 / H11.0-P11.1-R42",
        "legacy_source": "ddb/files/home_main_conent.php",
        "legacy_contract": "DDB_LEGACY_EXECUTIVE_KPI_PARITY_V1",
        "required_metrics": [
            "opd",
            "er",
            "follow_up",
            "first_visits",
            "admissions",
            "discharges",
            "scheduled_operations",
            "performed_operations"
        ],
        "exact_parity_gate": "8/8 REQUIRED",
        "operational_day_separation": true,
        "legacy_today_metrics_use_operational_window": false,
        "expected_discharges_preserves_operational_window": true,
        "follow_up_restored_to_hospital_pulse": true,
        "first_visits_restored_to_hospital_pulse": true,
        "hospital_pulse_cards": 8,
        "desktop_pulse_columns": 4,
        "reconciliation_tool": "tools/executive-kpi-reconcile.php",
        "summary_table_schema_change_required": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": true,
        "official_baseline_claimed": false,
        "live_oracle_reconciliation_required": true,
        "browser_acceptance_required": true,
        "truth_boundary": "Missing Evidence is not PASS. Static SQL parity is not live numeric acceptance."
    },
    "r42_1_legacy_kpi_column_ownership_hotfix": {
        "base": "11.0.11.49 / H11.0-P11.1-R42",
        "target": "11.0.11.50 / H11.0-P11.1-R42.1",
        "incident_observed": "R42 browser showed dash for opd, er, follow_up and first_visits while the remaining four Legacy KPIs had numeric values.",
        "root_cause": "R42 incorrectly qualified the unqualified Legacy CLASSCODE predicate as RCP_SERVICE_RESERVATION.CLASSCODE (r.classcode). Legacy source and broader old code indicate CLASSCODE belongs to RCP_VISIT in this two-table contract.",
        "fix": "Resolve CLASSCODE ownership through the same exact-one-owner resolver used for other unqualified Legacy columns, then inject the resolved alias into all four affected SQL contracts.",
        "affected_metrics": [
            "opd",
            "er",
            "follow_up",
            "first_visits"
        ],
        "unaffected_numeric_metrics": [
            "admissions",
            "discharges",
            "scheduled_operations",
            "performed_operations"
        ],
        "generic_safe_number_logging_replaced_with_contextual_kpi_logging": true,
        "reconciliation_snapshot_isolated_per_metric": true,
        "oracle_schema_changes": "NONE",
        "oracle_business_data_writes": "NONE",
        "summary_refresh_required_after_apply": true,
        "required_live_gate": "8/8 exact numeric parity after summary refresh",
        "official_baseline_claimed": false,
        "truth_boundary": "Static PASS is not Live Oracle acceptance. Missing values are not PASS."
    },
    "r42_2_executive_hero_today_revenue_removal": {
        "reason": "The dashboard hero value sourced from T_INP_OUTP_REVENUE_BATCH (credit_value + cash_value by visit_end_date) can be misread as actual hospital cash received or fully recognized revenue.",
        "decision": "REMOVE_FROM_EXECUTIVE_HERO",
        "removed_label_en": "Today revenue",
        "removed_label_ar": "إيراد اليوم",
        "remaining_hero_cards": [
            "Hospital status",
            "Current occupancy",
            "Emergency pressure"
        ],
        "desktop_layout": "3_EQUAL_COLUMNS",
        "tablet_layout": "2_COLUMNS",
        "mobile_layout": "1_COLUMN",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "other_revenue_pages_changed": false,
        "official_baseline_claimed": false,
        "browser_acceptance": "PENDING"
    },
    "revenue_year_comparison_contract": {
        "current_year_rule": "JANUARY_THROUGH_LAST_COMPLETED_MONTH_EXCLUDING_CURRENT_MONTH",
        "past_year_rule": "JANUARY_THROUGH_DECEMBER",
        "same_months_applied_to_both_years": true,
        "visible_year_selection": true,
        "minimum_year": 2014
    },
    "r45_p2_1_revenue_end_to_end_request_trace": {
        "base": "11.0.11.57 / H11.0-P11.1-R45-P2",
        "target": "11.0.11.58 / H11.0-P11.1-R45-P2.1",
        "scope": "Revenue request tracing only",
        "server_timing_headers": true,
        "oracle_connection_timing": true,
        "revenue_query_timing": true,
        "profit_loss_timing": true,
        "view_render_timing": true,
        "browser_navigation_timing": true,
        "slow_resource_capture": true,
        "browser_evidence_path": "storage/evidence/revenue-trace",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "performance_fix_applied": false,
        "official_baseline_claimed": false
    },
    "r45_p2_2_1_sql_plan_and_page_acceptance": {
        "base": "11.0.11.59 / H11.0-P11.1-R45-P2.2",
        "target": "11.0.11.60 / H11.0-P11.1-R45-P2.2.1",
        "runtime_plan_capture": "DBMS_XPLAN.DISPLAY_CURSOR on the same Oracle session using GATHER_PLAN_STATISTICS",
        "explain_plan_writes_removed": true,
        "production_comparison_required": "2026_vs_2025",
        "cold_page_threshold_ms": 6000,
        "warm_page_threshold_ms": 3000,
        "minimum_browser_samples": 3,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false,
        "official_baseline_claimed": false,
        "browser_acceptance": "PENDING_LIVE_EVIDENCE"
    },
    "r45_p2_2_1_2_runtime_hotfix": {
        "base": "11.0.11.60 / H11.0-P11.1-R45-P2.2.1",
        "target": "11.0.11.61 / H11.0-P11.1-R45-P2.2.1.2",
        "root_cause": "Full-year revenue bundle selected month from VISIT_END_DATE while grouping by VISIT_MONTH, causing ORA-00979.",
        "fix": "Select VISIT_MONTH AS MONTHID so SELECT and GROUP BY expressions match exactly.",
        "dbms_xplan_fix": "Remove unsupported +CARDINALITY token from DISPLAY_CURSOR format.",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r45_p2_2_1_3_fix": {
        "base": "11.0.11.61 / H11.0-P11.1-R45-P2.2.1.2",
        "target": "11.0.11.62 / H11.0-P11.1-R45-P2.2.1.3",
        "root_cause": "Previous hotfix changed a different occurrence; the production monthlyRevenueBundle full-year query still selected a VISIT_END_DATE-derived month while grouping by VISIT_MONTH.",
        "fix": "The exact production full-year query now selects VISIT_MONTH AS MONTHID and groups by YEARID, VISIT_MONTH.",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r45_p3": {
        "base": "11.0.11.62 / H11.0-P11.1-R45-P2.2.1.3",
        "target": "11.0.11.63 / H11.0-P11.1-R45-P3",
        "feature_flag": "USE_REVENUE_SUMMARY=0 by default",
        "database_objects": [
            "DASH_REVENUE_SUMMARY_RUN_SEQ",
            "DASH_REVENUE_SUMMARY_RUN",
            "DASH_REVENUE_MONTHLY_STAGE",
            "DASH_REVENUE_MONTHLY_SUMMARY",
            "DASH_REFRESH_REVENUE_MONTHLY_SUMMARY"
        ],
        "source_table_writes": "NONE",
        "summary_layer_writes": "Only when explicit install/refresh options are run",
        "job_integration": "Prepared, not automatically applied"
    },
    "r45_p3_1": {
        "base": "11.0.11.63 / H11.0-P11.1-R45-P3",
        "target": "11.0.11.64 / H11.0-P11.1-R45-P3.1",
        "root_cause": "Oracle version enforces the legacy 30-character object-name limit.",
        "old_procedure_name": "DASH_REFRESH_REVENUE_MONTHLY_SUMMARY",
        "old_name_length": 36,
        "new_procedure_name": "DASH_REFRESH_REV_MONTH_SUM",
        "new_name_length": 26,
        "existing_summary_tables_changed": false,
        "source_table_writes": "NONE"
    },
    "r45_p4": {
        "base": "11.0.11.64 / H11.0-P11.1-R45-P3.1",
        "target": "11.0.11.65 / H11.0-P11.1-R45-P4",
        "scope": "Revenue comparison card UX only",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_rules_changed": false
    },
    "r45_p4_1": {
        "base": "11.0.11.65 / H11.0-P11.1-R45-P4",
        "target": "11.0.11.66 / H11.0-P11.1-R45-P4.1",
        "reverted_markup_to": "R45-P3.1 comparison card",
        "changes": [
            "Restored prior card hierarchy and content order",
            "Added outer border",
            "Added inner padding",
            "Added safe spacing between heading, notice and fields",
            "Improved field edge breathing room",
            "Preserved comparison logic and Summary Layer"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_changes": "NONE"
    },
    "r45_p4_1_1": {
        "base": "11.0.11.66 / H11.0-P11.1-R45-P4.1",
        "target": "11.0.11.67 / H11.0-P11.1-R45-P4.1.1",
        "scope": "CSS-only internal edge spacing",
        "layout_structure_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_changes": "NONE"
    },
    "r45_p5_0": {
        "base": "11.0.11.67 / H11.0-P11.1-R45-P4.1.1",
        "target": "11.0.11.68 / H11.0-P11.1-R45-P5.0",
        "scope": "Diagnostic profiler only",
        "datasets_profiled": 8,
        "source_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_changes": "NONE"
    },
    "r45_p5_1": {
        "base": "11.0.11.68 / H11.0-P11.1-R45-P5.0",
        "target": "11.0.11.69 / H11.0-P11.1-R45-P5.1",
        "scope": [
            "Consolidated monthly OPD and Emergency page query",
            "Sargable year predicates for visits, admissions, follow-up and payer mix",
            "Sargable daily trend date predicate",
            "Live numeric parity and timing evidence tool"
        ],
        "source_queries_changed": true,
        "layout_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "calculation_contract": "PRESERVED_PENDING_LIVE_PARITY"
    },
    "r45_p5_1_1": {
        "base": "11.0.11.69 / H11.0-P11.1-R45-P5.1",
        "target": "11.0.11.70 / H11.0-P11.1-R45-P5.1.1",
        "shared_contract": "FairYearComparisonPolicy",
        "current_year_rule": "Exclude incomplete current month and compare the same completed months in both years",
        "monthly_visual_rows_trimmed": true,
        "live_today_and_14_day_metrics_preserved": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r45_p6_0": {
        "base": "11.0.11.70 / H11.0-P11.1-R45-P5.1.1",
        "target": "11.0.11.71 / H11.0-P11.1-R45-P6.0",
        "scope": "Diagnostic monthly-grain discovery only",
        "source_logic_changed": false,
        "layout_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "next_gate": "P6.1 requires READY result with a proven month/date column"
    },
    "r45_p6_0_1": {
        "base": "11.0.11.71 / H11.0-P11.1-R45-P6.0",
        "target": "11.0.11.72 / H11.0-P11.1-R45-P6.0.1",
        "current_year_always_visible": true,
        "current_year_default": true,
        "missing_data_guard": true,
        "fabricated_financial_results": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r45_p6_0_2": {
        "base": "11.0.11.72 / H11.0-P11.1-R45-P6.0.1",
        "target": "11.0.11.73 / H11.0-P11.1-R45-P6.0.2",
        "scope": "Discover Oracle producer and refresh mechanism for KPI_DOCTOR_PERF_DETAIL_JOB",
        "source_logic_changed": false,
        "page_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "next_gate": "Inspect exact producer candidate before creating 2026 refresh fix"
    },
    "r45_p6_1": {
        "base": "11.0.11.73 / H11.0-P11.1-R45-P6.0.2",
        "target": "11.0.11.74 / H11.0-P11.1-R45-P6.1",
        "proven_month_column": "MONTHID",
        "current_year_rule": "Exclude incomplete current month and compare same completed months",
        "applies_to": [
            "summary",
            "cards",
            "rankings",
            "charts",
            "matrix",
            "leadership signals"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_parity": "REQUIRED"
    },
    "r45_p7_1": {
        "base": "11.0.11.74 / H11.0-P11.1-R45-P6.1",
        "target": "11.0.11.75 / H11.0-P11.1-R45-P7.1",
        "proven_month_column": "MONTHID",
        "current_year_rule": "Exclude incomplete current month and compare same completed months",
        "applies_to": [
            "summary",
            "cards",
            "top_doctors",
            "specialties",
            "revenue_mix",
            "charts",
            "table",
            "leadership_signals"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_parity": "REQUIRED"
    },
    "r45_p7_1_1": {
        "base": "11.0.11.75 / H11.0-P11.1-R45-P7.1",
        "target": "11.0.11.76 / H11.0-P11.1-R45-P7.1.1",
        "scope": "Doctors comparison control card layout only",
        "fair_comparison_logic": "PRESERVED",
        "sql_changes": "NONE",
        "calculation_changes": "NONE",
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r45_p7_1_2": {
        "base": "11.0.11.76 / H11.0-P11.1-R45-P7.1.1",
        "target": "11.0.11.77 / H11.0-P11.1-R45-P7.1.2",
        "root_cause": [
            "Fair comparison notice remained inside the controls form",
            "CSS asset query identity was unchanged, allowing stale browser CSS"
        ],
        "changes": [
            "Moved fair comparison notice outside the form",
            "Made notice span both card columns",
            "Aligned comparison context and fields at the top",
            "Removed empty upper-left and lower-right regions",
            "Changed executive-ui-core.css cache identity"
        ],
        "fair_comparison_logic": "PRESERVED",
        "sql_changes": "NONE",
        "calculation_changes": "NONE",
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r45_p8_1": {
        "base": "11.0.11.77 / H11.0-P11.1-R45-P7.1.2",
        "target": "11.0.11.78 / H11.0-P11.1-R45-P8.1",
        "scope": "Beds & Occupancy year comparison and fair current-year contract",
        "current_year_rule": "Exclude incomplete current month and compare the same completed months",
        "live_snapshot_rule": "Current occupancy, occupied beds and available beds remain live current facts",
        "historical_comparison_applies_to": [
            "overall period utilization",
            "selected unit utilization",
            "unit ranking",
            "unit comparison table",
            "selected-unit bed comparison"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED"
    },
    "r45_p8_2": {
        "base": "11.0.11.78 / H11.0-P11.1-R45-P8.1",
        "target": "11.0.11.79 / H11.0-P11.1-R45-P8.2",
        "root_cause": "P8.1 compared values in the table and one KPI but left historical charts and several leadership elements as primary-period-only views.",
        "comparison_applied_to": [
            "overall utilization KPI",
            "selected unit KPI",
            "largest increase KPI",
            "largest decline KPI",
            "executive comparison signals",
            "unit grouped comparison chart",
            "selected-unit bed grouped comparison chart",
            "comparison summary card",
            "capacity priorities",
            "unit table",
            "bed table",
            "recommended actions"
        ],
        "live_snapshot_isolated": [
            "current occupancy",
            "occupied beds",
            "available beds",
            "total beds"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED"
    },
    "r45_p8_3": {
        "base": "11.0.11.79 / H11.0-P11.1-R45-P8.2",
        "target": "11.0.11.80 / H11.0-P11.1-R45-P8.3",
        "scope": "Complete executive UX redesign of Beds comparison page",
        "executive_hierarchy": [
            "compact comparison controls",
            "single executive capacity position",
            "live snapshot integrated into hero",
            "one main unit comparison chart",
            "three-item decision agenda",
            "selected unit drill-down",
            "supporting tables collapsed by default"
        ],
        "comparison_logic": "PRESERVED",
        "sql_changes": "NONE",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p8_3_1": {
        "base": "11.0.11.80 / H11.0-P11.1-R45-P8.3",
        "target": "11.0.11.81 / H11.0-P11.1-R45-P8.3.1",
        "root_cause": "The page defaulted to ICU while the hero metrics were all-units totals, creating an ambiguous scope.",
        "default_scope": "ALL_UNITS",
        "all_units_behavior": [
            "overall utilization from all units",
            "all-unit movement and decision agenda",
            "top-unit comparison chart",
            "no bed-level query"
        ],
        "specific_unit_behavior": [
            "hero utilization changes to selected unit",
            "narrative changes to selected unit",
            "chart changes to selected unit scope",
            "bed-level drill-down becomes visible"
        ],
        "live_snapshot_scope": "HOSPITAL_NOW",
        "oracle_writes": "NONE",
        "database_changes": "NONE"
    },
    "r45_p9": {
        "base": "11.0.11.81 / H11.0-P11.1-R45-P8.3.1",
        "target": "11.0.11.82 / H11.0-P11.1-R45-P9",
        "fair_current_year_rule": "Exclude incomplete current month and compare the same completed months",
        "comparison_applied_to": [
            "scheduled operations",
            "performed operations",
            "cancelled operations",
            "completion rate",
            "monthly chart",
            "monthly decision signals",
            "specialty concentration",
            "doctor concentration",
            "operating rooms"
        ],
        "executive_hierarchy": [
            "compact controls",
            "single executive position",
            "one main chart",
            "three-item decision agenda",
            "comparison concentration",
            "supporting detail collapsed by default"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p9_1": {
        "base": "11.0.11.82 / H11.0-P11.1-R45-P9",
        "target": "11.0.11.83 / H11.0-P11.1-R45-P9.1",
        "ranking_contract": "CURRENT_PERIOD_VALUE_DESC",
        "leader_zero_current_policy": "EXCLUDED_FROM_LEADER_LISTS",
        "zero_current_loss_policy": "SURFACED_AS_INDEPENDENT_DECISION_SIGNAL",
        "topbar_contract": "FLOW_SAFE_NON_OVERLAY_FOR_OPERATIONS",
        "period_label_wrap": "FIXED",
        "chart_hover_stability": "ENABLED",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p10": {
        "base": "11.0.11.83 / H11.0-P11.1-R45-P9.1",
        "target": "11.0.11.84 / H11.0-P11.1-R45-P10",
        "fair_current_year_rule": "Exclude incomplete current month and compare the same completed months",
        "comparison_applied_to": [
            "laboratory totals",
            "radiology totals",
            "combined diagnostic activity",
            "service shares",
            "monthly chart",
            "weakest and strongest month",
            "monthly supporting table"
        ],
        "query_contract": "DATE_RANGE_SARGABLE",
        "executive_hierarchy": [
            "compact controls",
            "single executive position",
            "one main chart with three metrics",
            "three-item decision agenda",
            "service balance",
            "supporting detail collapsed by default"
        ],
        "topbar_contract": "FLOW_SAFE_NON_OVERLAY",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p10_1": {
        "base": "11.0.11.84 / H11.0-P11.1-R45-P10",
        "target": "11.0.11.85 / H11.0-P11.1-R45-P10.1",
        "functional_logic_preserved": [
            "fair current-year comparison",
            "same completed months",
            "all matched months",
            "sargable date ranges",
            "combined laboratory and radiology chart",
            "collapsed supporting detail"
        ],
        "visual_changes": [
            "restore light KPI cards",
            "restore light executive insight summary",
            "red for decreases",
            "green for increases",
            "retain service tone accents without using them for movement meaning"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "PRESERVED_FROM_R45_P10",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p9_2": {
        "base": "11.0.11.85 / H11.0-P11.1-R45-P10.1",
        "target": "11.0.11.86 / H11.0-P11.1-R45-P9.2",
        "functional_logic_preserved": [
            "fair current-year comparison",
            "same completed months",
            "current-period leader ranking",
            "zero-current leader exclusion",
            "independent activity-loss signal",
            "stable chart hover",
            "flow-safe header"
        ],
        "visual_changes": [
            "replace dark operations hero with four light KPI cards",
            "restore light executive insight summary",
            "green for positive operational movement",
            "red for negative operational movement",
            "cancellation increase is red and cancellation decrease is green"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "PRESERVED_FROM_R45_P9.1",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p8_4": {
        "base": "11.0.11.86 / H11.0-P11.1-R45-P9.2",
        "target": "11.0.11.87 / H11.0-P11.1-R45-P8.4",
        "functional_logic_preserved": [
            "all-units default scope",
            "unit-specific recalculation",
            "fair current-year comparison",
            "same completed months",
            "live capacity independent of selected years",
            "unit comparison chart",
            "selected-unit bed comparison",
            "collapsed supporting detail"
        ],
        "visual_changes": [
            "replace dark capacity hero with four light KPI cards",
            "restore light executive insight summary",
            "green for utilization increase",
            "red for utilization decrease",
            "red review signal when units decline",
            "flow-safe header on Beds page"
        ],
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "PRESERVED_FROM_R45_P8.3.1",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_1": {
        "base": "11.0.11.87 / H11.0-P11.1-R45-P8.4",
        "target": "11.0.11.88 / H11.0-P11.1-R45-P11.1",
        "scope": "Prevent deferred or unapproved branches from being selected or used in live dashboard requests",
        "permissions_scope": "DEFERRED_TO_FUTURE_USER_LEVEL_AUTHORIZATION_SYSTEM",
        "ready_live_branches": [
            "njch",
            "mnh"
        ],
        "blocked_branch": "jckh",
        "enforcement_layers": [
            "default hospital resolution",
            "login backend",
            "existing session recovery",
            "branch switch backend",
            "branch switch modal",
            "Revenue direct branch query",
            "Revenue branch selector"
        ],
        "blocked_direct_request_behavior": "retain active approved branch and show user-facing message",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2": {
        "base": "11.0.11.88 / H11.0-P11.1-R45-P11.1",
        "target": "11.0.11.89 / H11.0-P11.1-R45-P11.2",
        "legacy_gap": "LEG-GAP-001",
        "route": "branch-comparison",
        "branches": [
            "njch",
            "mnh"
        ],
        "deferred_branches_excluded": [
            "jckh"
        ],
        "legacy_domains": [
            "outpatient visits",
            "patient admissions",
            "emergency visits",
            "scheduled operations",
            "laboratory tests",
            "radiology tests"
        ],
        "comparison_contract": "MATCHED_PERIODS_CURRENT_MONTH_EXCLUDED",
        "query_count_contract": "FOUR_CONSOLIDATED_READ_ONLY_QUERIES",
        "partial_fallback": "PROHIBITED",
        "zero_substitution_on_branch_failure": "PROHIBITED",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_numeric_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_1": {
        "base": "11.0.11.89 / H11.0-P11.1-R45-P11.2",
        "target": "11.0.11.90 / H11.0-P11.1-R45-P11.2.1",
        "root_cause": "Oracle rejected ORDER BY metric_key in a UNION ALL compound query with ORA-00904",
        "fix": "ORDER_BY_POSITION_1_2",
        "data_contract_changed": false,
        "branch_scope_changed": false,
        "query_count_changed": false,
        "ui_hardening": "Raw PDO and server path details are no longer rendered to end users",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_oracle_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_2": {
        "base": "11.0.11.90 / H11.0-P11.1-R45-P11.2.1",
        "target": "11.0.11.91 / H11.0-P11.1-R45-P11.2.2",
        "required_env": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "apply_behavior": "UPSERT_EXISTING_ENV_WITH_BACKUP_AND_WITHOUT_OVERWRITING_OTHER_KEYS",
        "duplicate_active_keys": "REMOVED",
        "credentials_preserved": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "runtime_acceptance": "REQUIRED"
    },
    "r45_p11_2_3": {
        "base": "11.0.11.91 / H11.0-P11.1-R45-P11.2.2",
        "target": "11.0.11.92 / H11.0-P11.1-R45-P11.2.3",
        "root_cause": "CLINIC_ID was incorrectly forced to alias r although the live Oracle schema does not expose r.CLINIC_ID",
        "fix": "RESTORE_UNQUALIFIED_LEGACY_EMERGENCY_COLUMNS",
        "legacy_condition": "NVL(outpta_emergency_type,0)=1 OR clinic_id IN (16,297,298)",
        "order_by_hotfix_preserved": "ORDER BY 1, 2",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "live_acceptance_behavior": "STRUCTURED_JSON_ON_ORACLE_FAILURE",
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_oracle_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_4": {
        "base": "11.0.11.92 / H11.0-P11.1-R45-P11.2.3",
        "target": "11.0.11.93 / H11.0-P11.1-R45-P11.2.4",
        "scope": "Executive-first redesign of Branch Comparison without changing Oracle contracts",
        "executive_layers": [
            "single leadership headline",
            "four decision KPIs",
            "one normalized movement chart",
            "three-item decision agenda",
            "six-row domain decision matrix",
            "lazy monthly deep dives"
        ],
        "initial_visible_monthly_charts": 0,
        "detail_charts": 6,
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "branch_scope_changed": false,
        "fair_comparison_preserved": true,
        "order_by_hotfix_preserved": "ORDER BY 1, 2",
        "emergency_column_hotfix_preserved": true,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_oracle_acceptance": "PRESERVED_FROM_R45_P11_2_3_AND_RECOMMENDED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_5": {
        "base": "11.0.11.93 / H11.0-P11.1-R45-P11.2.4",
        "target": "11.0.11.94 / H11.0-P11.1-R45-P11.2.5",
        "scope": "Remove technical copy and add complete branch, monthly and service comparison",
        "visible_sections": [
            "period controls",
            "leadership summary",
            "four priority indicators",
            "service movement chart",
            "decision agenda",
            "two branch scorecards",
            "monthly improvement chart",
            "monthly highlights",
            "six service comparison cards",
            "monthly detail drill-down"
        ],
        "technical_copy_removed": [
            "Oracle",
            "read-only",
            "approved branches counts",
            "domain readiness counts",
            "query descriptions"
        ],
        "horizontal_matrix_removed": true,
        "branch_profiles": true,
        "monthly_consistency": true,
        "service_cards": 6,
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "branch_scope_changed": false,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_6": {
        "base": "11.0.11.94 / H11.0-P11.1-R45-P11.2.5",
        "target": "11.0.11.95 / H11.0-P11.1-R45-P11.2.6",
        "scope": "Replace ambiguous monthly consistency chart with direct monthly service movement",
        "removed": [
            "monthly consistency bar chart",
            "best month wording",
            "weakest month wording"
        ],
        "added": [
            "six monthly cards",
            "improved service count",
            "declined service count",
            "stable service count",
            "most service improvements",
            "most service declines",
            "tie-aware month labels"
        ],
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_7": {
        "base": "11.0.11.95 / H11.0-P11.1-R45-P11.2.6",
        "target": "11.0.11.96 / H11.0-P11.1-R45-P11.2.7",
        "scope": "Replace dense monthly service cards with a concise leadership pulse",
        "monthly_pulse_rows": 2,
        "monthly_pulse_cells": 12,
        "monthly_insights": 3,
        "removed_from_branch_cards": [
            "months with broader improvement",
            "best month",
            "weakest month"
        ],
        "monthly_insight_labels": [
            "latest completed month",
            "month requiring review",
            "largest monthly difference"
        ],
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_2_8": {
        "base": "11.0.11.96 / H11.0-P11.1-R45-P11.2.7",
        "target": "11.0.11.97 / H11.0-P11.1-R45-P11.2.8",
        "scope": "Remove cryptic monthly numeric shorthand and replace it with direct management language",
        "removed": [
            "5↑ 1↓ style notation",
            "3↑ 3↓ style notation",
            "numeric-only latest month summaries",
            "numeric-only branch divergence summaries"
        ],
        "management_messages": [
            "Broad improvement — 5 of 6 service areas improved",
            "Broad decline — 6 of 6 service areas declined",
            "Balanced movement — 3 improved · 3 declined"
        ],
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_3": {
        "base": "11.0.11.97 / H11.0-P11.1-R45-P11.2.8",
        "target": "11.0.11.98 / H11.0-P11.1-R45-P11.3",
        "scope": "Full service-first rebuild of Branch Comparison",
        "rejected_concepts_removed": [
            "mixed-unit branch totals",
            "service counts as performance indicators",
            "broad improvement and broad decline labels",
            "monthly pulse based on counts",
            "overall branch winner",
            "branch score derived from heterogeneous services"
        ],
        "executive_sections": [
            "named services increased and decreased by branch",
            "largest service declines requiring review",
            "strongest named service increases",
            "six service-by-service comparison cards",
            "latest completed month with named services",
            "interactive monthly trend for one selected service",
            "exact monthly values for the selected service"
        ],
        "mixed_service_totals_used": false,
        "cross_service_score_used": false,
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "branch_scope_changed": false,
        "fair_comparison_preserved": true,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "live_oracle_acceptance": "RECOMMENDED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p11_3_1": {
        "base": "11.0.11.98 / H11.0-P11.1-R45-P11.3",
        "target": "11.0.11.99 / H11.0-P11.1-R45-P11.3.1",
        "root_cause": "PHP 8 match expression was not supported by the XAMPP PHP runtime",
        "fix": "Replaced both match expressions with PHP 7-compatible switch statements",
        "compatibility_gate": [
            "forbid match expressions",
            "forbid nullsafe operator",
            "forbid PHP attributes",
            "forbid arrow functions in changed runtime files"
        ],
        "functional_logic_changed": false,
        "oracle_contract_changed": false,
        "query_count_changed": false,
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p12_0": {
        "base": "11.0.11.99 / H11.0-P11.1-R45-P11.3.1",
        "target": "11.0.12.0 / H11.0-P12.0",
        "scope": "Recover and prove Admissions and Outpatient Visits contracts by specialty",
        "source_table": "KPI_DOCTOR_PERF_DETAIL_JOB",
        "metrics": {
            "outpatient_visits": "TOTAL_OP_VISITS",
            "admissions": "TOTAL_INPAT_VISITS"
        },
        "required_grain": [
            "YEARID",
            "MONTHID",
            "SPECIAL_SPEC_ID",
            "SPECIAL_SPEC_EN_NAME",
            "doctor identity"
        ],
        "aggregation": "specialty + doctor deduplication before specialty totals",
        "period_comparison": true,
        "monthly_comparison": true,
        "doctor_total_reconciliation": true,
        "silent_zero_fallback": false,
        "ui_integration": "DEFERRED_UNTIL_LIVE_PASS",
        "specialty_finance_view_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "live_acceptance": "REQUIRED"
    },
    "r45_p12_0_1": {
        "base": "11.0.12.0 / H11.0-P12.0",
        "target": "11.0.12.1 / H11.0-P12.0.1",
        "root_cause": "The combined comparison intentionally retained a specialty or month when either year had activity. The year-specific reference correctly omitted the zero-only side, creating false identity mismatches.",
        "observed_proof": {
            "value_differences": 0,
            "current_reconciliation_difference": {
                "outpatient_visits": 0,
                "admissions": 0
            },
            "compare_reconciliation_difference": {
                "outpatient_visits": 0,
                "admissions": 0
            }
        },
        "normalization": "Exclude a row from one year-side parity map only when both Admissions and Outpatient Visits are zero for that side.",
        "combined_comparison_rows_preserved": true,
        "new_or_discontinued_specialty_detection_preserved": true,
        "repository_query_changed": false,
        "activity_values_changed": false,
        "ui_integration": "DEFERRED_UNTIL_LIVE_PASS",
        "specialty_finance_view_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "live_acceptance": "REQUIRED"
    },
    "r45_p12_1": {
        "base": "11.0.12.1 / H11.0-P12.0.1",
        "target": "11.0.12.2 / H11.0-P12.1",
        "live_contract_evidence": "SPECIALTY_FINANCE_R45_P12_0_1_ACTIVITY_LIVE_ACCEPTANCE_20260718_005850.json",
        "live_contract_status": "PASS",
        "scope": "Integrate verified Admissions and Outpatient Visits into Specialty Finance",
        "ui_sections": [
            "Outpatient Visits period KPI",
            "Admissions period KPI",
            "named specialty activity signals",
            "complete specialty activity comparison table",
            "interactive monthly activity chart by specialty",
            "Outpatient and Admissions metric tabs"
        ],
        "verified_totals": {
            "2026_JAN_JUN": {
                "outpatient_visits": 62983,
                "admissions": 1149
            },
            "2025_JAN_JUN": {
                "outpatient_visits": 64166,
                "admissions": 1351
            }
        },
        "revenue_per_visit_inferred": false,
        "revenue_per_admission_inferred": false,
        "financial_metrics_preserved": true,
        "repository_query_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "browser_acceptance": "REQUIRED"
    },
    "r45_p12_1_1": {
        "base": "11.0.12.2 / H11.0-P12.1",
        "target": "11.0.12.3 / H11.0-P12.1.1",
        "scope": "Executive design refinement for verified activity integration",
        "design_changes": [
            "flow-safe non-overlay topbar",
            "professional patient activity heading",
            "removed developer-oriented interpretation card",
            "single activity metric switch controls signals, table and chart",
            "four-column activity table",
            "removed desktop horizontal table scroll",
            "six initial specialty rows",
            "two relevant signals visible per selected metric",
            "more compact KPI and chart layout"
        ],
        "activity_values_changed": false,
        "repository_query_changed": false,
        "controller_data_logic_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "browser_acceptance": "REQUIRED"
    },
    "r45_p12_1_2": {
        "base": "11.0.12.3 / H11.0-P12.1.1",
        "target": "11.0.12.4 / H11.0-P12.1.2",
        "root_causes": [
            "The metric-state CSS selector targeted sf28-page instead of sf121-activity.",
            "Monthly Activity Trend defaulted to one specialty."
        ],
        "fixes": [
            "restore highest-volume and largest-decline cards",
            "restore activity table values",
            "add All Specialties aggregate monthly chart",
            "make All Specialties the default",
            "stack Specialty Detail and Monthly Activity Trend",
            "show five specialty rows initially"
        ],
        "activity_values_changed": false,
        "oracle_query_changed": false,
        "aggregate_chart_added": true,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p13_0": {
        "base": "11.0.12.4 / H11.0-P12.1.2",
        "target": "11.0.13.0 / H11.0-P13.0",
        "scope": "Restore searchable multi-select specialty filter in Doctors",
        "source_table": "KPI_DOCTOR_PERF_DETAIL_JOB",
        "specialty_identity": "SPECIAL_SPEC_ID",
        "specialty_label": "SPECIAL_SPEC_EN_NAME",
        "doctor_identity": "EMP_ID",
        "filter_applies_to": [
            "summary cards",
            "active doctors",
            "leadership signals",
            "revenue profile",
            "doctor ranking",
            "specialty ranking",
            "charts",
            "doctor performance table"
        ],
        "default_scope": "ALL_SPECIALTIES",
        "multi_select": true,
        "search": true,
        "clear_selection": true,
        "bind_parameters_only": true,
        "silent_invalid_id_fallback": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "live_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p13_0_1": {
        "base": "11.0.13.0 / H11.0-P13.0",
        "target": "11.0.13.1 / H11.0-P13.0.1",
        "observed_failure": [
            "specialty option list unavailable",
            "Doctors workspace unavailable because filter discovery was treated as a fatal dependency"
        ],
        "fixes": [
            "replace nested specialty discovery query with direct grouped Oracle query",
            "bind specialty filter parameters in revenueMix",
            "keep Doctors report available on All Specialties if filter discovery fails",
            "remove duplicate no-results message when no options exist",
            "add dedicated live specialty discovery acceptance"
        ],
        "doctor_data_rules_changed": false,
        "specialty_filter_contract_changed": false,
        "oracle_writes": "NONE",
        "database_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "revenue_summary_env_preserved": {
            "USE_REVENUE_SUMMARY": "1",
            "REVENUE_SUMMARY_MAX_AGE_HOURS": "30"
        },
        "live_discovery_acceptance": "REQUIRED",
        "live_filter_parity_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p14_0": {
        "base": "11.0.13.1 / H11.0-P13.0.1",
        "target": "11.0.14.0 / H11.0-P14.0",
        "protected_roles": {
            "SITE_ADMIN": {
                "policy": "ALL",
                "auto_include_new": true,
                "all_branches": true,
                "editable": false
            },
            "GENERAL_MANAGER": {
                "policy": "ALL_BUSINESS",
                "auto_include_new": true,
                "settings_excluded_by_default": true,
                "editable_by_site_admin": true
            }
        },
        "security_schema": [
            "DASH_ACL_ROLES",
            "DASH_ACL_USER_ROLES",
            "DASH_ACL_ROLE_OVERRIDES",
            "DASH_ACL_USER_BRANCHES",
            "DASH_ACL_AUDIT"
        ],
        "route_guard": true,
        "sidebar_guard": true,
        "controller_guard_migration": true,
        "branch_scope_enforcement": true,
        "legacy_fallback": "HYBRID_NO_LOCKOUT",
        "jckh": "DEFERRED",
        "php_runtime_target": "7.4.30",
        "database_changes": "IDEMPOTENT_ACL_SCHEMA_INSTALL_REQUIRED",
        "oracle_writes": "SECURITY_SCHEMA_INSTALL_ONLY",
        "live_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED",
        "action_center_routes_secured": true,
        "leadership_huddle_route_restored": true
    },
    "r45_p14_1": {
        "base": "11.0.14.0 / H11.0-P14.0",
        "target": "11.0.14.1 / H11.0-P14.1",
        "scope": "Practical redesign of Users and Access administration",
        "observed_problems": [
            "technical role explanation dominated the page",
            "user assignment controls were difficult to understand",
            "assignments appeared as unreadable encoded chips",
            "permission matrix exposed implementation terminology",
            "no clear user directory with role and branch context"
        ],
        "new_sections": [
            "Users",
            "General Manager Access",
            "Change History"
        ],
        "user_access_model": {
            "one_protected_role_per_user": true,
            "clear_protected_role_supported": true,
            "site_admin_is_protected": true,
            "general_manager_branch_scope": [
                "all active branches",
                "selected branches"
            ]
        },
        "general_manager_editor": {
            "binary_page_switches": true,
            "business_access_default_on": true,
            "settings_security_default_off": true,
            "automatic_policy_preserved": true,
            "recommended_policy_reset": true
        },
        "database_schema_changes": "NONE",
        "oracle_writes": "NONE",
        "user_admin_actions_write_control_data": true,
        "php_runtime_target": "7.4.30",
        "live_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "r45_p14_2": {
        "base": "11.0.14.1 / H11.0-P14.1",
        "target": "11.0.14.2 / H11.0-P14.2",
        "scope": "Professional role creation, editing and access UI stabilization",
        "observed_ui_defects": [
            "hidden Select a user panel remained visible after user selection",
            "large blank area above the user editor",
            "role administration was limited to General Manager permissions",
            "users could not be assigned custom roles"
        ],
        "role_management": {
            "create_custom_roles": true,
            "edit_custom_roles": true,
            "edit_general_manager": true,
            "site_administrator_immutable": true,
            "deactivate_unused_custom_roles": true,
            "one_active_role_per_user": true,
            "role_descriptions_bilingual": true,
            "access_templates": [
                "EXPLICIT",
                "ALL_BUSINESS"
            ],
            "permission_switches": true,
            "branch_default": true
        },
        "user_assignment": {
            "assign_any_active_role": true,
            "return_to_legacy_access": true,
            "all_branches_wildcard": true,
            "selected_branch_scope": true
        },
        "schema_upgrade": {
            "description_columns": true,
            "one_role_unique_index": true,
            "writes": "DDL_AND_CONTROL_METADATA_ONLY"
        },
        "patch_oracle_writes": "NONE",
        "database_business_data_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "live_acceptance": "REQUIRED",
        "browser_acceptance": "REQUIRED"
    },
    "diar4a": {
        "revision": "DIAR4A-R1-WINDOWS-NO-SHELL-SAFE-MERGE",
        "control_database": "ORANJC",
        "control_schema": "WATANY",
        "source_operational_writes": "NONE",
        "application_integration": "MARKER_BASED_ATOMIC_MERGE",
        "previous_release": "11.0.15.0",
        "previous_phase": "DIAR-4A-R1"
    },
    "diar4b": {
        "target": "11.0.16.0 / DIAR-4B",
        "scope": "Investigation Case Management",
        "control_database": "NJCH/ORANJC",
        "control_schema": "WATANY",
        "source_run": "DIAR3R2_20260718_222259_984c86",
        "source_cases": 3421,
        "review_entities": 2913,
        "correlated_events": 10,
        "event_members": 535,
        "suppressed_members_preserved": 518,
        "operational_oracle_writes": "NONE",
        "status": "CANDIDATE_PENDING_LIVE_ACCEPTANCE"
    },
    "diar_ui1": {
        "phase": "DIAR-UI-1",
        "release": "R3",
        "scope": "Unified DIAR navigation plus Arabic RTL sidebar continuity across desktop, tablet and mobile",
        "deployment_mode": "APPLICATION_READ_ONLY_DUAL_CONNECTION",
        "oracle_ddl": "NONE",
        "oracle_writes": "NONE",
        "mm_access": "NONE",
        "daily_fact_query_limit_days": 31,
        "statistical_conclusions_enabled": false,
        "scheduler_enabled": false,
        "responsive_gate": {
            "desktop": "1600x1000",
            "tablet": "900x1200",
            "mobile": "390x844",
            "languages": [
                "en",
                "ar"
            ],
            "renders": 24
        },
        "navigation_contract": "ONLY_UNIFIED_DIAR_PAGES_APPEAR_AS_TABS",
        "legacy_module_access": "MAIN_NAVIGATION_ONLY_UNTIL_CONTROLLED_INTEGRATION",
        "sidebar_rtl_contract": "ARABIC_RIGHT_ANCHORED_ENGLISH_LEFT_ANCHORED",
        "sidebar_internal_direction": "LANGUAGE_AWARE",
        "status": "CANDIDATE_PENDING_LIVE_ACCEPTANCE"
    },
    "ui2_recovery": {
        "phase": "DIAR-UI-2-RECOVERY",
        "release": "R1",
        "title": "Native Shared Layout Restoration",
        "recovered_at": "2026-07-20T20:59:50+02:00",
        "action": "GLOBAL_UI2_OVERRIDE_DEACTIVATED",
        "restored_baseline": "DIAR-UI-1 R3 native application layout",
        "retired_unified_sidebar_release": null,
        "sidebar_work_status": "NATIVE_SKIN_R2_ARABIC_PARITY_NO_SCROLL_INSTALLED",
        "oracle_ddl": "NONE",
        "oracle_writes": "NONE",
        "mm_access": "NONE",
        "scheduler_changes": "NONE"
    },
    "native_sidebar_skin": {
        "release": "R4",
        "phase": "DIAR-UI-2-NATIVE-SKIN",
        "title": "Windows Deterministic Gate Recovery",
        "architecture": "NATIVE_SHELL_GRID_CONTRACT",
        "baseline": "R2_OR_R3",
        "installed_at": "2026-07-20T23:11:24+02:00",
        "browser_gate": "PYTHON_STDLIB_CDP_WITH_INLINE_PHP_FALLBACK",
        "geometry_reference": "SHELL_EDGE",
        "body_padding": "NONE",
        "page_content_rewrite": "NONE",
        "oracle_writes": "NONE",
        "mm_access": "NONE"
    },
    "diar_ui3_r0": {
        "phase": "DIAR-UI-3-R0",
        "release": "R0",
        "title": "Statistical Profile and Controlled Candidate Workspace",
        "source_baseline": "ddb-new20260721.zip",
        "deployment_mode": "APPLICATION_READ_ONLY_DUAL_CONNECTION",
        "routes": [
            "diar-statistical-profiles",
            "diar-anomaly-candidates"
        ],
        "live_profile_source": "DASH_DIAR_STAT_CURRENT only when 5D.1 columns are present",
        "candidate_source": "NONE_UNTIL_DIAR_5E_R1",
        "synthetic_data": "NONE",
        "oracle_ddl": "NONE",
        "oracle_writes": "NONE",
        "mm_access": "NONE",
        "scheduler_changes": "NONE",
        "site_write_scope": "PHP_VIEW_CSS_JS_ROUTE_ACCESS_CONFIG_VERSION_METADATA",
        "php_runtime_target": "7.4.30",
        "browser_acceptance": "REQUIRED_ON_TARGET_WINDOWS",
        "status": "CANDIDATE_PENDING_TARGET_APPLY_AND_BROWSER_ACCEPTANCE"
    },
    "diar_ui3_r1": {
        "phase": "DIAR-UI-3-R1",
        "release": "R1",
        "title": "Drug Risk Rules Workspace and Browser Closure",
        "baseline_required": "DIAR-UI-3-R0 applied",
        "workspace_contract": "SEARCHABLE_ACCORDION_READONLY_DRAFT_SEPARATION",
        "approved_hospital_scope": [
            "NJCH",
            "MNH"
        ],
        "jckh_visibility": "REMOVED_FROM_DIAR_RULE_WORKSPACE",
        "navigation": [
            "diar-command-center",
            "diar-statistical-profiles",
            "diar-anomaly-candidates",
            "diar-investigations",
            "diar-rules"
        ],
        "browser_matrix": {
            "languages": [
                "en",
                "ar"
            ],
            "viewports": [
                "1600x1000",
                "900x1200",
                "390x844"
            ]
        },
        "oracle_ddl": "NONE",
        "patch_oracle_connections": "NONE",
        "patch_oracle_writes": "NONE",
        "runtime_control_writes": "EXISTING_GOVERNED_RULE_ACTIONS_ONLY",
        "mm_access": "NONE",
        "scheduler_changes": "NONE",
        "php_runtime_target": "7.4.30",
        "status": "CANDIDATE_PENDING_TARGET_APPLY_AND_BROWSER_EVIDENCE"
    },
    "diar_ui4_r1": {
        "release": "R1",
        "phase": "DIAR-UI-4-R1",
        "title": "Functional Clarity and Explainability Redesign",
        "base": "DIAR-UI-3-R0 with DIAR-UI-3-R1 compatibility",
        "routes": [
            "diar-command-center",
            "diar-statistical-profiles",
            "diar-anomaly-candidates",
            "diar-investigations",
            "diar-rules"
        ],
        "information_architecture": [
            "Overview",
            "Statistical baselines",
            "Detected deviations",
            "Investigation cases",
            "Detection policy"
        ],
        "core_method": "COMPARE_EACH_EXACT_ITEM_MOVEMENT_GRAIN_WITH_ITS_OWN_HISTORICAL_STATISTICAL_BASELINE",
        "fixed_quantity_rule_model": false,
        "interpretation_boundary": "DEVIATION_PRIORITY_IS_NOT_PROOF_OF_WRONGDOING",
        "approved_hospitals": [
            "NJCH",
            "MNH"
        ],
        "jckh": "EXCLUDED",
        "oracle_connections_by_patch": "NONE",
        "oracle_ddl_dml_by_patch": "NONE",
        "mm_access_by_patch": "NONE",
        "scheduler_changes": "NONE",
        "browser_review": "REQUIRED_AFTER_APPLY",
        "updated_at": "2026-07-21T15:30:00+03:00"
    }
}
