how did patient 17505 until 2102 first visit the hospital?
select admissions.admission_type from admissions where admissions.subject_id = 17505 and strftime('%y',admissions.admittime) <= '2102' order by admissions.admittime asc limit 1