As a note here, you must use McCoy on Mudd for a diagnosis. For some
reason, the medical tricorder won't function here (or at least it didn't in
my version of the game).
Hint 2 of 9:
But before you concentrate on curing him, you need to get him to a bed.