Comment by llm_trw
We don't know how to make general software safe, but we do know how to make any one piece of software safe. If you're software is going to be used as infrastructure then it should be held to the same standards. If you don't want it to be treated as infrastructure don't sell it to hospitals.
Mixing up the responsibility, in your world hospitals shouldn't purchase it.
Responsibility can be shared.