Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 328…
“ Paragraph 11 If a dangerously sick person has been surveyed medically and it is found on Shabbat that he needs treatment that will involve desecration of Shabbat for eight days, we do not wait until nightfall so that only one Shabbat will be broken, but we rather do the treatment immediately and end up breaking two Shabbats. ”
