I'm honestly surprised we don't take a quarantine approach in hospitals. i.e The first sign of an infection gets you shipped out to a specialized hospital building (air gap) designed specifically to be able to keep patients in "solitary confinement" and able to be completely disinfected afterwards.
Most infectious diseases are not so dangerous that this is necessary. The ones that are, they do something like that as the other poster mentioned.
The fact of the matter though, is that a hospital for those with whatever condition is a somewhat ideal breeding ground for germs, not all of which will be deadly of course. That's not something is likely to be completely eliminated but it's something we can mitigate in a variety of ways.