A day after a fire broke out on its premises, the All India Institute of Medical Sciences (AIIMS) was fully functional on Sunday and all patients, who were shifted out as a precautionary measure, were taken back to their respective wards, hospital authorities said.