Combining Inpatient and Outpatient Data for Diagnosis of Non-Valvular Atrial Fibrillation Using Electronic Health Records: A Validation Study

Clin Epidemiol. 2020 May 20:12:477-483. doi: 10.2147/CLEP.S230677. eCollection 2020.

Abstract

Purpose: Previous studies have demonstrated differences in atrial fibrillation (AF) detection based on data from hospital sources without data from outpatient sources. We investigated the detection of documented diagnoses of non-valvular AF in a large Israeli health-care organization using electronic health record data from multiple sources.

Patients and methods: This was an open-chart validation study. Three distinct algorithms for identifying AF in electronic health records, differing in the source of their International Classification of Diseases, Ninth Revision code and use of the associated free text, were defined. Algorithm 1 incorporated inpatient data with outpatient data and the associated free text. Algorithm 2 incorporated inpatient and outpatient data regardless of the free text associated with AF diagnosis. Algorithm 3 used only inpatient data source. These algorithms were compared to a gold standard and their sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV) were calculated. To establish the gold standard (documentation of arrhythmia based on electrocardiography interpretation or a cardiologist's written diagnosis), 200 patients at highest risk for having non-valvular AF were randomly selected for open-chart validation by two physicians.

Results: The algorithm that included hospital settings, outpatient settings, and incorporated associated free text in the outpatient records had the optimal balance between all validation measures, with a high level of sensitivity (85.4%), specificity (95.0%), PPV (81.4%), and NPV (96.2%). The alternative algorithm that combined inpatient and outpatient data without free text also performed better than the algorithm that included only hospital data (82.9%, 95.0%, 81.0%, and 95.6%, compared to 70.7%, 96.9%, 85.3%, and 92.8%, sensitivity, specificity, PPV, and NPV, respectively).

Conclusion: In this study, involving a comprehensive data collection from inpatient and outpatient sources, incorporating outpatient data with inpatient data improved the diagnosis of non-valvular AF compared to inpatient data alone.

Keywords: atrial fibrillation; electronic health records; validation.