An inspection found patients' dignity was not always protected.