30 Discharge and variation of orders under s. 29.E+W
(1)An order made under section 29 above in respect of a patient may be discharged by the county court upon application made—
(a)in any case, by the person having the functions of the nearest relative of the patient by virtue of the order;
(b)where the order was made on the ground specified in paragraph (a) or paragraph (b) of section 29(3) above, or where the person who was the nearest relative of the patient when the order was made has ceased to be his nearest relative, on the application of the nearest relative of the patient.
(2)An order made under section 29 above in respect of a patient may be varied by the county court, on the application of the person having the functions of the nearest relative by virtue of the order or on the application of an approved social worker, by substituting for the first-mentioned person a local social services authority or any other person who in the opinion of the court is a proper person to exercise those functions, being an authority or person who is willing to do so.
(3)If the person having the functions of the nearest relative of a patient by virtue of an order under section 29 above dies—
(a)subsections (1) and (2) above shall apply as if for any reference to that person there were substituted a reference to any relative of the patient, and
(b)until the order is discharged or varied under those provisions the functions of the nearest relative under this Part of this Act and sections 66 and 69 below shall not be exercisable by any person.
(4)An order under section 29 above shall, unless previously discharged under subsection (1) above, cease to have effect at the expiration of the period, if any, specified under subsection (5) of that section or, where no such period is specified—
(a)if the patient was on the date of the order liable to be detained in pursuance of an application for admission for treatment or by virtue of an order or direction under Part III of this Act (otherwise than under section 35, 36 or 38) or was subject to guardianship under this Part of this Act or by virtue of such an order or direction, or becomes so liable or subject within the period of three months beginning with that date, when he ceases to be so liable or subject (otherwise than on being transferred in pursuance of regulations under section 19 above);
(b)if the patient was not on the date of the order, and has not within the said period become, so liable or subject, at the expiration of that period.
(5)The discharge or variation under this section of an order made under section 29 above shall not affect the validity of anything previously done in pursuance of the order.