text: expiry of these periods, they must either charge him and bring him before a magistrates' court as soon as possible or bail him to appear in court; or release him without charge, either on bail or without bail; (e) Questioning: the police may search all those in police custody. Upon the authority of a senior officer (at least superintendent), and with the suspect's consent, they may carry out intimate searches (of the body orifices) for class A drugs, as set out in the Misuse of Drugs Act 1971, as amended, or for articles which might be used to cause injury. They may take fingerprints without the suspect's consent in certain circumstances; similarly, they may take non-intimate samples without the suspect's consent if certain conditions are met. 109. These extensive powers are balanced by a number of important rights for the suspect, which are contained in the Act and elaborated in the codes of practice made under the Act. The principal safeguards are: (a) Records of searches must be made; (b) The suspect must be told that he is being arrested, given the reason for his arrest and cautioned (advised that he does not have to say anything or answer any questions); thus the Act gives effect to longstanding common law rules in this respect; (c) The post of custody officer has been introduced. He is responsible for initially authorizing the detention of a person in police custody and for ensuring that all those in police detention are treated in accordance with the Act and codes of practice and that custody records are kept on each person detained. He is also responsible for ensuring that the suspect is advised of his rights, e.g. the right to consult a solicitor; (d) The suspect is entitled to have one person notified of his arrest 
analysis: The text appears to be discussing the procedures and rights of individuals who are arrested and detained by the police, including their treatment, searches, and communication with authorities. This suggests that the text is related to law enforcement and criminal justice, which is not a category listed. However, given the focus on individual rights and protections, it is possible that the text is related to human rights or law and justice.