I am an MD and have a degree in CS. Expert systems are not remotely there yet for this purpose. On no planet would I trust care of my patients to a computer. Far too many subtleties involved in accurate diagnosis and treatment that are not encoded in a machine-readable format.
> legal regime which mandates DOCTORS perform procedures, and only after a lengthy course of study
Good reasons for this - it actually takes that lengthy course of study to safely perform many procedures, and, more importantly, to fix things when they go wrong.
NPs and PAs are helpful but based on the quality of care that I personally observe they should not function without physician oversight.
There is no escaping that medicine is an extremely complex field, and it is only getting more so. Not long ago, many of the people who today are restored to their usual state of health would simply have died. The sicker a patient is, the more complex and difficult to manage they are. By definition a doctor is the one who is able to do so.
I am still waiting to meet a patient who comes to the hospital and prefers to have their care rendered by non-physician providers over physicians, or would even settle if there were an option.