Nothing in this chapter shall prohibit the professional person in charge of a treatment facility, or his or her professional designee, from permitting a minor detained for intensive treatment to leave the facility for prescribed periods during the term of the minor's detention, under such conditions as may be appropriate.