Potentially dangerous drug interactions and instructions can be solved by automation for what can be automated and tele-pharmacists in all others.
Sure, what would be necessary is a GUI that was as usable and flexible as the doctor's hand-written scribble while being standard enough across the country that any doctor could use and every single drug could be dispensed by it.
Which is to say that this is a really massive undertaking and opposition from a multitude of angles, including opposition from companies that have invested in most half-assed solution. Which is to say, this likely won't happen or it will require more than one more corporation dipping their toe in this.
For usage questions, how many parameters does that vary on? Amount, frequency symptomm? Seems very easy to automate as well.
The only thing not able to be automated is law abidance. This would require changing of the law.
For someone only taking one drug for a couple weeks and the a year latter a different drug for a few weeks it is easy.
So its a data problem, not a technical problem. Just get the data from pharmacy textbook into a computer. Its not that hard.
The pharmacist couldn't even know exactly. That is probably mostly to check for order of magnitudes errors (missed commas, additional 0s).
CVS and Walgreens would love to get rid of the pharmacists -- they hate that each store needs a couple $110k/year pharmacists just to handle the legal requirements and to be on-site for the few cases where something needs extra attention. That's why they put them to work doing the manual retail side of it to get the most for their dollar.