Directive (EU) 2016/800 of the European Parliament and of the Council of 11 May 2016 on procedural safeguards for children who are suspects or accused persons in criminal proceedings

[...]

(35) Children who are suspects or accused persons in criminal proceedings should have the right to an individual assessment to identify their specific needs in terms of protection, education, training and social integration, to determine if and to what extent they would need special measures during the criminal proceedings, the extent of their criminal responsibility and the appropriateness of a particular penalty or educative measure.

[...]