total the number of drugs patient 31615 has been prescribed so far this year.
select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31615 ) and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year')