Wow - now that's a totally different scenario - if he's on drugs, both him AND his lawyer should be slapped with contempt.
If doctors certify that he needs painkillers for a medical condition, and that the mental effects of those painkillers make him unfit to stand trial while taking them, the judge has a real dilemma.