Try making an area limited to the hospital beds and restrict them to it. I've only had this problem a time or two and they didn't have an infection at the time so it wasn't that big a deal for me. Also, I think they were one of my crap pawns so I didn't care if they died.
If this was a good pawn and they had an infection that was close? Yeah, that would piss me off.
If this was a good pawn and they had an infection that was close? Yeah, that would piss me off.