Atrial Fibrillation phenotype algorithm for the DNA Demonstration project. The algorithm selects cases based on atrial fibrillation but no presence of a heart transplant. Controls select for records with no evidence of atrial flutter, atrial fibrillation, or atrial tachycardia but with at least one ECG.
| 
 
  | 
 Diagnostic Codes?  | 
 Text Keywords?  | 
 Narrative Notes to search  | 
 Other rules  | 
| 
 Cases  | 
 Yes (Absence of codes)  | 
 Disease only  | 
 ECG Impression  | 
 
  | 
| 
 Possible/ Probable  | 
 Yes  | 
 Disease only  | 
 ECG Impression, H&P, Discharge summary, all notes  | 
 May require manual curation of all records  | 
| 
 Controls  | 
 Yes(Absence of codes)  | 
 Disease only  | 
 ECG Impression, H&P, Discharge summary, all notes  | 
 Must have ECG  | 
| 
 Excluded from Analysis  | 
 Yes  | 
 Disease only  | 
 ECG Impression, H&P, Discharge summary, all notes  | 
 
  | 
Finding Atrial Fibrillation/Flutter on ECG Impressions:
When analyzing electrocardiograms at Vanderbilt, the following regular expression worked perfectly on ~100 patients reviewed:
REGEXP_LIKE(IMPRESSION,'((^|[ \.])AF($|[ \.]))|(a\w*[ .]?(fib[\w]*|flutter))','i')
