validate($bundle); echo "Validation passed: " . ($result->valid ? "YES" : "NO") . "\n"; echo "Score: " . $result->score . "%\n"; echo "Total Entries: " . count($bundle['entry']) . "\n"; if (!empty($result->errors)) { print_r($result->errors); } file_put_contents('d:/Workplace/HMS_CI4_OLD/scratch/validated_enriched_bundle.json', json_encode($bundle, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); echo "Saved scratch/validated_enriched_bundle.json (" . strlen(json_encode($bundle)) . " bytes)\n";