instruction: how did patient 17505 until 2102 first visit the hospital?
response: SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 17505 AND STRFTIME('%y', admissions.admittime) <= '2102' ORDER BY admissions.admittime LIMIT 1