Health establishments may, under conditions defined by regulation, provide care :
1° To persons subject to psychiatric care pursuant to Chapters II to IV of Title I of Book II of Part Three of this Code or Article 706-135 of the Code of Criminal Procedure;
2° To persons detained in prisons and, if necessary, in hospitals;
3° To persons held in socio-medico-judicial security centres;
4° To persons placed or maintained in administrative detention pursuant to Title IV of Book VII or Articles L. 751-8, L. 752-2 or L. 753-2 of the Code de l’entrée et du séjour des étrangers et du droit d’asile.
The health establishments providing this care provide all persons concerned with the guarantees set out in I of article L. 6112-2 of this code.