Measures restricting the patient's freedom of movement in the institution are governed by the provisions on restricting the freedom of movement of patients in residential or care institutionsmutatis mutandis . The right to appeal to the court is reserved.