{
    "schema_version": "1.0",
    "phase": "10.13",
    "target_release": "10.13.0",
    "status": "PASS",
    "generated_at": "2026-07-11T19:21:34+00:00",
    "hospital": "NJCH",
    "year": 2025,
    "compare_year": 2024,
    "ranking_limit": 10,
    "run_live": true,
    "checks": [
        {
            "name": "release_version_compatible",
            "status": "PASS",
            "detail": "11.0.6"
        },
        {
            "name": "doctor_route_uses_dedicated_controller",
            "status": "PASS",
            "detail": "DoctorsController route"
        },
        {
            "name": "legacy_three_function_contract_mapped",
            "status": "PASS",
            "detail": "get_doc_rev + total_op_visits + total_admission"
        },
        {
            "name": "legacy_source_table_preserved",
            "status": "PASS",
            "detail": "KPI_DOCTOR_PERF_DETAIL_JOB"
        },
        {
            "name": "independent_legacy_execution_path",
            "status": "PASS",
            "detail": "LegacyDoctorsRepository independent SQL path"
        },
        {
            "name": "current_annual_metric_contract",
            "status": "PASS",
            "detail": "annual totals"
        },
        {
            "name": "ranking_identity_and_value_contract",
            "status": "PASS",
            "detail": "rank identity + value"
        },
        {
            "name": "six_runtime_parity_checks",
            "status": "PASS",
            "detail": "3 functions x 2 years"
        },
        {
            "name": "comparison_year_supported",
            "status": "PASS",
            "detail": "current + comparison year"
        },
        {
            "name": "executive_ui_standard",
            "status": "PASS",
            "detail": "16px EN / 17px AR / 24-28px sections"
        },
        {
            "name": "executive_no_raw_technical_error",
            "status": "PASS",
            "detail": "friendly executive state"
        },
        {
            "name": "two_chart_render_contract",
            "status": "PASS",
            "detail": "doctor ranking + specialty contribution"
        },
        {
            "name": "legacy_matrix_updated",
            "status": "PASS",
            "detail": "legacy matrix coverage"
        },
        {
            "name": "phase_10_15_finance_non_claim",
            "status": "PASS",
            "detail": "finance scope preserved for 10.15"
        },
        {
            "name": "oracle_write_operations_none",
            "status": "PASS",
            "detail": "SELECT only"
        },
        {
            "name": "live_current_year_parity",
            "status": "PASS",
            "detail": "3/3 functions; failures=0"
        },
        {
            "name": "live_compare_year_parity",
            "status": "PASS",
            "detail": "3/3 functions; failures=0"
        },
        {
            "name": "live_parity_total_checks",
            "status": "PASS",
            "detail": "6 / 6"
        },
        {
            "name": "live_parity_max_difference_zero",
            "status": "PASS",
            "detail": "0"
        },
        {
            "name": "live_parity_write_operations_none",
            "status": "PASS",
            "detail": "NONE"
        },
        {
            "name": "live_two_chart_payloads_available",
            "status": "PASS",
            "detail": "2 / 2"
        }
    ],
    "pass_gates": 21,
    "fail_gates": 0,
    "functions_checked": 6,
    "max_difference": 0,
    "write_operations": "NONE",
    "parity": {
        "schema_version": "1.0",
        "phase": "10.13",
        "hospital": "NJCH",
        "year": 2025,
        "compare_year": 2024,
        "ranking_limit": 10,
        "write_operations": "NONE",
        "source_contract": {
            "get_doc_rev": "KPI_DOCTOR_PERF_DETAIL_JOB; YEARID; doctor-level TOT_REV ranking; top-N limit.",
            "total_op_visits": "KPI_DOCTOR_PERF_DETAIL_JOB; YEARID; doctor-level TOTAL_OP_VISITS total.",
            "total_admission": "KPI_DOCTOR_PERF_DETAIL_JOB; YEARID; doctor-level TOTAL_INPAT_VISITS total.",
            "aggregation_note": "Doctor-level values are deduplicated per doctor before final aggregation, matching the established dashboard doctor KPI contract.",
            "finance_note": "moh_revn, drug_rev and net_rev remain reserved for Phase 10.15 Specialty Finance recovery."
        },
        "modes": {
            "current_year": {
                "year": 2025,
                "functions": [
                    {
                        "legacy_function": "total_op_visits",
                        "comparison_type": "scalar_annual_total",
                        "year": 2025,
                        "legacy_value": 128637,
                        "new_value": 128637,
                        "difference": 0,
                        "max_difference": 0,
                        "status": "PASS"
                    },
                    {
                        "legacy_function": "total_admission",
                        "comparison_type": "scalar_annual_total",
                        "year": 2025,
                        "legacy_value": 2067,
                        "new_value": 2067,
                        "difference": 0,
                        "max_difference": 0,
                        "status": "PASS"
                    },
                    {
                        "legacy_function": "get_doc_rev",
                        "comparison_type": "top_n_doctor_ranking",
                        "year": 2025,
                        "legacy_rows": 10,
                        "new_rows": 10,
                        "max_difference": 0,
                        "ranking_rows": [
                            {
                                "rank": 1,
                                "legacy_identity": "938",
                                "new_identity": "938",
                                "identity_match": true,
                                "legacy_value": 11813530,
                                "new_value": 11813530,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 2,
                                "legacy_identity": "539",
                                "new_identity": "539",
                                "identity_match": true,
                                "legacy_value": 10577873,
                                "new_value": 10577873,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 3,
                                "legacy_identity": "7011",
                                "new_identity": "7011",
                                "identity_match": true,
                                "legacy_value": 9970197,
                                "new_value": 9970197,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 4,
                                "legacy_identity": "7010",
                                "new_identity": "7010",
                                "identity_match": true,
                                "legacy_value": 6046003,
                                "new_value": 6046003,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 5,
                                "legacy_identity": "5173",
                                "new_identity": "5173",
                                "identity_match": true,
                                "legacy_value": 5924891,
                                "new_value": 5924891,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 6,
                                "legacy_identity": "879",
                                "new_identity": "879",
                                "identity_match": true,
                                "legacy_value": 5659995,
                                "new_value": 5659995,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 7,
                                "legacy_identity": "7005",
                                "new_identity": "7005",
                                "identity_match": true,
                                "legacy_value": 5035454,
                                "new_value": 5035454,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 8,
                                "legacy_identity": "5168",
                                "new_identity": "5168",
                                "identity_match": true,
                                "legacy_value": 4603368,
                                "new_value": 4603368,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 9,
                                "legacy_identity": "779",
                                "new_identity": "779",
                                "identity_match": true,
                                "legacy_value": 4317649,
                                "new_value": 4317649,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 10,
                                "legacy_identity": "851",
                                "new_identity": "851",
                                "identity_match": true,
                                "legacy_value": 4125057,
                                "new_value": 4125057,
                                "difference": 0,
                                "status": "PASS"
                            }
                        ],
                        "status": "PASS"
                    }
                ]
            },
            "compare_year": {
                "year": 2024,
                "functions": [
                    {
                        "legacy_function": "total_op_visits",
                        "comparison_type": "scalar_annual_total",
                        "year": 2024,
                        "legacy_value": 141783,
                        "new_value": 141783,
                        "difference": 0,
                        "max_difference": 0,
                        "status": "PASS"
                    },
                    {
                        "legacy_function": "total_admission",
                        "comparison_type": "scalar_annual_total",
                        "year": 2024,
                        "legacy_value": 1929,
                        "new_value": 1929,
                        "difference": 0,
                        "max_difference": 0,
                        "status": "PASS"
                    },
                    {
                        "legacy_function": "get_doc_rev",
                        "comparison_type": "top_n_doctor_ranking",
                        "year": 2024,
                        "legacy_rows": 10,
                        "new_rows": 10,
                        "max_difference": 0,
                        "ranking_rows": [
                            {
                                "rank": 1,
                                "legacy_identity": "938",
                                "new_identity": "938",
                                "identity_match": true,
                                "legacy_value": 13009991,
                                "new_value": 13009991,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 2,
                                "legacy_identity": "539",
                                "new_identity": "539",
                                "identity_match": true,
                                "legacy_value": 7638953,
                                "new_value": 7638953,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 3,
                                "legacy_identity": "7011",
                                "new_identity": "7011",
                                "identity_match": true,
                                "legacy_value": 6669015,
                                "new_value": 6669015,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 4,
                                "legacy_identity": "7005",
                                "new_identity": "7005",
                                "identity_match": true,
                                "legacy_value": 6227873,
                                "new_value": 6227873,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 5,
                                "legacy_identity": "851",
                                "new_identity": "851",
                                "identity_match": true,
                                "legacy_value": 5695590,
                                "new_value": 5695590,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 6,
                                "legacy_identity": "5168",
                                "new_identity": "5168",
                                "identity_match": true,
                                "legacy_value": 4941906,
                                "new_value": 4941906,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 7,
                                "legacy_identity": "111144",
                                "new_identity": "111144",
                                "identity_match": true,
                                "legacy_value": 4329141,
                                "new_value": 4329141,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 8,
                                "legacy_identity": "779",
                                "new_identity": "779",
                                "identity_match": true,
                                "legacy_value": 4220045,
                                "new_value": 4220045,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 9,
                                "legacy_identity": "7010",
                                "new_identity": "7010",
                                "identity_match": true,
                                "legacy_value": 3993787,
                                "new_value": 3993787,
                                "difference": 0,
                                "status": "PASS"
                            },
                            {
                                "rank": 10,
                                "legacy_identity": "7004",
                                "new_identity": "7004",
                                "identity_match": true,
                                "legacy_value": 3331263,
                                "new_value": 3331263,
                                "difference": 0,
                                "status": "PASS"
                            }
                        ],
                        "status": "PASS"
                    }
                ]
            }
        },
        "functions_checked": 6,
        "max_difference": 0,
        "failures": 0,
        "status": "PASS"
    },
    "chart_payload_count": 2,
    "live_error": ""
}