[
  {
    "legacy_fn": "gmov",
    "legacy_function": "get_monthly_outpatient_visits",
    "domain": "Patient Activity",
    "capability": "Monthly outpatient visits",
    "oracle_sources": "RCP_VISIT; RCP_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyOutpatientVisits",
    "current_route": "visits",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Multi-branch composite legacy function remains PARTIAL; selected-branch _s counterpart is covered by Phase 10.10.",
    "program_area": "Patient Activity",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "padm",
    "legacy_function": "get_patients_admissions",
    "domain": "Patient Activity",
    "capability": "Monthly patient admissions",
    "oracle_sources": "RCP_ENTRYEXIT; RCP_VISIT; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyAdmissions",
    "current_route": "visits",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Multi-branch composite legacy function remains PARTIAL; selected-branch _s counterpart is covered by Phase 10.10.",
    "program_area": "Patient Activity",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "perv",
    "legacy_function": "get_emergency_visits",
    "domain": "Patient Activity",
    "capability": "Monthly emergency visits",
    "oracle_sources": "RCP_VISIT; RCP_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyEmergencyVisits",
    "current_route": "visits",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Multi-branch composite legacy function remains PARTIAL; selected-branch _s counterpart is covered by Phase 10.10.",
    "program_area": "Patient Activity",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "popr",
    "legacy_function": "get_patients_operations",
    "domain": "Operations",
    "capability": "Monthly patient operations",
    "oracle_sources": "RCP_SERVICE_RESERVATION; OPER_OPERATION_SCHEDULE; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "OperationsRepository::monthlyLegacyOperations",
    "current_route": "operations",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.11 restores selected-branch operations through popr_s. Legacy three-branch aggregate popr remains open for exact multi-branch parity.",
    "program_area": "Operations",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "plts",
    "legacy_function": "get_lab_tests",
    "domain": "Lab",
    "capability": "Monthly lab tests",
    "oracle_sources": "RCP_LAB_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "DiagnosticsRepository::monthlyLabTests",
    "current_route": "lab",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.12 restores selected-branch plts_s. Legacy three-branch aggregate plts remains open for exact multi-branch parity.",
    "program_area": "Lab & Radiology",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "prts",
    "legacy_function": "get_rad_tests",
    "domain": "Radiology",
    "capability": "Monthly radiology tests",
    "oracle_sources": "RCP_RAD_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "DiagnosticsRepository::monthlyRadiologyTests",
    "current_route": "lab",
    "status": "PARTIAL",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.12 restores selected-branch prts_s. Legacy three-branch aggregate prts remains open for exact multi-branch parity.",
    "program_area": "Lab & Radiology",
    "normalized_status": "PARTIAL",
    "evidence_class": "SELECTED_BRANCH_PARITY_ONLY",
    "evidence_reference": "",
    "source_boundary": "Exact selected-branch counterpart is proven, but legacy multi-branch aggregate remains open.",
    "migration_priority": "P1",
    "blocker": "",
    "recommended_next_action": "Implement exact legacy multi-branch aggregate behavior after preserving selected-branch PASS."
  },
  {
    "legacy_fn": "bcor",
    "legacy_function": "get_beds_current_occupancy_rate",
    "domain": "Beds & Capacity",
    "capability": "Current bed occupancy rate",
    "oracle_sources": "RCP_BED_TRANS; STP_BEDS; STP_PLACES",
    "legacy_filters": "branch; current snapshot",
    "current_mapping": "BedsController + BedsRepository + BedsParityService",
    "current_route": "beds",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.14 exact legacy-compatible implementation added; awaiting live Oracle evidence.",
    "program_area": "Beds & Capacity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "BEDS_UNITS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "acty",
    "legacy_function": "get_admission_category_type",
    "domain": "Patient Activity",
    "capability": "Admission category type",
    "oracle_sources": "RCP_VISIT; REG_COMP_CATEGORY; STP_PATCAT_TYPE",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": NaN,
    "current_route": NaN,
    "status": "MISSING",
    "legacy_source_detail": "PARTIAL_BODY_AVAILABLE",
    "blocker_or_gap": "No dedicated implementation in current Visits workspace.",
    "program_area": "Patient Activity",
    "normalized_status": "MISSING",
    "evidence_class": "SOURCE_PARTIAL_IMPLEMENTATION_MISSING",
    "evidence_reference": "",
    "source_boundary": "Partial legacy body and Oracle sources are known; no current implementation.",
    "migration_priority": "P0",
    "blocker": "",
    "recommended_next_action": "Implement exact admission category type legacy contract and add live Oracle parity gate."
  },
  {
    "legacy_fn": "vfr",
    "legacy_function": "get_visit_followup_ratio",
    "domain": "Patient Activity",
    "capability": "Visit new/follow-up ratio",
    "oracle_sources": "RCP_SERVICE_RESERVATION; RCP_VISIT",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": "VisitsRepository::followupMix",
    "current_route": "visits",
    "status": "PARITY_PASS",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.10 implements exact selected-branch year/date-range contract with independent legacy execution path and 8-check live parity gate.",
    "program_area": "Patient Activity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "PATIENT_ACTIVITY_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "out_cash_cr",
    "legacy_function": "get_out_patient_cash_credit",
    "domain": "Patient Finance",
    "capability": "Outpatient cash vs credit",
    "oracle_sources": "Legacy source detail pending full function body",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": NaN,
    "current_route": NaN,
    "status": "MISSING",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Known legacy endpoint; no current mapped implementation.",
    "program_area": "Patient Finance",
    "normalized_status": "MISSING",
    "evidence_class": "SOURCE_DETAIL_INCOMPLETE_IMPLEMENTATION_MISSING",
    "evidence_reference": "",
    "source_boundary": "Known legacy endpoint; full body/source detail is not available in supplied archive.",
    "migration_priority": "P0",
    "blocker": "LEGACY_SOURCE_DETAIL_INCOMPLETE",
    "recommended_next_action": "Recover legacy function body/source rule, then implement outpatient cash-vs-credit parity."
  },
  {
    "legacy_fn": "gmov_s",
    "legacy_function": "get_monthly_outpatient_visits_s",
    "domain": "Patient Activity",
    "capability": "Single-branch monthly outpatient visits",
    "oracle_sources": "RCP_VISIT; RCP_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyOutpatientVisits",
    "current_route": "visits",
    "status": "PARITY_PASS",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.10 exact selected-branch OPD contract; ER excluded by legacy discriminator; live parity gate included.",
    "program_area": "Patient Activity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "PATIENT_ACTIVITY_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "monthly_revenue",
    "legacy_function": "get_monthly_revenue",
    "domain": "Revenue",
    "capability": "Monthly total revenue",
    "oracle_sources": "T_INP_OUTP_REVENUE_BATCH / MV_REVENUE_MONTHLY; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "RevenueRepository::monthlyRevenue(type=total, year/range)",
    "current_route": "revenue",
    "status": "PARITY_PASS",
    "legacy_source_detail": "DISPATCH_AND_SQL_CONFIRMED_H10_9",
    "blocker_or_gap": "Closed by H10.9 independent runtime parity gate; evidence required from each installation.",
    "program_area": "Revenue",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "REVENUE_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "monthly_revenue_csh",
    "legacy_function": "get_monthly_revenue_csh",
    "domain": "Revenue",
    "capability": "Monthly cash revenue",
    "oracle_sources": "T_INP_OUTP_REVENUE_BATCH / MV_REVENUE_MONTHLY; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "RevenueRepository::monthlyRevenue(type=cash, year/range)",
    "current_route": "revenue",
    "status": "PARITY_PASS",
    "legacy_source_detail": "DISPATCH_AND_SQL_CONFIRMED_H10_9",
    "blocker_or_gap": "Closed by H10.9 independent runtime parity gate; evidence required from each installation.",
    "program_area": "Revenue",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "REVENUE_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "monthly_revenue_ins",
    "legacy_function": "get_monthly_revenue_ins",
    "domain": "Revenue",
    "capability": "Monthly insurance revenue",
    "oracle_sources": "T_INP_OUTP_REVENUE_BATCH / MV_REVENUE_MONTHLY; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "RevenueRepository::monthlyRevenue(type=insurance, year/range)",
    "current_route": "revenue",
    "status": "PARITY_PASS",
    "legacy_source_detail": "DISPATCH_AND_SQL_CONFIRMED_H10_9",
    "blocker_or_gap": "Closed by H10.9 independent runtime parity gate; evidence required from each installation.",
    "program_area": "Revenue",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "REVENUE_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "monthly_revenue_moh",
    "legacy_function": "get_monthly_revenue_moh",
    "domain": "Revenue",
    "capability": "Monthly MOH revenue",
    "oracle_sources": "T_INP_OUTP_REVENUE_BATCH / MV_REVENUE_MONTHLY; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "RevenueRepository::monthlyRevenue(type=moh, year/range)",
    "current_route": "revenue",
    "status": "PARITY_PASS",
    "legacy_source_detail": "DISPATCH_AND_SQL_CONFIRMED_H10_9",
    "blocker_or_gap": "Closed by H10.9 independent runtime parity gate; evidence required from each installation.",
    "program_area": "Revenue",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "REVENUE_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "monthly_profilt_loss",
    "legacy_function": "get_monthly_profilt_loss",
    "domain": "Revenue",
    "capability": "Monthly profit / loss",
    "oracle_sources": "INCOME_STATMENTS; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "RevenueRepository::monthlyProfitLoss(year/range)",
    "current_route": "revenue",
    "status": "PARITY_PASS",
    "legacy_source_detail": "DISPATCH_AND_SQL_CONFIRMED_H10_9",
    "blocker_or_gap": "Closed by H10.9 independent runtime parity gate; evidence required from each installation.",
    "program_area": "Revenue",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "REVENUE_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "padm_s",
    "legacy_function": "get_patients_admissions_s",
    "domain": "Patient Activity",
    "capability": "Single-branch admissions",
    "oracle_sources": "RCP_ENTRYEXIT; RCP_VISIT; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyAdmissions",
    "current_route": "visits",
    "status": "PARITY_PASS",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.10 exact selected-branch admissions contract with normal baby-bed rule; live parity gate included.",
    "program_area": "Patient Activity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "PATIENT_ACTIVITY_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "perv_s",
    "legacy_function": "get_emergency_visits_s",
    "domain": "Patient Activity",
    "capability": "Single-branch emergency visits",
    "oracle_sources": "RCP_VISIT; RCP_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "VisitsRepository::monthlyEmergencyVisits",
    "current_route": "visits",
    "status": "PARITY_PASS",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.10 exact selected-branch ER contract using emergency type or clinics 16/297/298; live parity gate included.",
    "program_area": "Patient Activity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "PATIENT_ACTIVITY_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "popr_s",
    "legacy_function": "get_patients_operations_s",
    "domain": "Operations",
    "capability": "Single-branch operations",
    "oracle_sources": "RCP_SERVICE_RESERVATION; OPER_OPERATION_SCHEDULE",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "OperationsRepository::monthlyLegacyOperations",
    "current_route": "operations",
    "status": "PARITY_PASS",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.11 live Evidence PASS: 2/2 exact selected-branch parity checks, max difference 0, browser 3/3, write operations NONE.",
    "program_area": "Operations",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "OPERATIONS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "plts_s",
    "legacy_function": "get_lab_tests_s",
    "domain": "Lab",
    "capability": "Single-branch lab tests",
    "oracle_sources": "RCP_LAB_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "DiagnosticsRepository::monthlyLabTests",
    "current_route": "lab",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.12 exact selected-branch plts_s contract implemented for year/date-range modes with independent legacy path and combined 4-check diagnostics parity gate; final PASS pending live Evidence.",
    "program_area": "Lab & Radiology",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "DIAGNOSTICS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "prts_s",
    "legacy_function": "get_rad_tests_s",
    "domain": "Radiology",
    "capability": "Single-branch radiology tests",
    "oracle_sources": "RCP_RAD_SERVICE_RESERVATION; SEC_LOOKUP_DETAIL",
    "legacy_filters": "year; branch; from_date; to_date; compare_year",
    "current_mapping": "DiagnosticsRepository::monthlyRadiologyTests",
    "current_route": "lab",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "FULL_BODY_AVAILABLE",
    "blocker_or_gap": "Phase 10.12 exact selected-branch prts_s contract implemented for year/date-range modes with independent legacy path and combined 4-check diagnostics parity gate; final PASS pending live Evidence.",
    "program_area": "Lab & Radiology",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "DIAGNOSTICS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "special_prof",
    "legacy_function": "get_special_prof",
    "domain": "Specialty Finance",
    "capability": "Specialty profit",
    "oracle_sources": "Legacy source detail pending full function body",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": NaN,
    "current_route": NaN,
    "status": "BLOCKED_SOURCE_MISSING",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Historical function body/business rule is missing from supplied legacy archive. Not falsely closed by Phase 10.15.",
    "program_area": "Specialty Finance",
    "normalized_status": "MISSING",
    "evidence_class": "LEGACY_SOURCE_MISSING",
    "evidence_reference": "",
    "source_boundary": "Historical function body/business rule is missing from supplied archive.",
    "migration_priority": "P0",
    "blocker": "LEGACY_SOURCE_MISSING",
    "recommended_next_action": "Recover historical source/business rule before implementation."
  },
  {
    "legacy_fn": "special_net_rev",
    "legacy_function": "get_net_rev",
    "domain": "Specialty Finance",
    "capability": "Specialty net revenue",
    "oracle_sources": "Legacy source detail pending full function body",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": NaN,
    "current_route": NaN,
    "status": "BLOCKED_SOURCE_MISSING",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Historical function body/business rule is missing from supplied legacy archive. Not falsely closed by Phase 10.15.",
    "program_area": "Specialty Finance",
    "normalized_status": "MISSING",
    "evidence_class": "LEGACY_SOURCE_MISSING",
    "evidence_reference": "",
    "source_boundary": "Historical function body/business rule is missing from supplied archive.",
    "migration_priority": "P0",
    "blocker": "LEGACY_SOURCE_MISSING",
    "recommended_next_action": "Recover historical source/business rule before implementation."
  },
  {
    "legacy_fn": "moh_revn",
    "legacy_function": "get_moh_revn",
    "domain": "Doctor / Specialty Finance",
    "capability": "MOH revenue contribution",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": "SpecialtyFinanceController + SpecialtyFinanceRepository + SpecialtyFinanceParityService",
    "current_route": "specialty-finance",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED_SOURCE_RECONSTRUCTED",
    "blocker_or_gap": "Phase 10.15 implements independent reconstructed legacy/current annual KPI paths; live 6/6 zero-difference Evidence required. Full historical function body is not present in supplied archive.",
    "program_area": "Specialty Finance",
    "normalized_status": "PARTIAL",
    "evidence_class": "RECONSTRUCTED_SOURCE_PARITY",
    "evidence_reference": "SPECIALTY_FINANCE_PARITY_GATE.json",
    "source_boundary": "Historical function body is missing; current gate proves independent reconstructed SQL paths only.",
    "migration_priority": "P1",
    "blocker": "HISTORICAL_FUNCTION_BODY_MISSING",
    "recommended_next_action": "Obtain historical function body and upgrade reconstructed-source parity to exact legacy parity."
  },
  {
    "legacy_fn": "drug_rev",
    "legacy_function": "get_drug_rev",
    "domain": "Doctor / Specialty Finance",
    "capability": "Drug revenue contribution",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": "SpecialtyFinanceController + SpecialtyFinanceRepository + SpecialtyFinanceParityService",
    "current_route": "specialty-finance",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED_SOURCE_RECONSTRUCTED",
    "blocker_or_gap": "Phase 10.15 implements independent reconstructed legacy/current annual KPI paths; live 6/6 zero-difference Evidence required. Full historical function body is not present in supplied archive.",
    "program_area": "Specialty Finance",
    "normalized_status": "PARTIAL",
    "evidence_class": "RECONSTRUCTED_SOURCE_PARITY",
    "evidence_reference": "SPECIALTY_FINANCE_PARITY_GATE.json",
    "source_boundary": "Historical function body is missing; current gate proves independent reconstructed SQL paths only.",
    "migration_priority": "P1",
    "blocker": "HISTORICAL_FUNCTION_BODY_MISSING",
    "recommended_next_action": "Obtain historical function body and upgrade reconstructed-source parity to exact legacy parity."
  },
  {
    "legacy_fn": "net_rev",
    "legacy_function": "get_net_rev",
    "domain": "Doctor / Specialty Finance",
    "capability": "Net revenue",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch; from_date; to_date",
    "current_mapping": "SpecialtyFinanceController + SpecialtyFinanceRepository + SpecialtyFinanceParityService",
    "current_route": "specialty-finance",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED_SOURCE_RECONSTRUCTED",
    "blocker_or_gap": "Phase 10.15 implements independent reconstructed legacy/current annual KPI paths; live 6/6 zero-difference Evidence required. Full historical function body is not present in supplied archive.",
    "program_area": "Specialty Finance",
    "normalized_status": "PARTIAL",
    "evidence_class": "RECONSTRUCTED_SOURCE_PARITY",
    "evidence_reference": "SPECIALTY_FINANCE_PARITY_GATE.json",
    "source_boundary": "Historical function body is missing; current gate proves independent reconstructed SQL paths only.",
    "migration_priority": "P1",
    "blocker": "HISTORICAL_FUNCTION_BODY_MISSING",
    "recommended_next_action": "Obtain historical function body and upgrade reconstructed-source parity to exact legacy parity."
  },
  {
    "legacy_fn": "total_admission",
    "legacy_function": "get_total_admission",
    "domain": "Doctor Performance",
    "capability": "Total admissions",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch",
    "current_mapping": "DoctorsRepository::annualMetricTotal(TOTAL_INPAT_VISITS)",
    "current_route": "doctors",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.13 provides independent legacy/current execution and exact annual parity gate; final PARITY_PASS requires live Evidence 6/6.",
    "program_area": "Doctors",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "DOCTORS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "total_op_visits",
    "legacy_function": "get_total_op_visits",
    "domain": "Doctor Performance",
    "capability": "Total outpatient visits",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch",
    "current_mapping": "DoctorsRepository::annualMetricTotal(TOTAL_OP_VISITS)",
    "current_route": "doctors",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.13 provides independent legacy/current execution and exact annual parity gate; final PARITY_PASS requires live Evidence 6/6.",
    "program_area": "Doctors",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "DOCTORS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "get_doc_rev",
    "legacy_function": "get_doc_rev",
    "domain": "Doctors",
    "capability": "Doctor revenue ranking",
    "oracle_sources": "KPI_DOCTOR_PERF_DETAIL_JOB",
    "legacy_filters": "year; branch; max_v",
    "current_mapping": "DoctorsRepository::topDoctors(TOT_REV)",
    "current_route": "doctors",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.13 compares exact top-N doctor ranking identity and value for current and comparison years; final PARITY_PASS requires live Evidence 6/6.",
    "program_area": "Doctors",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "DOCTORS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "get_units_effic",
    "legacy_function": "get_units_effic",
    "domain": "Beds & Units",
    "capability": "Unit efficiency",
    "oracle_sources": "RCP_BED_TRANS; STP_BEDS; STP_PLACES",
    "legacy_filters": "year; branch; from_date; to_date; max_v; percent",
    "current_mapping": "BedsController + BedsRepository + BedsParityService",
    "current_route": "beds",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.14 exact legacy-compatible implementation added; awaiting live Oracle evidence.",
    "program_area": "Beds & Capacity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "BEDS_UNITS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  },
  {
    "legacy_fn": "get_units_effic_b",
    "legacy_function": "get_units_effic_b",
    "domain": "Beds & Units",
    "capability": "Bed-level efficiency",
    "oracle_sources": "RCP_BED_TRANS; STP_BEDS; STP_PLACES",
    "legacy_filters": "year; branch; from_date; to_date; max_v",
    "current_mapping": "BedsController + BedsRepository + BedsParityService",
    "current_route": "beds",
    "status": "IMPLEMENTED_PENDING_LIVE_GATE",
    "legacy_source_detail": "DISPATCH_CONFIRMED",
    "blocker_or_gap": "Phase 10.14 exact legacy-compatible implementation added; awaiting live Oracle evidence.",
    "program_area": "Beds & Capacity",
    "normalized_status": "MATCHED",
    "evidence_class": "EXACT_LIVE_PARITY",
    "evidence_reference": "BEDS_UNITS_PARITY_GATE.json",
    "source_boundary": "",
    "migration_priority": "CLOSED",
    "blocker": "",
    "recommended_next_action": "Preserve mandatory regression gate."
  }
]