Linux could be a good choice for some medical devices, but certainly not those where any malfunction could result in the death of a patient. Linux isn't intended to be used for fault-tolerant computer systems, as such systems use specially designed hardware and operating systems.
The problem is that medical devices can literally kill when they malfunction (The Therac-25 is a great example https://en.wikipedia.org/wiki/Therac-25)