For the short term prescriptions though, cutting the doctor out of it makes people much more susceptible to marketing (instead of 'ask your doctor if you need X' we'll get 'You need X if you have any of a, b, and c...get it now before it's too late'.
Also, the doctor is aware of your health history and can spot reasons you specifically shouldn't take a drug, or better alternatives. Maybe you are overweight and one diabetes drug would work for you, but this other one will also help you lose weight. Maybe you have a loss of kidney function, and shouldn't be taking metformin. Your pharmacist should catch drug interactions, but they can't catch problems that would result from your past medical history.
For me this is big pharma getting their way, at our cost, in more ways than one.