Abstract
We developed a generalizable care-continuity classification tool that can be easily applied across EHR systems, strengthening the rigor of EHR-based research. By identifying patients whose medical history is substantially captured within a single system, this model mitigates misclassification bias and improves the reliability of clinical studies derived from fragmented electronic health record (EHR) data.
Introduction
The United States healthcare system is characterized by significant fragmentation. Patients frequently navigate between multiple, unlinked providers, resulting in Electronic Health Record (EHR) data that offers only a partial view of a patient's medical journey. This "data discontinuity" presents a major hurdle for clinical researchers. When critical diagnoses or treatments occur outside the primary EHR system, researchers may inadvertently misclassify patients—for instance, labeling a patient as "healthy" simply because their chronic condition was managed at a different facility.
Studies indicate that patients with low data continuity can experience up to a 28-fold higher misclassification rate in comorbidity indices. While linking EHRs to insurance claims data is considered the "gold standard" for achieving a longitudinal view, such linkages are often unavailable due to privacy regulations and technical barriers. This research introduces a machine learning-based solution to identify "reliable" patient cohorts using only routinely collected EHR data.
Methods
The development of the care-continuity classification tool followed a rigorous four-stage process:
- Quantifying Data Gaps: The researchers utilized the Harmonized Encounter Proportion Score (HEPS), a metric that compares EHR data against linked insurance claims (the ground truth). HEPS calculates the percentage of a patient's total healthcare encounters captured within the specific EHR system.
- Determining the Continuity Threshold: By analyzing 42 clinical variables and three comorbidity indices, the team identified a "sweet spot" for data reliability. They determined that a 30% HEPS threshold—where the EHR captures at least 30% of total encounters—is the optimal cutoff to minimize misclassification risk (Mean Standardized Difference < 0.10).
- Predictive Modeling: Using only routinely collected EHR features (demographics, vitals, and encounter counts), the team trained Logistic Regression and XGBoost models to predict whether a patient meets the 30% HEPS threshold.
- Fairness and Interpretability: To ensure the model did not introduce systemic bias, the researchers employed SHAP (SHapley Additive exPlanations) for model transparency and applied adversarial debiasing. This was specifically used to correct a detected bias where the model initially showed higher false negative rates for Hispanic patients.
Datasets and Validation
The study leveraged two large-scale, linked datasets from the PCORnet national network to ensure geographic and demographic diversity:
- Internal Validation (Florida): Linked OneFlorida+ EHR and Florida Medicaid claims data (2015–2023), comprising a training cohort of 5,462 adults and a testing cohort of 3,364 adults.
- External Validation (Louisiana): Linked REACHnet EHR and Louisiana Blue Cross Blue Shield (LABlue) claims data (2022–2024), involving 14,567 adults.
The use of different insurance types (Medicaid vs. Commercial) and distinct geographic regions provided a robust test of the model’s transportability across different healthcare environments.
Key Results
The model demonstrated strong performance and significant utility in identifying high-continuity patients:
- Predictive Accuracy: The XGBoost model achieved an AUROC of 0.77 in internal testing and improved to 0.81 during external validation, suggesting high generalizability.
- Mitigating Misclassification: For patients with very low continuity (<10%), the underestimation of comorbidity burden was 6.6 to 9.7 times higher than for those identified as high-continuity.
- Identifying Proxies for Completeness: The model revealed that specific EHR features are strong indicators of continuity. Significant predictors included the presence of BMI records, triglyceride lab results, and specific outpatient encounter patterns. These features suggest that the system is acting as the patient's primary care hub.
- Algorithmic Fairness: Through adversarial debiasing, the researchers successfully leveled the predictive performance across racial and ethnic groups, ensuring that the resulting research cohorts remain representative and inclusive.
Discussion and Conclusion
This study establishes that 100% data capture is not a prerequisite for high-quality EHR research. By identifying patients who meet a 30% continuity threshold, researchers can significantly reduce the "noise" of missing data. The developed model provides a scalable, fair, and interpretable tool for cohort selection that does not rely on external claims data.
While the model is highly effective for research, future work should explore its performance in older populations (e.g., Medicare beneficiaries) and its potential for clinical operations. Integrating these continuity scores into clinical dashboards could help providers identify patients with fragmented care who may be at higher risk for gaps in chronic disease management. Ultimately, this tool strengthens the rigor of EHR-based real-world evidence, making clinical research more reliable and equitable.
Summary updated