Article R53-8-50 of the French Code of Criminal Procedure
If the security surveillance takes place at the end of a security detention period, the sentence enforcement judge with territorial jurisdiction to supervise the person is notified before the person leaves the socio-medico-judicial security centre, to enable the person concerned to be taken into care immediately. If the person is subject to a care order, the coordinating doctor and their attending doctor are appointed before they are discharged, in accordance…