this is where you'll have to rely on what sobriety has taught you. If you are taking it for pain, when nothing over the counter will work-then i don't see an issue with it.
however, if you take it to do anything else-then i think you could be in trouble. It's a very thin line indeed.
I wish you good luck.