During hospitalization, ACE inhibitors, diuretics, digoxin were all given significantly more often in patients with secondary diagnosis of AF, whereas they less frequently received β‐blocker and CCB, especially in group 1. Here, ACE is linked to atrial fibrillation.