Importance: Electronic health records (EHRs) often include default alerts that can influence physician selection of antibiotics, which in turn may be associated with a suboptimal choice of agents and increased antibiotic resistance.
Objective: To examine whether removal of a default alert in the EHR to avoid cephalosporin use in patients with penicillin allergies is associated with changes in cephalosporin dispensing or administration in these patients.
Design, Setting, And Participants: This retrospective cohort study of a natural experiment included data on patients who had received antibiotic treatment in the hospital or outpatient setting in 2 regions of a large, integrated health system in California from January 1, 2017, to December 31, 2018.