After the Germanwings accident, most aviation doctors (that I know of) are threading this subject in so much more detail than before. And if you are taking medication, your medical may be subject to a temporary suspension.
Your best bet is to talk with your doctor.