semi functional rankhospital code