(b) (1) For purposes of this section, “medical condition” means a serious chronic or acute physical ailment for which the treating physician and treating psychiatrist, as part of the certification process, document the following:
(A) The physician certifies that all of the following apply:
(i) Without treatment, the medical condition poses a serious risk that the person, within three months, will suffer great bodily harm or death.
(ii) The treatment is consistent with generally accepted standards of practice, the person
will receive the treatment if detained pursuant to Section 5250 or 5270.15, and, upon release, the person will be provided with a treatment plan and connected with services to continue to provide the treatment, as appropriate.
(iii) During the person’s detention pursuant to Section 5150, the physician advised the person on the purpose, nature, risks, and benefits of the medical condition and the treatment, consistent with the requirements for obtaining informed consent under Section 5326.2.
(B) The psychiatrist certifies that both of the following apply:
(i) If the medical condition is a chronic condition that existed before the person was detained pursuant to Section 5150, the person was consistently unable to comply with treatment due to their mental health condition.
(ii) If released into the community, the person, due to their mental health condition at the time of certification, is likely to remain consistently unable to comply with the treatment due to either of the following:
(I) Despite the advice given, as described in clause (iii) of subparagraph (A), the person remains unable to comply with the treatment because they cannot achieve a rudimentary understanding of the nature of the medical condition and continue to lack insight into the need for treatment.
(II) The person understands the nature of the medical condition and wishes to comply with the treatment, but, due to the person’s mental health condition, has a demonstrated history of being consistently unable to comply with the treatment, or a treatment for a similar medical condition, and this pattern is likely to recur if
the person is released into the community.
(2) “Medical condition” does not include any of the following:
(A) A condition that predominantly involves a substance use disorder.
(B) Exposure to potential harms resulting from the person’s personal circumstances, including, but not limited to, lack of health care insurance, poverty, or homelessness.
(C) Medical information that is more than four years old.