{
    "schema_version":  "1.0",
    "project":  "Hospital Executive Dashboard",
    "patch_id":  "H11.0-P4.1",
    "action":  "APPLY_TEST",
    "status":  "FAIL",
    "run_id":  "20260711_152839_APPLY_TEST",
    "generated_at":  "2026-07-11T12:31:38Z",
    "source_root":  "C:\\xampp\\htdocs\\ddb-new",
    "error":  "Full test failed: FAIL",
    "steps":  [
                  {
                      "status":  "PASS",
                      "phase":  "H11.0-P4.1",
                      "target_version":  "11.0.4.1",
                      "generated_at":  "2026-07-11T12:28:39Z",
                      "already_target":  false,
                      "backup_root":  "C:\\xampp\\htdocs\\ddb-new\\_ddb_patch_center_private\\backups\\H11_0-P4_1_20260711_152839",
                      "payload_files":  6,
                      "guard_policy":  "release_capability_guard_v11",
                      "checks":  [
                                     {
                                         "name":  "baseline_release_version",
                                         "status":  "PASS",
                                         "detail":  "11.0.4 allowed=11.0.4"
                                     },
                                     {
                                         "name":  "baseline_exists_DDB_VERSION.json",
                                         "status":  "PASS",
                                         "detail":  "DDB_VERSION.json"
                                     },
                                     {
                                         "name":  "baseline_exists_app_Services_MultiBranchPatientActivityService.php",
                                         "status":  "PASS",
                                         "detail":  "app/Services/MultiBranchPatientActivityService.php"
                                     },
                                     {
                                         "name":  "baseline_exists_app_Repositories_LegacyMultiBranchPatientActivityRepository.php",
                                         "status":  "PASS",
                                         "detail":  "app/Repositories/LegacyMultiBranchPatientActivityRepository.php"
                                     },
                                     {
                                         "name":  "baseline_exists_app_Services_MultiBranchOutpatientParityService.php",
                                         "status":  "PASS",
                                         "detail":  "app/Services/MultiBranchOutpatientParityService.php"
                                     },
                                     {
                                         "name":  "baseline_exists_public_phase11-0-p4-multi-branch-outpatient-parity-qa.php",
                                         "status":  "PASS",
                                         "detail":  "public/phase11-0-p4-multi-branch-outpatient-parity-qa.php"
                                     },
                                     {
                                         "name":  "baseline_exists_app_Controllers_OperationsController.php",
                                         "status":  "PASS",
                                         "detail":  "app/Controllers/OperationsController.php"
                                     },
                                     {
                                         "name":  "baseline_exists_app_Views_operations_module.php",
                                         "status":  "PASS",
                                         "detail":  "app/Views/operations/module.php"
                                     },
                                     {
                                         "name":  "baseline_capability_DDB_VERSION.json",
                                         "status":  "PASS",
                                         "detail":  "11.0.4"
                                     },
                                     {
                                         "name":  "baseline_capability_app_Services_MultiBranchPatientActivityService.php",
                                         "status":  "PASS",
                                         "detail":  "monthlyOutpatientVisits("
                                     },
                                     {
                                         "name":  "baseline_capability_app_Repositories_LegacyMultiBranchPatientActivityRepository.php",
                                         "status":  "PASS",
                                         "detail":  "activity.month_no (+) = months.code"
                                     },
                                     {
                                         "name":  "baseline_capability_app_Services_MultiBranchOutpatientParityService.php",
                                         "status":  "PASS",
                                         "detail":  "get_monthly_outpatient_visits"
                                     },
                                     {
                                         "name":  "baseline_capability_app_Views_operations_module.php",
                                         "status":  "PASS",
                                         "detail":  "data-legacy-function=\"gmov\""
                                     }
                                 ],
                      "diagnostic_checks":  [
                                                {
                                                    "name":  "baseline_diagnostic_docs_legacy_H11_0_P4_LEGACY_PARITY_DELTA.json",
                                                    "status":  "PASS",
                                                    "detail":  "\"matched\": 20"
                                                }
                                            ],
                      "post_apply_checks":  [
                                                {
                                                    "name":  "post_apply_target_version",
                                                    "status":  "PASS",
                                                    "detail":  "11.0.4.1"
                                                },
                                                {
                                                    "name":  "post_apply_payload_DDB_VERSION.json",
                                                    "status":  "PASS",
                                                    "detail":  "bdf58a6971513bd68dc9fb8b7b753ff4eead4bb55cc9e3041c527039b9c67b8c"
                                                },
                                                {
                                                    "name":  "post_apply_payload_app_Repositories_LegacyMultiBranchPatientActivityRepository.php",
                                                    "status":  "PASS",
                                                    "detail":  "6529f4cc7e5dbedb4ca5ab93d0b5a74cfc64cc47f36db12d43cd5a12334ed4d0"
                                                },
                                                {
                                                    "name":  "post_apply_payload_app_Services_MultiBranchOutpatientParityService.php",
                                                    "status":  "PASS",
                                                    "detail":  "808066eb9dfeeac09f3d42cf3494605f7dca866f15fedfa2e985f6ff2baee4fc"
                                                },
                                                {
                                                    "name":  "post_apply_payload_app_Services_MultiBranchPatientActivityService.php",
                                                    "status":  "PASS",
                                                    "detail":  "22235ceb5e146bc2bfdcc44ec39be33b8240d890808945b224dd8e06f965d0f9"
                                                },
                                                {
                                                    "name":  "post_apply_payload_docs_legacy_H11_0_P4_1_CONNECTIVITY_QA_HOTFIX.md",
                                                    "status":  "PASS",
                                                    "detail":  "ae59a65c00257ff2689deec695d55c6a291f8d6b595692ee3b7cdf40b14fd5d0"
                                                },
                                                {
                                                    "name":  "post_apply_payload_public_phase11-0-p4-multi-branch-outpatient-parity-qa.php",
                                                    "status":  "PASS",
                                                    "detail":  "99be9c937325808e37a315f61a7f14342a1349376249e71da10c4c3b9689e7ac"
                                                }
                                            ]
                  },
                  {
                      "status":  "FAIL",
                      "phase":  "H11.0-P4.1",
                      "generated_at":  "2026-07-11T12:31:37Z",
                      "checks":  [
                                     {
                                         "name":  "target_version_installed",
                                         "status":  "PASS",
                                         "detail":  "11.0.4.1"
                                     },
                                     {
                                         "name":  "php_syntax_all_files",
                                         "status":  "PASS",
                                         "detail":  "115 checked; failures=0"
                                     },
                                     {
                                         "name":  "http_gate",
                                         "status":  "PASS",
                                         "detail":  "failures=0"
                                     },
                                     {
                                         "name":  "oracle_read_only_regression_gate",
                                         "status":  "PASS",
                                         "detail":  "failures=0"
                                     },
                                     {
                                         "name":  "revenue_regression_parity_10_of_10",
                                         "status":  "PASS",
                                         "detail":  "functions=10; failures=0"
                                     },
                                     {
                                         "name":  "revenue_regression_chart_structural_qa",
                                         "status":  "PASS",
                                         "detail":  "failures=0"
                                     },
                                     {
                                         "name":  "revenue_regression_browser_render_5_of_5",
                                         "status":  "PASS",
                                         "detail":  "rendered=5/5; failed=0"
                                     },
                                     {
                                         "name":  "patient_activity_legacy_runtime_parity_8_of_8",
                                         "status":  "PASS",
                                         "detail":  "functions=8; failures=0; max_diff=0"
                                     },
                                     {
                                         "name":  "patient_activity_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "patient_activity_actual_browser_render_3_of_3",
                                         "status":  "PASS",
                                         "detail":  "rendered=3/3; failed=0"
                                     },
                                     {
                                         "name":  "operations_legacy_runtime_parity_2_of_2",
                                         "status":  "PASS",
                                         "detail":  "functions=2; failures=0; max_diff=0"
                                     },
                                     {
                                         "name":  "operations_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "operations_actual_browser_render_3_of_3",
                                         "status":  "PASS",
                                         "detail":  "rendered=3/3; failed=0"
                                     },
                                     {
                                         "name":  "diagnostics_legacy_runtime_parity_4_of_4",
                                         "status":  "PASS",
                                         "detail":  "functions=4; failures=0; max_diff=0"
                                     },
                                     {
                                         "name":  "diagnostics_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "diagnostics_actual_browser_render_2_of_2",
                                         "status":  "PASS",
                                         "detail":  "rendered=2; empty=0; failed=0"
                                     },
                                     {
                                         "name":  "doctors_legacy_runtime_parity_6_of_6",
                                         "status":  "PASS",
                                         "detail":  "functions=6; failures=0; identity_mismatches=0; max_diff=0"
                                     },
                                     {
                                         "name":  "doctors_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "doctors_actual_browser_render_2_of_2",
                                         "status":  "PASS",
                                         "detail":  "rendered=2; empty=0; failed=0"
                                     },
                                     {
                                         "name":  "beds_units_legacy_runtime_parity_5_of_5",
                                         "status":  "PASS",
                                         "detail":  "functions=5; failures=0; identity_mismatches=0; max_diff=0"
                                     },
                                     {
                                         "name":  "beds_units_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "beds_units_actual_browser_render_2_of_2",
                                         "status":  "PASS",
                                         "detail":  "rendered=2; empty=0; failed=0"
                                     },
                                     {
                                         "name":  "specialty_finance_reconstructed_runtime_parity_6_of_6",
                                         "status":  "PASS",
                                         "detail":  "functions=6; failures=0; max_diff=0"
                                     },
                                     {
                                         "name":  "specialty_finance_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "specialty_finance_source_evidence_boundary_preserved",
                                         "status":  "PASS",
                                         "detail":  "HISTORICAL_FUNCTION_BODIES_MISSING_RECONSTRUCTED_SOURCE_PARITY_ONLY"
                                     },
                                     {
                                         "name":  "specialty_finance_actual_browser_completion_3_of_3",
                                         "status":  "PASS",
                                         "detail":  "rendered=3; empty=0; failed=0"
                                     },
                                     {
                                         "name":  "executive_ui_foundation_shared_components",
                                         "status":  "PASS",
                                         "detail":  "PASS"
                                     },
                                     {
                                         "name":  "executive_ui_foundation_browser_render",
                                         "status":  "PASS",
                                         "detail":  "rendered=3"
                                     },
                                     {
                                         "name":  "architecture_readiness",
                                         "status":  "PASS",
                                         "detail":  "blocking=0; legacy_debt=1"
                                     },
                                     {
                                         "name":  "legacy_functional_inventory_gap_baseline",
                                         "status":  "PASS",
                                         "detail":  "total=31; matched=18; partial=9; missing=4; next=acty"
                                     },
                                     {
                                         "name":  "admission_category_legacy_runtime_parity_2_of_2",
                                         "status":  "PASS",
                                         "detail":  "functions=2; failures=0; max_diff=0"
                                     },
                                     {
                                         "name":  "admission_category_full_historical_source_recovered",
                                         "status":  "PASS",
                                         "detail":  "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED"
                                     },
                                     {
                                         "name":  "admission_category_parity_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     },
                                     {
                                         "name":  "multi_branch_outpatient_runtime_parity_2_of_2",
                                         "status":  "FAIL",
                                         "detail":  "modes=0; value_checks=0; failures=1; max_diff=-1"
                                     },
                                     {
                                         "name":  "multi_branch_outpatient_full_historical_source_recovered",
                                         "status":  "PASS",
                                         "detail":  "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED"
                                     },
                                     {
                                         "name":  "multi_branch_outpatient_is_read_only",
                                         "status":  "PASS",
                                         "detail":  "NONE"
                                     }
                                 ],
                      "php_files_checked":  115,
                      "php_failures":  0,
                      "http_gate":  "PASS",
                      "oracle_gate":  "PASS",
                      "revenue_parity_gate":  "PASS",
                      "revenue_functions_checked":  10,
                      "revenue_browser_gate":  "PASS",
                      "revenue_browser_rendered":  5,
                      "patient_activity_parity_gate":  "PASS",
                      "patient_activity_functions_checked":  8,
                      "patient_activity_max_difference":  0,
                      "patient_activity_browser_gate":  "PASS",
                      "patient_activity_browser_rendered":  3,
                      "patient_activity_browser_failed":  0,
                      "operations_parity_gate":  "PASS",
                      "operations_functions_checked":  2,
                      "operations_max_difference":  0,
                      "operations_browser_gate":  "PASS",
                      "operations_browser_rendered":  3,
                      "operations_browser_failed":  0,
                      "diagnostics_parity_gate":  "PASS",
                      "diagnostics_functions_checked":  4,
                      "diagnostics_max_difference":  0,
                      "diagnostics_browser_gate":  "PASS",
                      "diagnostics_browser_rendered":  2,
                      "diagnostics_browser_empty":  0,
                      "diagnostics_browser_failed":  0,
                      "doctors_parity_gate":  "PASS",
                      "doctors_functions_checked":  6,
                      "doctors_max_difference":  0,
                      "doctors_ranking_identity_mismatches":  0,
                      "doctors_browser_gate":  "PASS",
                      "doctors_browser_rendered":  2,
                      "doctors_browser_empty":  0,
                      "doctors_browser_failed":  0,
                      "beds_units_parity_gate":  "PASS",
                      "beds_units_functions_checked":  5,
                      "beds_units_identity_mismatches":  0,
                      "beds_units_max_difference":  0,
                      "beds_units_browser_gate":  "PASS",
                      "beds_units_browser_rendered":  2,
                      "beds_units_browser_empty":  0,
                      "beds_units_browser_failed":  0,
                      "specialty_finance_parity_gate":  "PASS",
                      "specialty_finance_functions_checked":  6,
                      "specialty_finance_max_difference":  0,
                      "specialty_finance_browser_gate":  "PASS",
                      "specialty_finance_browser_rendered":  3,
                      "specialty_finance_browser_empty":  0,
                      "specialty_finance_browser_failed":  0,
                      "specialty_finance_source_evidence_boundary":  "HISTORICAL_FUNCTION_BODIES_MISSING_RECONSTRUCTED_SOURCE_PARITY_ONLY",
                      "legacy_inventory_gate":  "PASS",
                      "legacy_known_functions_total":  31,
                      "legacy_matched":  18,
                      "legacy_partial":  9,
                      "legacy_missing":  4,
                      "legacy_matched_pct":  58.1,
                      "next_legacy_migration_item":  "acty",
                      "admission_category_parity_gate":  "PASS",
                      "admission_category_functions_checked":  2,
                      "admission_category_max_difference":  0,
                      "admission_category_source_boundary":  "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED",
                      "legacy_matched_after_p3_pass":  19,
                      "legacy_missing_after_p3_pass":  3,
                      "legacy_matched_pct_after_p3_pass":  61.3,
                      "multi_branch_outpatient_parity_gate":  "FAIL",
                      "multi_branch_outpatient_modes_checked":  0,
                      "multi_branch_outpatient_value_checks":  0,
                      "multi_branch_outpatient_max_difference":  -1,
                      "multi_branch_outpatient_source_boundary":  "FULL_HISTORICAL_FUNCTION_BODY_RECOVERED",
                      "legacy_matched_after_p4_pass":  19,
                      "legacy_partial_after_p4_pass":  9,
                      "legacy_matched_pct_after_p4_pass":  61.3,
                      "write_operations":  "NONE"
                  }
              ]
}