Section 54(1) in The Code of Criminal Procedure, 1973
(1)When any person is arrested, he shall be examined by a medical officer in the service of Central or State Governments and in case the medical officer is not available by a registered medical petitioner soon after the arrest is made :Provided that where the arrested person is a female, the examination of the body shall be made only by or under the supervision of a female medical officer, and in case the female medical officer is not available, by a female registered medical practitioner.