Female doctor treating men
Question

I am a docter living in a western country so my work therefore requires me to see male and female patients. This means that I am often in a room alone with a male patient. Is this wrong islamically? Am I only allowed to treat females and children? I personally dont feel I am doing wrong because all patients regardless of their sex visit a docter to be treated. Your views would be much valued.
Praise be to Allah.From your question we sense that you are keen to find out the correct shar’i ruling and that you want to learn the teachings of your religion and what has to do with your work. We ask Allah to help us and you to do that which pleases Allah and to help us avoid disobeying Him or going against His commands in any of our affairs. 
It is known that women are the twin halves of men in society, and that they have a great role to play in raising the next generation and in reviving the ummah. A woman may work outside her house in an appropriate job, without exposing herself to anything that goes against sharee’ah. 
With regard to treating male patients, and all that it involves of mixing with them and being alone with them, this is not permissible according to sharee’ah, rather it is a fitnah (source of temptation) that the Messenger of Allah (peace and blessings of Allah be upon him) has warned us against. It was reported that he (peace and blessings of Allah be upon him) said: “No man should alone with a (non-mahram) woman unless her mahram is present.” Narrated by Muslim, 3259. And he said: “I am not leaving behind me any temptation more harmful to men than women.” Narrated by al-Bukhari, 4808; Muslim, 6881. 
It is not permissible for a woman to treat a man except in cases of necessity, such as if there is no male doctor available to treat him, or if the matter cannot be delayed as in the case of accidents etc. 
Shaykh Ibn Baz (may Allah have mercy on him) said: 
“Female doctors must treat only women and male doctors must treat only men, except in cases of extreme necessity, if men are suffering a disease for which there is no male doctor available, in which case it is o.k. Allah says (interpretation of the meaning): 
‘He has explained to you in detail what is forbidden to you, except under compulsion of necessity’
[al-An’aam 6:119].” 
Fatawa ‘Aajilah li Mansoobi’l-Sihhah, p. 29 
Hence you should limit your work to treating women and children as you mentioned, and seek reward for this work with Allah. Whoever gives up a thing for the sake of Allah, Allah will compensate him with something better than that.