changed case 1001 to fetch from patient_info table