Identifying and reducing complications of outpatient medications