Where a person is convicted before the Crown Court of an offence punishable with imprisonment other than an offence the sentence for which is fixed by law,. . . , or is convicted by a magistrates' court of an offence punishable on summary conviction with imprisonment, and the conditions mentioned in subsection (2) below are satisfied, the court may by order authorise his admission to and detention in such hospital as may be specified in the order or, as the case may be, place him under the guardianship of a local social services authority or of such other person approved by a local social services authority as may be so specified.
In the case of an offence the sentence for which would otherwise fall to be imposed under section 258, 258A, 268A, 273, 274, 274A, 282A, 283 , 285 or 285A of the Sentencing Code or under Chapter 7 of Part 10 of that Code, nothing in those provisions shall prevent a court from making an order under subsection (1) above for the admission of the offender to a hospital.
For the purposes of subsection (1A) above—
The conditions referred to in subsection (1) above are that—
Where a person is charged before a magistrates' court with any act or omission as an offence and the court would have power, on convicting him of that offence, to make an order under subsection (1) above in his case . . . , then, if the court is satisfied that the accused did the act or made the omission charged, the court may, if it thinks fit, make such an order without convicting him.
An order for the admission of an offender to a hospital (in this Act referred to as "a hospital order") shall not be made under this section unless the court is satisfied on the written or oral evidence of the approved clinician who would have overall responsibility for his case or of some other person representing the managers of the hospital that arrangements have been made for his admission to that hospital. . . , and for his admission to it within the period of 28 days beginning with the date of the making of such an order; and the court may, pending his admission within that period, give such directions as it thinks fit for his conveyance to and detention in a place of safety.
If within the said period of 28 days it appears to the Secretary of State that by reason of an emergency or other special circumstances it is not practicable for the patient to be received into the hospital specified in the order, he may give directions for the admission of the patient to such other hospital as appears to be appropriate instead of the hospital so specified; and where such directions are given—
An order placing an offender under the guardianship of a local social services authority or of any other person (in this Act referred to as "a guardianship order") shall not be made under this section unless the court is satisfied that that authority or person is willing to receive the offender into guardianship.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Where an order is made under this section, the court shall not—
but the court may make any other order which it has power to make apart from this section; and for the purposes of this subsection "sentence of imprisonment" includes any sentence or order for detention.