A person committed under the provisions of this article who is detained solely for treatment or isolation in a facility designated by the department may not be committed to a local detention facility.