In any case in which a person is taken into custody by arrest or other process of law and is lodged in a jail or other place of confinement, and there is reasonable cause to believe that the person is addicted to a controlled substance, it is the duty of the person in charge of the place of confinement to provide the person so confined with medical aid as necessary to ease any symptoms of withdrawal from the use of controlled substances.
In any case in which a person, who is participating in a narcotic treatment program, is incarcerated in a jail or other place of confinement, he or she shall, in the discretion of the director of the program, be entitled to continue in the program until conviction.
Ca. Health and Saf. Code § 11222