This is in reference to Scrubs season 5 episode 20 - "My Lunch".
At the end of the episode, all three of Dr. Cox's transplant patients die. This happens because the donor from whom those organs were taken was found to be infected by rabies (as per autopsy). That infection spread in the transplant patients' bodies.
Later in a conversation J.D. consoles Cox:
J.D.: There's no way you could have seen that coming. I mean, rabies? Come on, there's, like, three reported cases a year. In fact testing for it would have been irresponsible. You would have wasted time those people didn't have.
Dr. Cox: I was obsessed with getting those organs.
J.D.: You had to be. The fact is, those people were going to die in a number of hours and you had to make a call. I would have made the same call.
This was true for first two transplant patients. But eventually, when the last kidney transplant dies, Cox confesses:
Dr. Cox: He wasn't about to die, was he, Newbie? Could have waited another month for a kidney.
This was a clear case of medical negligence and malpractice by Dr. Cox. Despite that, there is no mention of him being sued/questioned/fired for such a gross mistake. Instead, the whole hospital staff was taking care of the depressed Cox by consoling him continuously.
I understand it is a comedy drama show so they are not even obliged to portray everything accurately in such matters (though the show is known to be quite accurate). So one good possibility is - writers chose to show the sentimental/depressed part of Dr. Cox's story rather than focusing on the suing/malpractice/investigation part which is obviously too boring for the show. After all it's not a legal drama.
Question: Am I missing something here? How does it happen in reality? Are doctors not held responsible? Is it normal that doctors and the hospital get away with such mistakes?