Hospitals have generators for a reason. Your scenario would fall on the hospital because there’s no reasonable expectation for most places to have continuous power with no interruption ever, but a hospital would be the negligent party for not having backup systems. Which are legally required.