It is authentically reported from the Messenger of Allah (peace be upon him) that he recommends taking medication. Usama bin Shuraik is reported to have said: “a Bedouin came and asked, O Messenger Allah should we make use of medical treatment? He replied: make use of medical treatment, for Allah has not sent down a disease except that He has sent its remedy. It is known to those who have the knowledge, unknown to those ignorant about it.” reported by Ahmad.
In another narration, “”Some Bedouins asked: ‘O Messenger of Allah (s.a.w) shall we treat (our ill)?’ He said: ‘Yes, O worshipers of Allah! Use remedies. For indeed Allah did not make a disease but He made a cure for it’ – or – ‘a remedy. Except for one disease.’ They said: ‘O Messenger of Allah (s.a.w)! What is it?’ He said: ‘Old age.'”. [transmitted by Ibn Majah, Abu Dawood, and Tirmidhy. It is a Sahih Hadith].
Therefore, if doctors decide that a Muslim woman’s nakedness should be examined or necessary tests should be carried out on her in order to diagnose the disease and determine the treatment, the patient (woman) has to comply with their decisions because one of the fundamentals of Islam is to protect lives from destruction.
Allah says: “… And do not throw (yourselves) with your (own) hand into destruction”. Q2:195. He also says: “and do not kill yourselves. Indeed, Allaah is to you ever Merciful”. Q4:29. There is no doubt that neglecting treatment comes under destroying the human soul, which may lead to killing it, and this is haram and forbidden by Shariah using the quoted texts.
It is more appropriate to work with the opinion of a Muslim doctor, otherwise, necessity permits that of a non Muslim doctor. Or we go with the doctrine of Imam Malik (may Allah have mercy on him) who permitted working with the opinion of a trusted non Muslim doctor.
Hence, the patient must conduct any test requested by the doctors so as to protect herself from destruction, and follow Allah’s commandment in the Holy Quran on safeguarding one’s life, and follow the Messenger who authorized medical treatment and its practice.