(1) Every application under section 54 shall be made to, and heard and determined by, the court.
(2) Sections 19 to 25, so far as they are applicable and with any necessary modifications, shall apply in respect of applications under section 54.
(3) On any such application, the court may make an order declaring the patient to be a restricted patient if it is satisfied—
(a) that the patient presents special difficulties because of the danger he or she poses to others; and
(b) that, for that reason, it is appropriate that the order be made.