When hospitals are hit by cyberattacks that compromise crucial technology systems for managing patient care, the stakes are staggering.