If you do indeed HAVE prescriptions for whatever you're taking, it's not a problem. Just take your meds to the test and show them they're prescribed. If not, well, I don't know what to tell you.
There are several of ways but it depends on the drug and it depends on what testing method is going to be used. What are worried about getting caught for?