Related Experiment Video
Updated: Jul 18, 2025

Inverse Probability of Treatment Weighting Propensity Score using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
A broadly applicable approach to enrich electronic-health-record cohorts by identifying patients with complete data:
Jeffrey G Klann1,2, Darren W Henderson3, Michele Morris4
1Department of Medicine, Massachusetts General Hospital, Boston, MA 02114, United States.
Objective:
Patients who receive most care within a single healthcare system (colloquially called a "loyalty cohort" since they typically return to the same providers) have mostly complete data within that organization's electronic health record (EHR). Loyalty cohorts have low data missingness, which can unintentionally bias research results. Using proxies of routine care and healthcare utilization metrics, we compute a per-patient score that identifies a loyalty cohort.
Materials And Methods:
We implemented a computable program for the widely adopted i2b2 platform that identifies loyalty cohorts in EHRs based on a machine-learning model, which was previously validated using linked claims data. We developed a novel validation approach, which tests, using only EHR data, whether patients returned to the same healthcare system after the training period. We evaluated these tools at 3 institutions using data from 2017 to 2019.
Results:
Loyalty cohort calculations to identify patients who returned during a 1-year follow-up yielded a mean area under the receiver operating characteristic curve of 0.77 using the original model and 0.80 after calibrating the model at individual sites. Factors such as multiple medications or visits contributed significantly at all sites. Screening tests' contributions (eg, colonoscopy) varied across sites, likely due to coding and population differences.
Discussion:
This open-source implementation of a "loyalty score" algorithm had good predictive power. Enriching research cohorts by utilizing these low-missingness patients is a way to obtain the data completeness necessary for accurate causal analysis.
Conclusion:
i2b2 sites can use this approach to select cohorts with mostly complete EHR data.
More Related Videos
Related Concept Videos
Methods of Documentation VII: EMR
Data Collection I
Purpose of Health Records II
Data Collection II
Purpose of Health Records I
Here's a breakdown of how health records serve these purposes:
Model-Independent Approaches for Pharmacokinetic Data: Noncompartmental Analysis
One important characteristic of noncompartmental analyses is that drug exposure increases proportionally with increasing doses. This...

