If it appears to a justice of the peace, on information on oath laid by an approved mental health professional, that there is reasonable cause to suspect that a person believed to be suffering from mental disorder—
the justice may issue a warrant authorising any constable . . . to enter, if need be by force, any premises specified in the warrant in which that person is believed to be, and, if thought fit, to remove him to a place of safety with a view to the making of an application in respect of him under Part II of this Act, or of other arrangements for his treatment or care.
If the premises specified in the warrant are a place of safety, the constable executing the warrant may, instead of removing the person to another place of safety, keep the person at those premises for the purpose mentioned in subsection (1).
If it appears to a justice of the peace, on information on oath laid by any constable or other person who is authorised by or under this Act or under article 8 of the Mental Health (Care and Treatment)(Scotland) Act 2003 (Consequential Provisions) Order 2005 to take a patient to any place, or to take into custody or retake a patient who is liable under this Act or under the said article 8 to be so taken or retaken—
the justice may issue a warrant authorising any constable . . . to enter the premises, if need be by force, and remove the patient.
A patient who is removed to a place of safety in the execution of a warrant issued under subsection (1) , or kept at the premises specified in the warrant under subsection (1A), may be detained there for a period not exceeding the permitted period of detention.
In subsection (3), "the permitted period of detention" means—
A constable, an approved mental health professional or a person authorised by either of them for the purposes of this subsection may, before the end of the permitted period of detention mentioned in subsection (3) above, take a person detained in a place of safety under that subsection to one or more other places of safety.
A person taken to a place of safety under subsection (3A) above may be detained there for a period ending no later than the end of the permitted period of detention mentioned in subsection (3) above.
In the execution of a warrant issued under subsection (1) above, a constable shall be accompanied by an approved mental health professional and by a registered medical practitioner, and in the execution of a warrant issued under subsection (2) above a constable may be accompanied—
It shall not be necessary in any information or warrant under subsection (1) above to name the patient concerned.
In this section "place of safety" means residential accommodation provided by a local social services authority under Part 1 of the Care Act 2014 or Part 4 of the Social Services and Well-being (Wales) Act 2014 . . . , a hospital as defined by this Act, a police station, an independent hospital or care home for mentally disordered persons or any other suitable place ....
For the purpose of subsection (6)—
This section is subject to section 136A which makes provision about the removal and taking of persons to a police station under this section.