A taxpayer is presumed to be California resident if the taxpayer is present in California for at least nine months.
The presumption is a statutory presumption which is rebutted by satisfactory evidence that the taxpayer is present in California for temporary or transitory purposes. I believe that her surgery and subsequent care would qualify her as CA nonresident.