In Leviticus 18, "uncover the nakedness" and "lie with" and in 1 Cor 7 "touch" are usually interpreted as a euphemisms for sexual intercourse. If you are reading those verses without considering the literary device of euphemisms, then bathing your naked children is a sin (verse 6) and two men lying on the ground is a sin (verse 22).
I am a general practitioner and emergency doctor and I would say if a doctor did not see or properly exam a woman (with her informed and uncoerced consent) because of this poor interpretation of scripture they would be medically negligent and not giving the proper care to their patient and opening themselves to litigation. At the same time, I always make it a point to have a chaperone (usually female) when performing sensitive examinations to protect the patient as well as for my protection. False accusations of sexual assault against doctors are not rare.
Men need to be responsible for their lustful thoughts no matter how much clothing someone is wearing in front of them. It is not a woman's responsibility to control the lustful thoughts of men. Their help in this area is appreciated but not their responsibility.
If a patient only wants to see female doctors or gynaecologists for whatever reason, even religious that is their right but not always an option because of availability. I hope the patient, their families or their doctors are not exposing her to unnecessary harms just to hold to a severe view of modesty. This currently occurs in many countries and cultures and has dire health implications for women.
https://www.researchgate.net/public...or_women_Understanding_cultural_sensitivities