Abuse of prescription medication is illegal.
Andrew lately has been having a crushing headache, and is it immense pain.
Andrew wants the headache to go away.
Andrew goes to the doctor for a diagnoses and for medication.
Andrew finds some of his late mother's pain pills and takes them.
The doctor finds the root cause, and gives him medication to cure it.
Andrew happens to be allergic to these and ends up dying from it.