A wave of ransomware attacks disrupting clinical operations and forcing hospitals to turn away patients is the latest reminder of the fragility of life-saving infrastructure.