Article D47-33 of the French Code of Criminal Procedure
The obligation of care provided for, as a security measure, by Article 706-136-1 is ordered by a judgment made in accordance with l’article 712-6 before the date set for the release of the sentenced person.