; (B) is consistent with the rationale for placement and with the progress achieved by the inmate; (C) allows the inmate to participate in meaningful programming opportunities and privileges as consistent with those available in the general population as practicable, either individually or in a classroom setting; (D) allows the inmate to have as much meaningful interaction with others, such as other inmates, visitors, clergy, or licensed mental health professionals, as practicable; and (E) complies with the provisions of this section. (2) Transitional process for inmates in solitary confinement (A) Inmates with upcoming release dates The Director shall establish— (i) policies to ensure that an inmate with an anticipated release date of 180 days or less is not housed in solitary confinement, unless— (I) such confinement is limited to not more than 5 days of administrative segregation relating to the upcoming release of the inmate; or (II) the inmate poses a substantial and immediate threat; and (ii) a transitional process for each inmate with an anticipated release date of 180 days or less who is held in solitary confinement under clause (i)(II), which shall include— (I) substantial re-socialization programming in a group setting; (II) regular mental health counseling to assist with the transition; and (III) re-entry planning services offered to inmates in a general population setting. (B) Inmates in long-term solitary confinement The Director shall establish a transitional process for each inmate who has been held in solitary confinement for more than 30 days and who will transition into a general population unit, which shall include— (i) substantial re-socialization programming in a group setting