getOutcome function is in separate file
rankhospital function