Such medicines need tighter watch on how they are administered. A trust-but-verify policy is needed in some cases. Go ahead and give the Oxy but in small quantities while periodic blood, urine, or hair tests are used to verify patient compliance. After a period, the tests can be spaced out more. And Ambien patients need to be interviewed on the results of the therapy. Any sign of sleepwalking and it should be stopped.
In elderly patients, and depending upon patient's metabolism rate (Labs - I. e., LabCorp - now able to test for and predict that rate), this and other meds must be dosed differently to avoid serious consequences. Actually, it is family members who must be interviewed in many cases, because the patient for whom the drug is prescribed, because of strokes, or other conditions, may be unable to perceive his/her abnormal behavior.