text: be interviewed, and a psychological and social report identifying any factors relevant to the specific type and level of care and programme required by the juvenile should be prepared. This report, together with the report prepared by a medical officer who has examined the juvenile upon admission, should be forwarded to the director for purposes of determining the most appropriate placement for the juvenile within the facility and the specific type and level of care and programme required and to be pursued. "27. The detention of juveniles should only take place under conditions that take full account of their particular needs, status and special requirements according to their age, personality, sex and type of offence, as well as mental and physical health, and which ensure their protection from harmful influences and risk situations. The principal criterion for the separation of different categories of juveniles deprived of their liberty should be the provision of the type of care best suited to the particular needs of the individuals concerned and the protection of their physical, mental and moral integrity and well-being. "28. In all detention facilities juveniles should be separated from adults, unless they are members of the same family. Under controlled conditions, juveniles may be brought together with carefully selected adults as part of a special programme that has been definitively proven to be beneficial for the juveniles concerned. "29. Open detention facilities for juveniles should be established. Open detention facilities are those with no or minimal security measures. The population in such detention facilities should be as small as possible. The number of juveniles detained in closed facilities should be small enough to enable individualized treatment. Detention facilities for juveniles should be decentralized and of such size as to facilitate access and contact between the 
analysis: The text appears to focus on the treatment and care of juveniles who are deprived of their liberty, emphasizing the importance of providing a suitable environment that takes into account their age, personality, sex, and other individual characteristics. The text also discusses the need for individualized treatment and the importance of protecting their physical, mental, and moral integrity and well-being.