I prefer to just move to plural:
"Before doctors perform a surgery..."
as someone before has said.
In a book, the person kept switching: "When your child needs that, he will do this to show it. It's important to nurture your child during her younger years..." I thought it was an interesting take. For every paragraph, the author would change the gender.
Gaian Grammar Guild
The Gaian Grammar Guild is a refuge for the literate, a place for them to post and read posts without worrying about the nonsensical ones.