Sounds like AGP fantasy to me. I can't imagine that Muslim women would accept a trans-identified man performing intimate examinations on them for a minute.
That said, if patients actually know the doctor is a trans-identified man and can make an informed choice regarding whether to accept such an examination from them then I think that is fine.
The issue is where they lie by omission and so women are unknowingly accepting intimate care from a man.