{
    "schema_version": "1.0",
    "phase": "H11.0-P5",
    "title": "Outpatient Cash vs Credit Legacy Recovery",
    "run_live": true,
    "source_evidence_boundary": "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED",
    "write_operations": "NONE",
    "checks": [
        {
            "name": "target_release_11_0_5",
            "status": "PASS",
            "detail": "11.0.6"
        },
        {
            "name": "current_repository_method_present",
            "status": "PASS",
            "detail": "VisitsRepository::outpatientCashCreditToday"
        },
        {
            "name": "independent_legacy_repository_method_present",
            "status": "PASS",
            "detail": "Independent legacy path"
        },
        {
            "name": "historical_cash_else_credit_mapping_preserved",
            "status": "PASS",
            "detail": "CAT_TYPE 1 = Cash; all other returned categories = Credit"
        },
        {
            "name": "historical_today_only_boundary_preserved",
            "status": "PASS",
            "detail": "Current calendar day"
        },
        {
            "name": "historical_reservation_status_rule_preserved",
            "status": "PASS",
            "detail": "SERVSTATUS NOT IN ('C','F')"
        },
        {
            "name": "historical_scheduled_only_rule_preserved",
            "status": "PASS",
            "detail": "SCHED_SERIAL IS NOT NULL"
        },
        {
            "name": "historical_financial_class_numeric_join_preserved",
            "status": "PASS",
            "detail": "Numeric financial-class equality"
        },
        {
            "name": "current_path_uses_equivalent_today_boundary",
            "status": "PASS",
            "detail": "Equivalent calendar-day window"
        },
        {
            "name": "real_visits_workspace_integration",
            "status": "PASS",
            "detail": "Real Visits workspace"
        },
        {
            "name": "bilingual_business_wording_present",
            "status": "PASS",
            "detail": "English and Arabic wording"
        },
        {
            "name": "branch_readiness_policy_preserved",
            "status": "PASS",
            "detail": "NJCH+MNH blocking; JCKH deferred"
        },
        {
            "name": "oracle_write_operations_none",
            "status": "PASS",
            "detail": "SELECT only"
        },
        {
            "name": "live_ready_branches_2_of_2",
            "status": "PASS",
            "detail": "2/2"
        },
        {
            "name": "live_exact_value_checks_4_of_4",
            "status": "PASS",
            "detail": "checks=4; failed_branches=0; max_difference=0"
        },
        {
            "name": "live_full_historical_source_boundary",
            "status": "PASS",
            "detail": "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED"
        },
        {
            "name": "live_today_only_historical_scope",
            "status": "PASS",
            "detail": "TODAY_ONLY"
        },
        {
            "name": "live_matched_promotion",
            "status": "PASS",
            "detail": "true"
        },
        {
            "name": "live_legacy_progress_20_matched_2_missing",
            "status": "PASS",
            "detail": "matched=20; missing=2"
        },
        {
            "name": "live_read_only",
            "status": "PASS",
            "detail": "NONE"
        }
    ],
    "parity": {
        "schema_version": "1.0",
        "phase": "H11.0-P5",
        "legacy_function": "out_cash_cr",
        "legacy_function_name": "get_out_patient_cash_credit",
        "source_evidence_boundary": "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED",
        "historical_time_scope": "TODAY_ONLY",
        "branch_readiness_policy": "READY_BRANCHES_ONLY_JCKH_DEFERRED",
        "active_qa_branches": [
            "njch",
            "mnh"
        ],
        "deferred_branches": [
            "jckh"
        ],
        "database_update_branches": [
            "njch",
            "jckh",
            "mnh"
        ],
        "branches_checked": 2,
        "value_checks": 4,
        "failed_branches": 0,
        "max_difference": 0,
        "details": [
            {
                "branch": "njch",
                "category": "cash",
                "legacy_value": 67,
                "current_value": 67,
                "difference": 0,
                "status": "PASS"
            },
            {
                "branch": "njch",
                "category": "credit",
                "legacy_value": 448,
                "current_value": 448,
                "difference": 0,
                "status": "PASS"
            },
            {
                "branch": "mnh",
                "category": "cash",
                "legacy_value": 167,
                "current_value": 167,
                "difference": 0,
                "status": "PASS"
            },
            {
                "branch": "mnh",
                "category": "credit",
                "legacy_value": 351,
                "current_value": 351,
                "difference": 0,
                "status": "PASS"
            }
        ],
        "branch_results": {
            "njch": {
                "status": "PASS",
                "failures": 0,
                "legacy_total": 515,
                "current_total": 515
            },
            "mnh": {
                "status": "PASS",
                "failures": 0,
                "legacy_total": 518,
                "current_total": 518
            }
        },
        "write_operations": "NONE",
        "matched_promotion": true,
        "baseline_before": {
            "known": 31,
            "matched": 19,
            "partial": 9,
            "missing": 3,
            "matched_pct": 61.3
        },
        "baseline_after_live_pass": {
            "known": 31,
            "matched": 20,
            "partial": 9,
            "missing": 2,
            "matched_pct": 64.5
        },
        "status": "PASS"
    },
    "live_error": "",
    "pass_gates": 20,
    "fail_gates": 0,
    "status": "PASS"
}