A Non-Destructive Methodological Framework for Modernizing Legacy Clinical Reporting Systems for AI-Driven Pharmacoinformatics: A SAS Case Study
Jaime Yan
Journal article · Frontiers in Pharmacology · 2026 · sole author
Abstract
Legacy clinical reporting pipelines bottleneck drug development and pharmacovigilance: they encode regulatory-grade analytical logic but produce opaque output with no machine-readable intermediate layer, resisting integration with artificial intelligence (AI). This framework achieves AI-driven pharmacoinformatics readiness without altering legacy source code: a metadata layer — a bridge map, a typed Intermediate Representation (IR), and an orchestrator — wraps existing reporting components, re-exposes their outputs as structured data consumable by large language models, and enables optional incremental consolidation. On a 558-component industrial SAS reporting library (373,000 lines of code), the framework demonstrated immediate AI readiness with the legacy library unchanged; where consolidation was elected, the modernized core achieved a 92% reduction in consolidated-core SAS lines of code. Parity validation on 14 report types from an internal Phase III study cleared an 80% cell-level triage-admission gate on 11 of 14 reports (mean 82.7%, best 99.2%), and a public CDISCPilot01 benchmark achieved 100% regression-consistency across 5 reports (4,764 cells) — a reproducibility benchmark rather than independent validation. A single-LLM proof of concept illustrated table summarization, adverse-event anomaly detection, and trial configuration generation as feasibility, not validated performance. Regulatory-traceability features are design properties rather than validated compliance; all results derive from a single case study.
Keywords
artificial intelligence · pharmacovigilance · SAS · CDISC · clinical reporting systems · intermediate representation · non-destructive modernization · pharmacoinformatics
Cite
Jaime Yan. "A Non-Destructive Methodological Framework for Modernizing Legacy Clinical Reporting Systems for AI-Driven Pharmacoinformatics: A SAS Case Study." Frontiers in Pharmacology, 2026. doi:10.3389/fphar.2026.1876207.