If a defendant is convicted of a state jail felony and the sentence is executed, the judge sentencing the defendant may release the defendant to a medical care facility or medical treatment program if the Texas Correctional Office on Offenders with Medical or Mental Impairments:
identifies the defendant as:
being a person who is elderly or terminally ill or a person with a physical disability;
being a person with mental illness or an intellectual disability; or
having a condition requiring long-term care; and
in cooperation with the community supervision and corrections department serving the sentencing court, prepares for the defendant a medically recommended intensive supervision plan that:
ensures appropriate supervision of the defendant; and
requires the defendant to remain under the care of a physician at the facility or in the program.