(1)If, on the trial by a magistrates' court of an offence punishable on summary conviction with imprisonment, the court—
(a)is satisfied that the accused did the act or made the omission charged, but
(b)is of the opinion that an inquiry ought to be made into his physical or mental condition before the method of dealing with him is determined,
the court shall adjourn the case to enable a medical examination and report to be made, and shall remand him.
(2)An adjournment under subsection (1) above shall not be for more than three weeks at a time where the court remands the accused in custody, nor for more than four weeks at a time where it remands him on bail.
(3)Where on an adjournment under subsection (1) above the accused is remanded on bail, the court shall impose conditions under paragraph (d) of section 3(6) of the [1976 c. 63.] Bail Act 1976 and the requirements imposed as conditions under that paragraph shall be or shall include requirements that the accused—
(a)undergo medical examination by a registered medical practitioner or, where the inquiry is into his mental condition and the court so directs, two such practitioners; and
(b)for that purpose attend such an institution or place, or on such practitioner, as the court directs and, where the inquiry is into his mental condition, comply with any other directions which may be given to him for that purpose by any person specified by the court or by a person of any class so specified.