It varies on a case by case basis.
Why the medication, what the medication, the effects of the medication
Your position, on course, on deployment, etc
Restrictions can be in place temporarily which can effect your deployment,course,employment.
Your best bet is to go see an MO or a PA and...