Can a robot do the job of a pharmacist? No more than they can do the job of a doctor. Ever try one of those online diagnosis things? Exactly. It's not just about facts and observations. It's about clinical insight and experience, too. There exist today programs that attempt to stop the errors and they're OK at best. Usually what ends up happening is that the prescribers get alert fatigue and turn off the notices for all but the most egregious of errors. I mean, seriously, JNC guidelines might say that anyone with stage II hypertension gets 2 drugs automatically. Doctor prescribes those drugs. System pops up error about therapeutic duplication. Can you imagine how annoying that would be to click past 20, 30, 40 times a day? A pharmacist knows exactly what's going on and just moves on with checking the rest of the prescriptions.
Plus, sometimes the doctor does seemingly stupid things on purpose. I've seen (multiple times, I might add) vaginal cream prescribed for a male...with nosebleeds. The doctor figured it might help hydrate the nasal mucosa. Did it work? I don' t know. Would a machine have ever let that through? Probably not.
That being said, a pharmacist does a lot more than just make sure you're doctor's not asleep at the wheel. They also take on clinical functions. In the VA system, they have the authority to change therapeutic choices after the patient has been diagnosed by the doctor. Think about it. Pharmacists spend as much time learning about drugs as the doctor does learning about your body. It only makes sense that the body expert figures out what's wrong and the drug expert optimizes the therapy. Maybe in 10 or 20 years those informatics systems will be good enough to do the double checking pharmacists can get on to some real work.