how many patients got prescriptions for quinidine gluconate e.r. until 3 years ago?
select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'quinidine gluconate e.r.' and datetime(prescriptions.startdate) <= datetime(current_time,'-3 year') )