Two software products now monitor controlled substance transactions in most large American hospitals. They flag anomalies in dispensing, waste, and documentation that a human auditor would take weeks to spot. And when they fail to stop a nurse from stealing fentanyl, the reason is usually not the algorithm.
It is that someone has to read the alerts, understand what they mean, and investigate. In many hospitals, that job is held by someone who has several other jobs.