Highlights
Public health relevance—How does this work relate to a public health issue?
- Clinical trials are slow and costly, which limits the number of important health questions that can be studied and slows improvements in patient care.
- Embedding real-world data into trials allows for more of a pragmatic trial approach, making trials cheaper and more efficient.
Public health significance—Why is this work of significance to public health?
- This is one of the first studies to directly test whether real-world data can substitute for traditional outcome collection within a randomized controlled trial.
- Demonstrating that real-world data can reliably reproduce trial findings could change the way future clinical research is conducted across large health systems
Public health implications—What are the key implications or messages for practitioners, policy makers and/or researchers in public health?
- Investing in validation of real-world data methods now could make future clinical trials faster, cheaper, and more efficient.
- Real-world data phenotypes accurately captured major outcomes, and emerging tools like AI could help capture even more outcomes accurately after further validation.
Abstract
Randomized controlled trials (RCTs) are crucial for determining effective interventions but are costly, time-consuming, and complex. Electronic health records (EHRs) offer the potential to enhance research using clinical data, reducing costs and improving efficiency. We evaluated the accuracy of EHR-derived phenotypes for endpoint identification versus RCT-outcome ascertainment in the PRESERVE trial (NCT01467466), comparing sodium bicarbonate vs. sodium chloride and oral acetylcysteine vs. placebo in preventing serious adverse outcomes and contrast-associated acute kidney injury (CIAKI) after angiography. PRESERVE outcomes were compared with EHR data from the Veterans Affairs Corporate Data Warehouse. Real-world data (RWD) phenotypes captured serious adverse events within 90 days post-angiography, including death, dialysis need, and persistent kidney decline. Sensitivity, specificity, and percent agreement were calculated using trial outcomes as the gold standard. Among 4,196 PRESERVE patients, 95% had outcomes assessed. RWD outcomes showed mixed accuracy: 100% sensitivity/specificity for death; high sensitivity for primary composite events (71.2%), dialysis (75.0%), and hospitalization (78.1%); and low sensitivity for CIAKI (45.8%) and persistent kidney decline (40.5%). Substituting RWD outcomes into primary analysis produced conclusions matching the RCT conclusions. EHR phenotypes can substitute for traditional outcome collection, given adequate planning and validation. Despite variable accuracy, RWD outcomes yielded similar conclusions to RCTs, supporting their use for trial efficiency and reducing costs.
1. Introduction
Traditional randomized controlled trials (RCTs) are the gold standard to determine which interventions are more effective or beneficial by comparing carefully curated outcomes [1]. RCTs are so valuable because they can mitigate bias and control for potential confounders, but they are costly, are complex, and require long timelines, limiting the number of studies that can be done. This ultimately limits the amount of evidence available to address important questions, drive improvement and efficiency, and support care delivery transformation [2,3,4].
Electronic health records (EHRs) and other real-world data (RWD) sources present a valuable opportunity for enabling a partnership between researchers and clinicians to improve healthcare delivery and answer questions that are valuable to patients, providers, policymakers, and payers [3]. EHRs are designed to serve healthcare providers and patients by documenting clinical observations, patient–provider interactions, and billing records, not research [5]. However, there is an opportunity to utilize RWD to support research activities, including clinical trial conduct, and to promote a learning healthcare system [6]. In fact, the use of these algorithms has been extensive in observational research for decades. Only more recently, however, have prospective randomized studies begun exploring the use of RWD as a primary research data source. Use of these data is not without its challenges and requires thoughtful consideration and curation to ensure reasonable conclusions may be drawn from its use.
In order to use these data for clinical trial conduct, new applications of RWD must be established. One such task is the development and validation of clinically derived phenotypes: clinical conditions, characteristics, or sets of clinical features that can be determined solely from RWD using defined sets of data elements and logical expressions [6,7,8]. Standardized RWD phenotypes can extract large-scale information from medical records quickly and inexpensively compared to manual data collection and entry as performed in a traditional RCT [3].
RWD present an opportunity for faster and cheaper data collection compared to data collected in electronic case report forms (eCRFs) in a traditional clinical trial. Despite this, very little is known about the performance of outcome-ascertainment phenotype algorithms in a clinical trial setting. A study by Macnair et al. assessed concordance between cardiovascular outcomes from a clinical trial database with two healthcare systems’ data and found there to be low concordance [9]. Additionally, a large parallel investigation of RCT data and RWD for the same trial is underway with results pending [10]. This gap in understanding of the accuracy of using RWD in clinical trials leaves open the question of whether RWD can reliably substitute for primary data collection in research.
The Prevention of Serious Adverse Events Following Angiography (PRESERVE) trial (NCT01467466) was an international multicenter, double-blind, randomized controlled trial that compared the effectiveness of intravenous sodium bicarbonate against intravenous sodium chloride and oral acetylcysteine against oral placebo in preventing serious adverse outcomes and contrast-associated acute kidney injury (CIAKI) in high-risk veterans undergoing cardiac and non-cardiac angiography [11]. The analysis herein examines the accuracy of using RWD phenotypes for endpoint identification against RCT-outcome ascertainment in the context of the PRESERVE trial.
2. Methods
2.1. Data Sources
We used the PRESERVE trial database, the electronic health record data from the Department of Veterans Affairs Corporate Data Warehouse (CDW), and data from the Centers for Medicare and Medicaid Services (CMS). The CDW covers the entire veteran population utilizing the VA Healthcare System and contains individual information on demographic factors, medical history, key laboratory values, procedure codes, and diagnoses (inpatient and outpatient) coded with the ICD-9 and ICD-10 classification systems. CMS data augmented the EHR with diagnoses and procedures that occurred outside the VA in patients 65 years and older. Demographic and baseline data from RWD sources were captured as the most proximal measurement occurring prior to a participant’s randomization date.
2.2. Real-World Data (RWD) Phenotypes
RWD phenotypes were defined to describe PRESERVE’s composite endpoint of major adverse kidney events and death (MAKE-D), which included all-cause death, need for acute dialysis, or persistent decline in kidney function within 90 days following the index angiography (Table 1):
Table 1.
CPT, ICD-9-CM and ICD-10 codes to define conditions of interest.
- Death based on medical record and/or vital status registry documentation.
- Need for acute dialysis clinically defined as initiation of any modality of renal replacement therapy (intermittent hemodialysis, peritoneal dialysis, continuous renal replacement therapy, or sustained low-efficiency dialysis) during the follow-up period.
- Persistent decline in kidney function clinically defined as an increase in serum creatinine from baseline (taken within 30 days prior to angiography) of at least 50% at 90 days following the index angiographic procedure.
The following secondary outcomes were also examined:
- CIAKI clinically defined by an increase in serum creatinine of ≥0.5 mg/dL and/or 25% from the pre-procedure value at 4 days following angiography.
- Hospitalization for acute coronary syndrome, heart failure, or cerebrovascular accident (MACE) during the follow-up period.
- All-cause re-hospitalization within 90 days of the index angiographic procedure assessed as episodes of re-hospitalization, days of hospitalization (inclusive of the index hospitalization), and hospital-free days (alive and not in the hospital) through day 90.
2.3. Statistical Analysis
Sensitivity, specificity, and percent agreement and their associated 95% Wilson confidence intervals were calculated comparing outcomes ascertained during the clinical trial and those identified with RWD phenotypes. Given that each primary outcome in the RCT data was adjudicated by a clinical investigator, outcome status identified during the trial was considered the true state.
We recreated the modified intention-to-treat analysis performed by the PRESERVE trial by substituting RWD phenotypes for RCT outcomes and only including patients within the VA Healthcare System. We compared the baseline and procedural characteristics between the sodium bicarbonate group and the sodium chloride group and between the acetylcysteine group and the placebo group using the t-test for normally distributed continuous variables, the Wilcoxon rank-sum test for variables without a normal distribution, and the chi-square test for categorical variables. To test the interaction between sodium bicarbonate and acetylcysteine, we used a multivariable logistic regression model that included the two randomized treatments and their interaction as parameters.
The PRESERVE trial ended after a prespecified interim analysis after approximately 50% of the expected number of patients had been followed through 90 days. The trial used the O’Brien–Fleming multiple testing procedure with an overall two-sided type 1 error of 2.5% for each hypothesis tested. Hence, the interim hypotheses were tested at a p-value of 0.001 and the final hypotheses at a p-value of 0.024. To compare analyses, the same type I error rates were applied to analyses utilizing RWD phenotypes.
Additionally, we conducted a chart review on a random 10% sample of the mismatched outcomes (when CDW and trial data did not match) for hospitalizations of acute coronary syndrome, heart failure or cerebrovascular accident, and all-cause hospitalization, comparing these findings with our real-world data outcomes obtained through RWD phenotypes. The chart review on the random samples was conducted by P.M., who was blinded to the study treatments and whether the case for review was identified from the RCT data or RWD. This review contributed to refinement of the RWD phenotypes and highlighted potential barriers to using RWD phenotypes.
All analyses were conducted in SAS version 9.4 (SAS Institute, Cary, NC, USA).
3. Results
A total of 4196 patients from the PRESERVE trial who received care in the United States and had data available in the VA EHR system were included in this study. Of those, 2112 (50.3%) were randomized to the sodium bicarbonate group, 2084 (49.7%) to sodium chloride, 2095 (49.9%) to acetylcysteine, and 2101 (50.1%) to placebo. There were 4001 (95%) with completed follow-up and primary outcome assessments in the PRESERVE trial. There were no significant between-treatment differences across baseline characteristics when looking at either RCT data or RWD. Baseline data were consistent across the two data sources with the exception of history of diabetes, where fewer cases were identified through the RWD (Table 2).
Table 2.
Baseline characteristics between RWD and RCT data.
RWD phenotypes had mixed accuracy results when compared to outcomes ascertained during the trial (Table 3). Death had high accuracy with 100% sensitivity and specificity. Modest-to-high sensitivity and specificity were obtained for the primary composite event (71.2%, 98.9%), need for dialysis (75.0%, 99.8%), and all-cause hospitalization (78.1%, 93.8%). The sensitivity values for CIAKI and persistent kidney decline were low (45.8% and 40.5% respectively).
Table 3.
Sensitivity and specificity of outcomes.
Table 4 shows the odds ratios for the primary composite outcome and the secondary outcomes in both the sodium bicarbonate group versus the sodium chloride group and the acetylcysteine group versus the placebo group for the PRESERVE trial data and using RWD sources. Interaction between sodium bicarbonate and acetylcysteine was non-significant using either data source. There were no statistically significant differences in the between-treatment comparisons in either the trial outcomes or the RWD outcome results.
Table 4.
Unadjusted odds ratios of primary and secondary endpoints for clinical trial versus RWD phenotype.
4. Discussion
With the ever-expanding availability of RWD sources, there is a growing desire to understand whether these data can be used as a substitute for primary data collection in clinical trials. The PRESERVE trial conducted within the VA Healthcare System offered an opportunity to evaluate whether RWD would be a sufficient data source for conducting embedded trials among patients requiring angiography. RWD phenotypes of the primary and secondary outcomes had varying degrees of accuracy when compared to the same outcomes clinically adjudicated during the trial. However, when outcomes identified by RWD phenotype were substituted into the primary analysis, the results and conclusions about the trial question did not differ from those seen from trial data.
One overarching lesson is that the accuracy of RWD outcomes depends on the clinical definitions of those outcomes in the trial. Medical conditions have both clinical and practical definitions. One provider’s determination of the presence of a condition can differ from another’s depending on their application and interpretation of those definitions. Conversely, RWD phenotypes are applied the same way systematically for all evaluated patients. It can be difficult to build a phenotype that exactly mimics clinical decision making and definitions. In our sample review we learned that the clinical definitions being applied for outcomes were inconsistent. This is similar to the finding that there is variability in definitions of the outcomes in trials and what is coded in the health system database [9]. In a perfectly designed and executed clinical trial, assessment of outcomes will be consistent across all enrolled participants, but there is always variability for outcomes that have any degree of subjectivity. RWD outcomes have the advantage of being applied consistently across all strata of patients within a prescribed definition, so we know the performance of those algorithms.
Percent agreement between gold-standard adjudicated outcomes and RWD phenotypes may be high, but that is not sufficient to justify their use. When event rates are low, percent agreement may be overwhelmed by negative outcomes. This can result in statistical inference comparable to that which would be seen in a traditional data collection scenario, but the effect estimates are likely to be imprecise. As such, when efficacy is of primary interest, investigators should consider all performance characteristics to ensure they identify true cases and reduce the risk of misdiagnosis. This can also be done through chart review similar to our assessment of mismatched outcomes. The chart review gave us good concordance and allowed us to assess the mismatches to further strengthen the accuracy of our phenotype.
Very few RWD phenotypes will be error-free. This imprecision does not mean that these phenotypes cannot be used in the execution of a clinical trial, rather that the trial design should account for this level of error during the design phase [12]. Effect size estimates and, ultimately, sample size estimates should be chosen such that the final calculated power and specified type I error of the trial are preserved despite modest ascertainment error that may be introduced when using RWD sources.
The study population here was limited to veterans receiving care within the VA Healthcare System. The coding patterns, care delivery structure, and population characteristics may limit generalizability of the developed phenotypes to other health systems or community settings.
Not every trial and/or outcome is suitable for ascertainment by a RWD algorithm. Studies with small event rates that require very high accuracy to ensure power may not be good candidates. Similarly, outcomes that require clinical adjudication for accuracy or for which data are not collected in routine clinical care will likely introduce an unacceptable level of error. PRESERVE presents examples of both high- and low-utility RWD phenotypes. All-cause death can very reliably be ascertained from RWD sources and thus likely does not require study-specific data collection or ascertainment. Conversely, it was very difficult to develop a reliable RWD phenotype for CIAKI or persistent kidney decline. These outcomes require a fair amount of clinical adjudication for consistent and reliable ascertainment. This difference in reliability reaffirms that the choice of data source for a given trial will depend on both the reliability of the RWD source and the ability to develop a high-utility RWD phenotype that can identify true outcomes with a tolerable amount of error.
One of the opportunities associated with RWD outcomes in clinical trials is a reduction in trial cost and time. PRESERVE captured 1765 all-cause hospitalizations and 260 primary outcomes. Assuming each of these required a participant visit or conversation to alert the trial of its occurrence and subsequent health record review to verify primary outcome status, the time required to identify primary and secondary outcomes is likely in the range of hundreds of hours. Development of the RWD phenotypes admittedly required many hours and revisions, but even a generous estimate of 100 h to develop the phenotypes is a fraction of the time required in a traditional trial setting. Additionally, the high-performing RWD phenotypes can be reused for future trials, thus reducing time and cost in future studies, as well.
Novel analytic tools such as large language models, machine learning, and artificial intelligence may increase the performance of phenotypes and expand the range of outcomes that can be accurately ascertained from RWD. However, development and validation of those tools likely needs to be undertaken in advance of a trial to ensure the reliability of the evidence generated by the trial.
5. Conclusions
Major advancements have been made in pragmatic clinical trial tools, including the use of real-world data sources as primary research data. RWD phenotypes provide a great opportunity to embed trials into usual care, answer pressing practical questions, and save money on clinical trial infrastructure. Though not all trials or clinical questions lend themselves to the development of reliable RWD phenotypes, with appropriate planning and validation, RWD phenotypes can be used in place of traditional outcome data collection.
Author Contributions
S.M.L. contributed to concept design, writing, reviewing and editing of the paper; S.T.A. literature review, analysis, writing, reviewing and editing; M.J.D. analysis, reviewing and editing; J.F. concept design, literature review, writing, reviewing and editing; P.A.M. chart review and manuscript review; S.D.W. clinical expertise and manuscript review; R.E.F. concept design, reviewing and editing. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
All analysis was carried out under a full HIPAA waiver with the approval of the VA Boston Healthcare System Institutional Review Board (R&D #3252-X, 16 October 2019).
Informed Consent Statement
The study used the PRESERVE trial database, the electronic health record data from the Department of Veterans Affairs Corporate Data Warehouse (CDW), and data from the Centers for Medicare and Medicaid Services (CMS). We have obtained the data usage permission from the relevant institutions. This study did not require informed consent forms to be obtained.
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Acknowledgments
We would like to posthumously acknowledge and thank James Kaufman, for his invaluable knowledge of the PRESERVE trial’s history and execution, support in phenotype development, and overall support in the advancement of trials utilizing real-world data sources.
Conflicts of Interest
The authors declare no conflicts of interest.
Correction Statement
This article has been republished with a minor correction to the Institutional Review Board Statement. This change does not affect the scientific content of the article.
References
- Peto, R.; Collins, R.; Gray, R. “Large-scale randomized evidence: Large, simple trials and overviews of trials”: Discussion. A clinician’s perspective on meta-analyses. J. Clin. Epidemiol. 1995, 48, 41–44. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sherman, R.E.; Anderson, S.A.; Dal Pan, G.J.; Gray, G.W.; Gross, T.; Hunter, N.L.; LaVange, L.; Marinac-Dabic, D.; Marks, P.W.; Robb, M.A.; et al. Real-World Evidence—What Is It and What Can It Tell Us? N. Engl. J. Med. 2016, 375, 2293–2297. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bayley, K.B.; Belnap, T.; Savitz, L.; Masica, A.L.; Shah, N.; Fleming, N.S. Challenges in using electronic health record data for CER: Experience of 4 learning organizations and solutions applied. Med. Care 2013, 51, 80–86. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dhruva, S.S.; Ross, J.S.; Desai, N.R. Real-World Evidence: Promise and Peril For Medical Product Evaluation. Pharm. Ther. 2018, 43, 464–472. Available online: http://search.ebscohost.com/login.aspx?direct=true&db=ccm&AN=131005181&site=ehost-live (accessed on 12 August 2026).
- Newton, K.M.; Peissig, P.L.; Kho, A.N.; Bielinski, S.J.; Berg, R.L.; Choudhary, V.; Basford, M.; Chute, C.G.; Kullo, I.J.; Li, R.; et al. Validation of electronic medical record-based phenotyping algorithms: Results and lessons learned from the eMERGE network. J. Am. Med. Inform. Assoc. 2013, 20, 147–154. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Richesson, R.; Smerek, M.; Rusincovitch, S.; Zozus, M.; Chaudhuri, P. Electronic Health Records-Based Phenotyping. NIH Collaboratory Living Texbook of Pragmatic Clinical Trials. Available online: https://rethinkingclinicaltrials.org/resources/ehr-phenotyping/ (accessed on 3 December 2019).
- Richesson, R.L.; Hammond, W.E.; Nahm, M.; Wixted, D.; Simon, G.E.; Robinson, J.G.; Bauck, A.E.; Cifelli, D.; Smerek, M.M.; Dickerson, J.; et al. Electronic health records based phenotyping in next-generation clinical trials: A perspective from the NIH health care systems collaboratory. J. Am. Med. Inform. Assoc. 2013, 20, e226–e231. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Garza, M.Y.; Spencer, C.; Hamidi, M.; Liss, M.; Bikkanuri, M.; Syed, M.; Yadav, S.; Bhardwaj, G.; Chahal, A.P.S.; Goodman, K.; et al. Comparing the Accuracy of Traditional vs. FHIR®-Based Extraction of Electronic Health Record Data for Two Clinical Trials. Stud. Health Technol. Inf. 2024, 316, 1368–1372. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Macnair, A.; Nankivell, M.; Murray, M.L.; Rosen, S.D.; Appleyard, S.; Sydes, M.R.; Forcat, S.; Welland, A.; Clarke, N.W.; Mangar, S.; et al. Healthcare systems data in the context of clinical trials—A comparison of cardiovascular data from a clinical trial dataset with routinely collected data. Contemp. Clin. Trials 2023, 128, 107162. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zozus, M.N.; Choi, B.Y.; Garza, M.Y.; Facile, R.; Lanham, H.J.; Wang, Z.; Sanns, B.; Maallah, M.; Wei, H.G.; Cramer, A.N.; et al. Collaborative Program to Evaluate Real World Data for Use in Clinical Studies and Regulatory Decision Making. AMIA Jt. Summits Transl. Sci. Proc. 2023, 2023, 632–641. [Google Scholar] [PubMed] [PubMed Central]
- Weisbord, S.; Gallagher, M.; Jneid, H.; Garcia, S.; Cass, A.; Thwin, S.-S.; Conner, T.A.; Chertow, G.M.; Bhatt, D.L.; Shunk, K.; et al. Outcomes after Angiography with Sodium Bicarbonate and Acetylcysteine. N. Engl. J. Med. 2018, 378, 603–614. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Schnall, J.; Zhang, L.; Chen, J. Phenotyping issues for exploring electronic health records to design clinical trials. Clin. Trials 2020, 17, 402–404. [Google Scholar] [CrossRef] [Scilit] [PubMed] [PubMed Central]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.