The section on confinement and psych evaluations applies when a person (usually of full age) is brought into a institution to receive psychiatric care, in spite of his opposition. To protect the patient and the public, the Civil code will allow, under certain conditions, the institution to keep the patient, even against his will.
To do so, the patient must be a danger to himself or others. Preventive confinement is permitted if the danger is serious and imminent, but authorisation of the court will be necessary to make him undergo a psychiatric assessment.
Articles 26 to 31 sets out the rules applicable to confinement, assessment, and psych assessment reports.