All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
In principle, it is not permissible for a woman to study medicine if this study requires examining men and looking at what is forbidden for her to see and other prohibitions. However, since medicine is among the communal obligations which are much needed, then in our view it is permissible for you to continue studying, if the society where you live is in dire need for women like you (i.e. female doctors) to meet this need. Nonetheless, you should fear Allaah as much as you can while studying and training.
For more benefit, please refer to Fatwa 90134.
Allaah Knows best.