Deprivation of liberty safeguards (DOLS) are intended to protect people who lack mental capacity from being detained when it's not in their best interests. Having mental capacity means being able to understand and retain information and to make a decision based on that information.