Section 123 StPO governs physical examinations. They are permitted, among other situations, where specific facts indicate that a person has left traces whose recovery and examination are essential for investigating an offence. In certain constellations, other bodily findings may also be relevant.
The prosecution generally orders the examination on the basis of judicial authorisation. In an emergency, the prosecution may order it provisionally but must obtain judicial authorisation without delay. Section 123(3) contains a specific rule allowing the criminal police to take a mouth swab themselves.
Section 124 StPO governs molecular genetic examination. It permits the examination of biological traces and material belonging, or likely belonging, to a particular person in order to attribute a trace or establish identity or parentage. The criminal police may arrange examination of a mere biological scene trace themselves. For other material, the provision generally requires an order by the prosecution based on judicial authorisation.