in the last hospital visit patient 27964 had been in an emergency room?
select count(*)>0 from admissions where admissions.subject_id = 27964 and admissions.admission_location = 'emergency room admit' and admissions.dischtime is not null order by admissions.admittime desc limit 1