{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,28]],"date-time":"2026-09-28T04:56:19Z","timestamp":1790571379810,"version":"4.1.0"},"reference-count":43,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2026,9,28]],"date-time":"2026-09-28T00:00:00Z","timestamp":1790553600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Pharmacol."],"abstract":"<jats:p>\n                    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). Existing modernization approaches force a choice between full rewrites that abandon validated logic and incremental refactoring that preserves structural barriers to AI access. We present a non-destructive framework that achieves AI-driven pharmacoinformatics readiness without altering legacy source code. A metadata layer \u2014 a bridge map, a typed Intermediate Representation (IR), and an orchestrator \u2014 wraps existing reporting components, re-exposes their outputs as structured data consumable by large language models (LLMs), and enables optional incremental consolidation of selected components while the remainder operates unchanged. On a 558-component industrial SAS reporting library (373,000 lines of code), the framework demonstrated immediate AI readiness under coexistence mode with the legacy library unchanged. Where consolidation was elected, the modernized core achieved a 92% reduction in consolidated-core SAS lines of code (excluding the Python and YAML layers). 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 across all 14 report types 82.7%, best 99.2%); the three remaining reports differed in table-layout geometry rather than in computed values. A public benchmark on CDISC CDISCPilot01 data achieved 100% regression-consistency against frozen reference outputs across 5 reports (4,764 cells, 0 mismatches) \u2014 a reproducibility benchmark rather than independent validation. In a proof-of-concept study with a single large language model, the IR illustrated the feasibility of table summarization, adverse-event anomaly detection (a pharmacovigilance signal-detection example), and trial configuration generation \u2014 feasibility rather than validated performance. The framework offers a regulation-aware path to AI-integrated clinical trial reporting intended to reduce modernization overhead without interrupting ongoing regulatory submissions. Its regulatory-traceability features are design properties rather than validated compliance: no formal Installation\/Operational\/Performance Qualification (IQ\/OQ\/PQ) has been performed. All results derive from a single case study; the methodology is\n                    <jats:italic>designed to be<\/jats:italic>\n                    reusable across organizations and library scales, pending multi-site empirical validation.\n                  <\/jats:p>","DOI":"10.3389\/fphar.2026.1876207","type":"journal-article","created":{"date-parts":[[2026,9,28]],"date-time":"2026-09-28T04:29:23Z","timestamp":1790569763000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["A non-destructive methodological framework for modernizing legacy clinical reporting systems for AI-driven pharmacoinformatics: a SAS case study"],"prefix":"10.3389","volume":"17","author":[{"given":"Jaime","family":"Yan","sequence":"first","affiliation":[{"name":"Department of Data Science and Analytics, Harrisburg University of Science and Technology","place":["Harrisburg, PA, United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2026,9,28]]},"reference":[{"key":"B1","volume-title":"Software Architecture in Practice","author":"Bass","year":"2021"},{"key":"B2","volume-title":"Carpenter\u2019s Complete Guide to the SAS Macro Language","author":"Carpenter","year":"2016"},{"key":"B3","volume-title":"How Is Chatgpt\u2019s Behavior Changing over Time?","author":"Chen","year":"2023"},{"key":"B4","doi-asserted-by":"crossref","DOI":"10.1007\/978-1-4471-2239-5","volume-title":"Software and Systems Traceability","author":"Cleland-Huang","year":"2012"},{"key":"B5","volume-title":"CDISC Pilot Project (Cdiscpilot01)","year":"2013"},{"key":"B6","volume-title":"Analysis Data Model (Adam) v2.1","year":"2021"},{"key":"B7","volume-title":"Analysis Results Standard v1.0","year":"2024"},{"key":"B8","doi-asserted-by":"crossref","DOI":"10.21236\/ADA377453","article-title":"A survey of legacy system modernization approaches","volume-title":"Software Engineering Institute","author":"Comella-Dorda","year":"2000"},{"key":"B9","volume-title":"Domain-Driven Design: Tackling Complexity in the Heart of Software","author":"Evans","year":"2003"},{"key":"B10","volume-title":"Patterns of Enterprise Application Architecture","author":"Fowler","year":"2002"},{"key":"B11","author":"Fowler","year":"2004","journal-title":"StranglerFigApplication"},{"key":"B12","article-title":"Organizing and building a centralized SAS macro library","volume-title":"Proceedings of Pharmasug","author":"Fu","year":"2004"},{"key":"B13","volume-title":"Design Patterns: Elements of Reusable object-oriented Software","author":"Gamma","year":"1994"},{"key":"B14","doi-asserted-by":"publisher","first-page":"17","DOI":"10.1186\/s12911-015-0145-7","article-title":"A scoping review of cloud computing in healthcare","volume":"15","author":"Griebel","year":"2015","journal-title":"BMC Med. Inf. Decis. Mak."},{"key":"B15","doi-asserted-by":"publisher","first-page":"577","DOI":"10.1016\/j.tips.2019.05.005","article-title":"Artificial intelligence for clinical trial design","volume":"40","author":"Harrer","year":"2019","journal-title":"Trends Pharmacol. Sci."},{"key":"B16","volume-title":"ICH E3: Structure and Content of Clinical Study Reports","year":"1995"},{"key":"B17","volume-title":"ICH E8(R1): General Considerations for Clinical Studies","year":"2021"},{"key":"B18","volume-title":"GAMP 5: A Risk-based Approach to Compliant Gxp Computerized Systems","year":"2022"},{"key":"B19","article-title":"Developing and managing a SAS macro library","volume-title":"Proceedings of Pharmasug","author":"James","year":"2006"},{"key":"B20","doi-asserted-by":"publisher","first-page":"629","DOI":"10.1038\/s41586-021-03430-5","article-title":"Evaluating eligibility criteria of oncology trials using real-world data and AI","volume":"592","author":"Liu","year":"2021","journal-title":"Nature"},{"key":"B21","doi-asserted-by":"publisher","first-page":"bbac409","DOI":"10.1093\/bib\/bbac409","article-title":"BioGPT: generative pre-trained transformer for biomedical text generation and mining","volume":"23","author":"Luo","year":"2022","journal-title":"Brief. Bioinform"},{"key":"B22","article-title":"Large-scale TFL automation for regulated pharmaceutical trials using CDISC analysis results metadata (ARM)","volume-title":"Proceedings of Pharmasug","author":"Malcolm","year":"2019"},{"key":"B23","doi-asserted-by":"publisher","first-page":"308","DOI":"10.1109\/TSE.1976.233837","article-title":"A complexity measure","author":"McCabe","year":"1976","journal-title":"IEEE Trans. Softw. Eng."},{"key":"B24","article-title":"Managing the organization of SAS format and macro code libraries in complex environments","volume-title":"Proceedings of the SAS Global Forum","author":"Muller","year":"2014"},{"key":"B25","first-page":"197","article-title":"A corpus with multi-level annotations of patients, interventions and outcomes to support language processing for medical literature","volume":"2018","author":"Nye","year":"2018","journal-title":"Proc. Assoc. Comput. Linguist."},{"key":"B26","volume-title":"Open-Source R Packages for Clinical Reporting","year":"2024"},{"key":"B27","unstructured":"Pinnacle 21 enterprise: CDISC compliance and data review\n          \n          \n          2024"},{"key":"B28","volume-title":"R: A Language and Environment for Statistical Computing","year":"2024"},{"key":"B29","article-title":"Architecting a regulatory compliant macro library using SAS drug development","volume-title":"Proceedings of Pharmasug","author":"Redner","year":"2007"},{"key":"B30","volume-title":"Software Considerations in Airborne Systems and Equipment Certification","year":"2012"},{"key":"B31","doi-asserted-by":"publisher","first-page":"295","DOI":"10.1007\/s40290-022-00441-z","article-title":"The use of artificial intelligence in pharmacovigilance: a systematic review of the literature","volume":"36","author":"Salas","year":"2022","journal-title":"Pharm. Med."},{"key":"B32","volume-title":"SAS Viya: Architecture Overview","year":"2023"},{"key":"B33","volume-title":"SAS Programming in the Pharmaceutical Industry","author":"Shostak","year":"2014"},{"key":"B34","volume-title":"SAS Macro Programming Made Easy","author":"Slaughter","year":"2018"},{"key":"B35","first-page":"1","article-title":"Migrating from COBOL to java","volume-title":"Proceedings of the IEEE International Conference on Software Maintenance","author":"Sneed","year":"2010"},{"key":"B36","doi-asserted-by":"publisher","first-page":"1930","DOI":"10.1038\/s41591-023-02448-8","article-title":"Large language models in medicine","volume":"29","author":"Thirunavukarasu","year":"2023","journal-title":"Nat. Med."},{"key":"B37","first-page":"13430","article-title":"21 CFR part 11: electronic records; electronic signatures","volume":"62","year":"1997","journal-title":"Fed. Regist."},{"key":"B38","volume-title":"General Principles of Software Validation: Guidance for Industry and FDA Staff","year":"2002"},{"key":"B39","volume-title":"Providing Regulatory Submissions in Electronic Format \u2013 Standardized Study Data: Guidance for Industry","year":"2021"},{"key":"B40","volume-title":"Electronic Submissions Gateway: Submission Statistics","year":"2024"},{"key":"B41","doi-asserted-by":"publisher","first-page":"1134","DOI":"10.1038\/s41591-024-02855-5","article-title":"Adapted large language models can outperform medical experts in clinical text summarization","volume":"30","author":"Van Veen","year":"2024","journal-title":"Nat. Med."},{"key":"B42","volume-title":"Python 3 Reference Manual","author":"Van Rossum","year":"2009"},{"key":"B43","volume-title":"Using Large Language Models to Generate Clinical Trial Tables and Figures","author":"Yang","year":"2024"}],"container-title":["Frontiers in Pharmacology"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fphar.2026.1876207\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,28]],"date-time":"2026-09-28T04:29:30Z","timestamp":1790569770000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fphar.2026.1876207\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,9,28]]},"references-count":43,"alternative-id":["10.3389\/fphar.2026.1876207"],"URL":"https:\/\/doi.org\/10.3389\/fphar.2026.1876207","relation":{},"ISSN":["1663-9812"],"issn-type":[{"value":"1663-9812","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,9,28]]},"article-number":"1876207"}}