how did patient 3118 first visit until 1 year ago to the hospital?
select admissions.admission_type from admissions where admissions.subject_id = 3118 and datetime(admissions.admittime) <= datetime(current_time,'-1 year') order by admissions.admittime asc limit 1