If you’ve ever felt guilty about being forced to choose between using either a male or a female example in your writing, here’s an easy way to avoid it which should work in a large number of cases. Avoid sexism by using plurals wherever possible.
So, instead of saying, for example, ‘A doctor should consult his patient at this point’, which seems to be assuming that all doctors are male, use ‘Doctors should consult their patients at this point.’
It won’t work all the time, and sometimes you have to rephrase or reorder your sentence to make it work. But where it will work, it means you can avoid the slightly laborious ‘he or she’ or ‘his or her’, or the awkward (and not universally liked) ‘s/he’. It also gets around the increasing use of the words ‘they’ or ‘their’, where you’re talking about an individual, as in ‘A doctor should consult their patient at this point’. The aim is to be as inclusive as possible, and thus avoid causing offence.