(3) Clinically managed residential substance use disorder facility The term clinically managed residential substance use disorder treatment facility means a facility which—
(A) is enrolled under section 1866(j);
(B) is accredited by an accrediting body approved by the Secretary;
(C) is legally authorized to provide a clinically managed low- or high-intensity residential substance use disorder program under the law of the State (or under a State regulatory mechanism provided by State law) in which the facility is located; and
(D) meets such additional conditions as the Secretary finds necessary in the interest of the health and safety of individuals who are residents of such facilities and are furnished clinically managed low-intensity residential substance use disorder services (or clinically managed high-intensity residential substance use disorder services, as the case may be).