4. Section 349ZX of the Principal Act is repealed and the following section substituted:
“349ZX. (1) In this section—
“(2) An examination of a person under this section may be conducted where—
(a) the person consents; or
(b) an order is made under subsection (3).
“(3) Where a person (in this section called the ‘person charged') is in lawful custody upon a charge of committing an offence and a Magistrate is satisfied, on the balance of probabilities, that the offence—
(a) is of such a nature; and
(b) has been committed under such circumstances;
that there are reasonable grounds for believing that an examination of the person charged will afford evidence as to the commission of the offence, the Magistrate may order such an examination.
“(4) If the person charged is not present at the time that the order is made, a copy of the order shall be given to the person.
“(5) Where an order is made under subsection (3) or a person charged consents to an examination , a police officer may request a medical practitioner to carry out the examination and, if the medical practitioner agrees to carry it out, shall give the medical practitioner a copy of the order.
“(6) A medical practitioner carrying out an examination may be assisted by 1 or more persons acting under the direction of the medical practitioner.
“(7) An examination of the person charged—
(a) shall be carried out in circumstances affording reasonable privacy to the person;
(b) in the case of an examination which includes the external examination of the genital or anal area, the buttocks, or, in the case of a female, the breasts—shall not be carried out in the presence or in view of a person of the opposite sex to the person being examined;
(c) shall not be carried out in the presence or view of a person whose presence is not necessary for the purposes of the examination;
(d) shall not involve the removal of more clothing than is necessary for carrying out the examination; and
(e) shall not involve more visual inspection than is necessary for carrying out the examination.
“(8) Subsection (7) does not prevent an examination being carried out by a medical practitioner of the opposite sex to the person being examined.
“(9) A medical practitioner carrying out an examination under this section, an assistant of the medical practitioner or a police officer, may use reasonable force to enable the examination to be carried out including the prevention of loss, destruction or contamination of a sample.
“(10) Samples taken from a person charged with an offence shall be destroyed as soon as practicable after the conclusion of the proceedings relating to the offence and the exhaustion of any right of appeal.
“(11) No action or proceeding, civil or criminal, lies against—
(a) a person who conducts, or assists in conducting, an examination under this section (including such a person who uses reasonable force as provided in subsection (9)); or
(b) a police officer who uses reasonable force as provided in that subsection.
“(12) This section does not apply to a person to whom section 36 of the Children's Services Act 1986 applies.”.