He was prescribed Clonazepam, not opiates.
Additionally there is a large boxy of work for prescribing Benzodiazepines to treat pain, as well as pairing the two for chronic pain, which seems to be an absolute recipie for disaster if used for anything but the shortest periods of time.