has patient 81223 ever been diagnosed with any type of disease the previous year?
select count(*)>0 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 81223 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')