rankhospital.R fully functional