Portion 17. The department shall preserve data with the admission, remedy and periodic critique of all folks admitted to amenities under its supervision. This kind of records shall be private and not open up to general public inspection other than (1) upon appropriate judicial purchase whether or not in connection with pending judicial proceedings,