S-40.1, r. 1 - Regulation under the Act respecting the Québec correctional system

Full text
29. A body cavity search may be conducted provided that it is authorized by the facility director if a correctional officer is satisfied that there are reasonable grounds to believe that an inmate is carrying contraband in a body cavity or has ingested contraband.
The search is possible only if the measure is necessary to detect and seize the contraband and the written consent of the inmate has been obtained.
The search must be conducted by a physician of the same gender as the inmate, except if the inmate agrees to the search being conducted by a physician of the opposite gender. A witness of the same gender as the person searched must also be present.
O.C. 5-2007, s. 29.