For many of these, the reason for wearing a uniform is clear: so that they are easily recognizable. In a hospital, for example, it would not do to confuse the nurses with the patients.
What did the author mean by "it would not do"? Can anyone parse this sentence please? Or is it a typo?