I think you're skipping over the enormous "interfacing the math with the real world" part.
How do you stop fraud? How does the algorithm know which liquid was in a vial, or the normal versus serious sounds from a stethoscope? How does it get updated as medical knowledge of "necessary" procedures changes? How does it stop fraudulent billing for a surgery that didn't happen?
I think you're skipping over the enormous "interfacing the math with the real world" part.
How do you stop fraud? How does the algorithm know which liquid was in a vial, or the normal versus serious sounds from a stethoscope? How does it get updated as medical knowledge of "necessary" procedures changes? How does it stop fraudulent billing for a surgery that didn't happen?