Drug diversion is when a healthcare worker takes prescriptions meant for patients either to use or sell, and hospitals are using AI to prevent it.