I'm not a doc or a pharmacist (though I am in med school) and I'm sure there are areas that AI could do some of a pharmacists job but on the outpatient side they do things like answering questions for patients and helping them interpret instructions that I don't think we want AI to do... or at least I really doubt an AIs ability to gauge how well someone is understanding instructions and augment how it explains something based on that assessment... on the inpatient side, I have seen pharmacists help physicians grapple with the pros and cons of certain treatments and make judgement calls about dosing that I think it would be hard to trust an AI to do because there is no "right" answer really. It's about balancing trade offs.
IDK, these are just limitations - people that really believe in AI will tell you there is basically nothing it can't do... eventually. I guess it's just a matter of how long you want to wait for eventually to come.