DECORUM, or modesty of demeanor between the sexes, is strictly enjoined in Muslim law, and a special chapter is devoted to it in the Darru ‘l-Mukhtar and other works on Muslim law.
A man is not allowed to look at a woman except at her hands and face, nor is he allowed to touch her. But a physician is permitted to exercise the duties of his profession without restriction.
A judge in the exercise of his office may look in the face of a woman, and witnesses are under the same necessity.
Based on Hughes, Dictionary of Islam