Working rankhospital function