Q: it is my wife’s first pregnancy. She fasts. This is not a problem. The question is can she visit the gynecologist while she is fasting? (text)
A: So long as a moist object or medication is not placed into her private part, her fast would remain valid.
If waiting would not be injurious to her or the baby, a visit after Ramadaan may prove more worthy.
May Allah bless you both with a good pious child that would make a contribution to every aspect of human life, Ameen.
Allah Certainly Knows Best.