Why aren’t pharmacies automated?

I had to swing by the local pharmacy last weekend to get a prescription. There was no line, so the trip was mercifully short and efficient. But as usual I couldn’t help shake my head at the primitive, labor-intensive nature of the operation: Human beings work behind the counter, tediously putting pills into little orange bottles by hand. The pharmacist gets paid $121,500/yr to “supervise” this pill-pouring and to make sure patients aren’t given combinations of pills that can dangerously interact inside their bodies, even though computer programs that automatically detect such contraindications have existed for many years.

We have self-driving cars and stealth fighters, computing devices improve exponentially in many ways each year, and a billion people have been lifted out of poverty in the last 20 years. Pharmacies, on the other hand, don’t seem to have progressed since the 1980s.

For the life of me, I can’t understand the stagnation. Pharmacies seem ideally suited for automation, and I don’t see why they can’t be replaced with large gumball machines and other off-the-shelf technologies. Just envision the back wall of the pharmacy being covered in a grid of gumball machines, each containing a unique type of pill. Whenever the pharmacy received an order for a prescription, the gumball machine containing the right pills would automatically dispense them down a chute and into an empty prescription bottle. The number and type of pills in the bottle would be confirmed using a camera (the FDA requires all pills to have unique shapes, colors, and imprinted markings), a small scale, and some simple AI visual pattern recognition software to crunch the data. This whole process would be automated. Empty pill bottles would be stored in a detachable rotary clip or something (take inspiration from whatever machines Bayer uses to fill thousands of bottles of aspirin per day). Sticky paper labels would be printed as needed and mechanically attached to the pill bottles.

Every morning, a minimum-wage pharmacy technician would receive boxes of fresh pills from the UPS delivery man and then pour the right pills into the matching gumball machines. Everything would be clearly labeled, but to lower the odds of mistakes even further, the gumball machine globes would have internal cameras and weight scales to scan the pills that were inside of them and to verify the human tech hadn’t mixed things up. (And since the gumball machines would continuously monitor their contents, they’d be able to preemptively order new pills before the old ones ran out.) The pharmacy tech would spend the rest of the day handing pill bottles to customers, verifying customer identities by looking at their photo IDs (especially important for sales of narcotics), and swapping out rotary clips of empty pill bottles. If a customer were unwittingly buying a combination of medications that could harmfully interact inside their body, then the pharmacy computer system would flag the purchase and tell the pharmacy technician to deny them one or other type of pill.

I’m kind of content to stop there, as automating just those tasks would be a huge improvement over the current way of business (one human could do the work currently done by three), but here some more ideas:

  • Confirming a customer’s identity before giving them their pills could also be automated by installing a machine at the front counter that would have a front-facing camera and a slot for inserting a photo ID card. The machine would work like the U.S. Customs’ Automated Passport Control machines, and it would use facial recognition algorithms to compare the customer’s face with the face shot on their photo ID. I’ve used the APC machines during overseas trips and never had a problem.
  • The act of physically handing prescription bottles to customers could also be automated with glorified vending machine technology, or a conveyor belt, or a robot grabber arm.
  • Eighty percent of pharmacy customers are repeat buyers who are already in the computer system and are just picking up a fresh bottle of pills because the old bottle was exhausted. There’s no need for small talk, questions, or verbal information from the pharmacist about this prescription they’ve been taking for months or years. That being true, the level of automation I’ve described would leave pharmacists with a lot of time to twiddle their thumbs during the intervals between the other 20% of customers who need special help (e.g. – first-time customer and not in the patient database, have questions about medications or side effects). Having a pharmacist inside every pharmacy would no longer be financially justified, and instead each pharmacy could install telepresence kiosks (i.e. – a station with a TV, sound speakers, a front-facing camera, and a microphone) through which customers could talk to pharmacists at remote locations. With this technology, one pharmacist could manage multiple pharmacies and keep themselves busy.
An Automated Passport Control machine in use

As far as I can tell, the only recent advances in the pharmacy/pill selling business model have been 1) the sale of prescriptions through the mail and 2) the ability to order refills via phone or Internet. If you choose to physically go into a pharmacy, the experience is the same as it was when I was a kid.

Is there a good reason it has to be the way it is now? I suspect the current business model persists thanks to:

  1. Political lobbying from pharmacists who want to protect their own jobs and salaries from automation (see “The Logic of Collective Action”).
  2. Unfounded fears among laypeople and politicians that automated pharmacies would make mistakes and kill granny by giving her the wrong pills. The best counterargument is to point out that pharmacies staffed by humans also routinely make those same errors. Pharmacists will also probably chime in here to make some vague claim that it’s more safe for them to interact with customers than to just have a pharmacy tech or robot arm hand them the pills at the counter.
  3. Fears that automated pharmacies will provide worse customer service. Again, 80% of the time, there’s no need for human interaction since the customer is just refilling a prescription they’ve been using for a long time, so “customer service” doesn’t enter into the equation. It’s entirely plausible that a pharmacist could satisfy the remaining 20% of customer needs through telepresence just as well as he or she would on-site.
  4. High up-front costs of pharmacy machines. OK, I have no experience building pharmacy robots, but my own observations about the state of technology (including simple tech like gumball machines) convince me that there’s no reason these machines should be more expensive than paying for human labor. Even if we assume that each gumball machine costs an exorbitant $1,000, you could still buy 121 of them for the same amount a typical pharmacist would make in a year, and each gumball machine would last for years before breaking. It’s possible that pharmacy machines are unaffordable right now thanks to patents, which is a problem time will soon solve.

Well, at the end of my pharmacy visit, I decided to just ask the pharmacist about this. She said she knew of pharmacy robots, and thought they were put to good use in hospital pharmacies and military bases, but they weren’t suited to small retail pharmacies like hers because they were too expensive and took up too much physical space. I would have talked to her longer, but there was a long line of impatient people behind me waiting to be handed their pill bottles.

2 Replies to “Why aren’t pharmacies automated?”

  1. There is also a substantial problem with liability. Even if laws were changed to allow for for automation, it would push all liability on the owner of the capital. Right now, owners are partially protected by hiring licensed professionals; the government in a sense spends the money to assure that they are competent. Now imagine that companies were responsible themselves for checking the appropriateness of doctor prescriptions, etc. And they need to make sure that everything is working perfectly every pharmacy they run. That is a substantial cost that was previously borne by others; you need to factor that into the incentives for companies to use full automation.

Leave a Reply

Your email address will not be published. Required fields are marked *