A Simple and Portable Algorithm for Identifying Atrial Fibrillation in the Electronic Medical Record

Published:November 05, 2015DOI:
      Atrial fibrillation (AF) is common and increases stroke risk and mortality. Many knowledge gaps remain with respect to practice patterns and outcomes. Electronic medical records (EMRs) may serve as powerful research tools if AF status can be properly ascertained. We sought to develop an algorithm for identifying subjects with and without AF in the EMR and compare it to previous methods. Using a hospital network EMR (n = 5,737,846), we randomly selected 8,200 subjects seen at a large academic medical center in January 2014 to derive and validate 7 AF classification schemas (4 cases and 3 controls) to construct a composite AF algorithm. In an independent sample of 172,138 subjects, we compared this algorithm against published AF classification methods. In total, we performed manual adjudication of AF in 700 subjects. Three AF schemas (AF1, AF2, and AF4) achieved positive predictive value (PPV) >0.9. Two control schemas achieved PPV >0.9 (control 1 and control 3). A combination algorithm AF1, AF2, and AF4 (PPV 88%; 8.2% classified) outperformed published classification methods including >1 outpatient International Statistical Classification of Diseases, Ninth Revision code or 1 outpatient code with an electrocardiogram demonstrating AF (PPV 82%; 5.9% classified), ≥1 inpatient International Statistical Classification of Diseases, Ninth Revision code or electrocardiogram demonstrating AF (PPV 88%; 6.1% classified), or the intersection of these (PPV 84%; 7.4% classified). When applied simultaneously, the case and control algorithms classified 98.4% of the cohort with zero disagreement. In conclusion, we derived a parsimonious and portable algorithm to identify subjects with and without AF with high sensitivity. If broadly applied, this algorithm can provide optimal power for EMR-based AF research.
      To read this article in full you will need to make a payment

      Purchase one-time access:

      Academic & Personal: 24 hour online accessCorporate R&D Professionals: 24 hour online access
      One-time access price info
      • For academic or personal research use, select 'Academic and Personal'
      • For corporate R&D use, select 'Corporate R&D Professionals'


      Subscribe to American Journal of Cardiology
      Already a print subscriber? Claim online access
      Already an online subscriber? Sign in
      Institutional Access: Sign in to ScienceDirect


        • Corley S.D.
        • Epstein A.E.
        • DiMarco J.P.
        • Domanski M.J.
        • Geller N.
        • Greene H.L.
        • Josephson R.A.
        • Kellen J.C.
        • Klein R.C.
        • Krahn A.D.
        • Mickel M.
        • Mitchell L.B.
        • Nelson J.D.
        • Rosenberg Y.
        • Schron E.
        • Shemanski L.
        • Waldo A.L.
        • Wyse D.G.
        Relationships between sinus rhythm, treatment, and survival in the Atrial Fibrillation Follow-Up Investigation of Rhythm Management (AFFIRM) Study.
        Circulation. 2004; 109: 1509-1513
        • Stewart S.
        • Hart C.L.
        • Hole D.J.
        • McMurray J.J.
        A population-based study of the long-term risks associated with atrial fibrillation: 20-year follow-up of the Renfrew/Paisley study.
        Am J Med. 2002; 113: 359-364
        • Wolf P.A.
        • Abbott R.D.
        • Kannel W.B.
        Atrial fibrillation: a major contributor to stroke in the elderly. The Framingham Study.
        Arch Intern Med. 1987; 147: 1561-1564
        • Schnabel R.B.
        • Yin X.
        • Gona P.
        • Larson M.G.
        • Beiser A.S.
        • McManus D.D.
        • Newton-Cheh C.
        • Lubitz S.A.
        • Magnani J.W.
        • Ellinor P.T.
        • Seshadri S.
        • Wolf P.A.
        • Vasan R.S.
        • Benjamin E.J.
        • Levy D.
        50 year trends in atrial fibrillation prevalence, incidence, risk factors, and mortality in the Framingham Heart Study: a cohort study.
        Lancet. 2015; 386: 154-162
        • Wilke T.
        • Groth A.
        • Mueller S.
        • Pfannkuche M.
        • Verheyen F.
        • Linder R.
        • Maywald U.
        • Kohlmann T.
        • Feng Y.S.
        • Breithardt G.
        • Bauersachs R.
        Oral anticoagulation use by patients with atrial fibrillation in Germany. Adherence to guidelines, causes of anticoagulation under-use and its clinical outcomes, based on claims-data of 183,448 patients.
        Thromb Haemost. 2012; 107: 1053-1065
        • Friberg L.
        • Rosenqvist M.
        • Lip G.Y.
        Evaluation of risk stratification schemes for ischaemic stroke and bleeding in 182 678 patients with atrial fibrillation: the Swedish Atrial Fibrillation cohort study.
        Eur Heart J. 2012; 33: 1500-1510
        • Alonso A.
        • Agarwal S.K.
        • Soliman E.Z.
        • Ambrose M.
        • Chamberlain A.M.
        • Prineas R.J.
        • Folsom A.R.
        Incidence of atrial fibrillation in whites and African-Americans: the Atherosclerosis Risk in Communities (ARIC) study.
        Am Heart J. 2009; 158: 111-117
        • Go A.S.
        • Hylek E.M.
        • Borowsky L.H.
        • Phillips K.A.
        • Selby J.V.
        • Singer D.E.
        Warfarin use among ambulatory patients with nonvalvular atrial fibrillation: the anticoagulation and risk factors in atrial fibrillation (ATRIA) study.
        Ann Intern Med. 1999; 131: 927-934
        • Patton K.K.
        • Ellinor P.T.
        • Heckbert S.R.
        • Christenson R.H.
        • DeFilippi C.
        • Gottdiener J.S.
        • Kronmal R.A.
        N-terminal pro-B-type natriuretic peptide is a major predictor of the development of atrial fibrillation: the Cardiovascular Health Study.
        Circulation. 2009; 120: 1768-1774
        • Thigpen J.L.
        • Dillon C.
        • Forster K.B.
        • Henault L.
        • Quinn E.K.
        • Tripodis Y.
        • Berger P.B.
        • Hylek E.M.
        • Limdi N.A.
        Validity of international classification of disease codes to identify ischemic stroke and intracranial hemorrhage among individuals with associated diagnosis of atrial fibrillation.
        Circ Cardiovasc Qual Outcomes. 2015; 8: 8-14
        • Ritchie M.D.
        • Denny J.C.
        • Crawford D.C.
        • Ramirez A.H.
        • Weiner J.B.
        • Pulley J.M.
        • Basford M.A.
        • Brown-Gentry K.
        • Balser J.R.
        • Masys D.R.
        • Haines J.L.
        • Roden D.M.
        Robust replication of genotype-phenotype associations across multiple diseases in an electronic medical record.
        Am J Hum Genet. 2010; 86: 560-572
        • Liao K.P.
        • Cai T.
        • Gainer V.
        • Goryachev S.
        • Zeng-treitler Q.
        • Raychaudhuri S.
        • Szolovits P.
        • Churchill S.
        • Murphy S.
        • Kohane I.
        • Karlson E.W.
        • Plenge R.M.
        Electronic medical records for discovery research in rheumatoid arthritis.
        Arthritis Care Res (Hoboken). 2010; 62: 1120-1127
      1. Stroke Prevention in Atrial Fibrillation Study. Final results.
        Circulation. 1991; 84: 527-539
        • Waldo A.L.
        • Becker R.C.
        • Tapson V.F.
        • Colgan K.J.
        Hospitalized patients with atrial fibrillation and a high risk of stroke are not being provided with adequate anticoagulation.
        J Am Coll Cardiol. 2005; 46: 1729-1736