The tasks and organisation of the medico-socio-judicial security centres, as well as the conditions under which the detainees’ lawyers and the judicial authority have access to information relating to the care of the persons concerned and the course of the detention measures, are determined by the provisions of Article R. 112-17 and articles R. 541-2 et seq. of the Penitentiary Code.