has patient 12797 received a procedure until 2102.
select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12797 ) and strftime('%y',procedures_icd.charttime) <= '2102'