; and (B) by adding at the end the following: (D) Eligible terminally ill offender The term eligible terminally ill offender means an offender in the custody of the Bureau of Prisons who— (i) is serving a term of imprisonment based on conviction for an offense or offenses that do not include any crime of violence (as defined in section 16(a) of title 18, United States Code), sex offense (as defined in section 111(5) of the Sex Offender Registration and Notification Act ( 34 U.S.C. 20911(5) )), offense described in section 2332b(g)(5)(B) of title 18, United States Code, or offense under chapter 37 of title 18, United States Code; (ii) satisfies the criteria specified in clauses (iii) through (vii) of subparagraph (A); and (iii) has been determined by a medical doctor approved by the Bureau of Prisons to be— (I) in need of care at a nursing home, intermediate care facility, or assisted living facility, as those terms are defined in section 232 of the National Housing Act ( 12 U.S.C. 1715w ); or (II) diagnosed with a terminal illness. . (b) Increasing the use and transparency of compassionate release Section 3582 of title 18, United States Code, is amended— (1) in subsection (c)(1)(A), in the matter preceding clause (i), by inserting after Bureau of Prisons, the following: or, upon motion of the defendant after the defendant has fully exhausted all administrative rights to appeal a failure of the Bureau of Prisons to bring a motion on the defendant’s behalf or the lapse of 30 days from the receipt of such a request by the warden of the defendant’s facility, whichever is earlier, ; (2) by redesignating subsection (d) as subsection (e)