If there is a real medical need for that procedure and there is no female doctor or a Muslim male doctor, it is permissible to do it.
If it is medically safe, it appears to be permissible.