To the pharmacy business, the future looks like a prescription for disaster: In 2001, U.S. pharmacists filled 3 billion prescriptions. By 2005, that number will increase to 4 billion. But the industry suffers from a shortage of pharmacists: Applications to pharmacy schools have dropped nearly 30 percent since 1994. And the problems are adding up: Too few pharmacists plus too many prescriptions means that four out of every 100 prescriptions are now improperly filled.

But there is a remedy: The pharmacy of the future has been open for over a year, filling prescriptions out of a former Boscov’s department store located 30 minutes outside Philadelphia. Owned and operated by Medco Health Solutions Inc., a $29 billion health-care services business and a subsidiary of Merck, the Willingboro Prescription Dispensing Center is the world’s largest and most advanced high-tech pharmacy.

“We go through pills in the millions here,” says Calvin Wasdyke, director of the pharmacy at Willingboro. Wasdyke is to the facility’s medicine bottles what the secretary of the treasury is to the U.S. Mint: Every prescription bottle that leaves the place bears his name — that’s more than 20 million bottles since the center opened in 2001.

Every two weeks, some 1,900 of the country’s most requested medications arrive at the facility. The shipments are repackaged in 4-liter bottles and taken to an automated counting room, where they are fed into 1,920 separate dispensing tubes located one floor above the factory. As prescription bottles move along a conveyor belt, the dispensing tubes drop the right medication into the right bottle — all managed by a sophisticated computer system.

For about half of the medications dispensed, the process is almost entirely automated: The computer system electronically labels and loads the bottles. It spits out drugs in one swift movement. It caps bottles at a predetermined torque: not too tight for an elderly person to twist off, but tight enough to stay securely closed in the mail. The facility also sorts, packs, and ships orders — so efficiently that 99 percent of all prescriptions are shipped on the same day they are received.

Along the way, each prescription passes through at least 100 control checkpoints.

“We talk about how many bottles we can fill,” says Wasdyke. “But in many ways, it’s a very slow, controlled process.”