The Rambam · Sefer Zemanim
הלכות שבת ב׳Sabbath 2
Chapter 2 of 30 in Sabbath — 25 halachot
Halacha 1א׳
דְחוּיָה הִיא שַׁבָּת אֵצֶל סַכָּנַת נְפָשׁוֹת כִּשְׁאָר כָּל הַמִּצְוֹת. לְפִיכָךְ חוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה עוֹשִׂין לוֹ כָּל צְרָכָיו בְּשַׁבָּת עַל פִּי רוֹפֵא אֻמָּן שֶׁל אוֹתוֹ מָקוֹם. סָפֵק שֶׁהוּא צָרִיךְ לְחַלֵּל עָלָיו אֶת הַשַּׁבָּת סָפֵק שֶׁאֵינוֹ צָרִיךְ. וְכֵן אִם אָמַר רוֹפֵא לְחַלֵּל עָלָיו אֶת הַשַּׁבָּת וְרוֹפֵא אַחֵר אוֹמֵר אֵינוֹ צָרִיךְ מְחַלְּלִין עָלָיו אֶת הַשַּׁבָּת שֶׁסְּפֵק נְפָשׁוֹת דּוֹחֶה אֶת הַשַּׁבָּת:
Like all the other commandments, Shabbat is overridden by danger to life. Hence we execute all of the needs of an ill person in mortal danger according to the word of an expert physician in that place on Shabbat. When there is a doubt whether there is a need to profane the Shabbat for him or there is not a need, and likewise if [one] physician said to profane the Shabbat for him but another physician said he does not need [it], we profane the Shabbat. For [even] a doubt about [danger to] life overrides the Shabbat....
Halacha 2ב׳
אֲמָדוּהוּ בְּיוֹם הַשַּׁבָּת שֶׁהוּא צָרִיךְ לְכָךְ וְכָךְ לִשְׁמוֹנָה יָמִים אֵין אוֹמְרִים נַמְתִּין עַד הָעֶרֶב כְּדֵי שֶׁלֹּא לְחַלֵּל עָלָיו שְׁתֵּי שַׁבָּתוֹת אֶלָּא מַתְחִילִין מֵהַיּוֹם שֶׁהוּא שַׁבָּת וּמְחַלְּלִין עָלָיו אֲפִלּוּ מֵאָה שַׁבָּתוֹת כָּל זְמַן שֶׁהוּא צָרִיךְ וְיֵשׁ בּוֹ סַכָּנָה אוֹ סְפֵק סַכָּנָה מְחַלְּלִין. וּמַדְלִיקִין לוֹ אֶת הַנֵּר וּמְכַבִּין מִלְּפָנָיו אֶת הַנֵּר וְשׁוֹחֲטִין לוֹ וְאוֹפִין וּמְבַשְּׁלִין וּמְחִמִּין לוֹ חַמִּין בֵּין לְהַשְׁקוֹתוֹ בֵּין לִרְחִיצַת גּוּפוֹ. כְּלָלוֹ שֶׁל דָּבָר שַׁבָּת לְגַבֵּי חוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה הֲרֵי הוּא כְּחל לְכָל הַדְּבָרִים שֶׁהוּא צָרִיךְ לָהֶן:
When they evaluated him on Shabbat as requiring such and such for eight days, we do not say, “Let us wait until the evening, so as not to profane two Shabbats for him.” Rather we profane [it] from today, which is Shabbat, and we profane even a hundred Shabbats for him. So long as he needs [it] and he is in danger or the doubt of a danger, we profane [it]. And we light a lamp for him, we slaughter for him and we bake and cook and heat up hot water for him – whether to give him to drink or whether to bathe his body. The principle of the matter [is that] Shabbat for an ill person in [mortal] danger is like a weekday concerning all of the things that he needs.
Halacha 3ג׳
כְּשֶׁעוֹשִׂים דְּבָרִים הָאֵלּוּ אֵין עוֹשִׂין אוֹתָן לֹא עַל יְדֵי נָכְרִים וְלֹא עַל יְדֵי קְטַנִּים וְלֹא עַל יְדֵי עֲבָדִים וְלֹא עַל יְדֵי נָשִׁים כְּדֵי שֶׁלֹּא תְּהֵא שַׁבָּת קַלָּה בְּעֵינֵיהֶם. אֶלָּא עַל יְדֵי גְּדוֹלֵי יִשְׂרָאֵל וְחַכְמֵיהֶם. וְאָסוּר לְהִתְמַהְמֵהַּ בְּחִלּוּל שַׁבָּת לְחוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה שֶׁנֶּאֱמַר (ויקרא יח ה) "אֲשֶׁר יַעֲשֶׂה אוֹתָם הָאָדָם וָחַי בָּהֶם" וְלֹא שֶׁיָּמוּת בָּהֶם. הָא לָמַדְתָּ שֶׁאֵין מִשְׁפְּטֵי הַתּוֹרָה נְקָמָה בָּעוֹלָם אֶלָּא רַחֲמִים וְחֶסֶד וְשָׁלוֹם בָּעוֹלָם. וְאִלּוּ הָאֶפִּיקוֹרוֹסִים שֶׁאוֹמְרִים שֶׁזֶּה חִלּוּל שַׁבָּת וְאָסוּר עֲלֵיהֶן הַכָּתוּב אוֹמֵר (יחזקאל כ כה) "גַּם אֲנִי נָתַתִּי לָהֶם חֻקִּים לֹא טוֹבִים וּמִשְׁפָּטִים לֹא יִחְיוּ בָּהֶם":
These things should not be performed by non-Jews, minors, servants or women, lest they consider the Sabbath a light matter; instead, scholars and sages of Israel are to carry them out. One must not put off the desecration of the Sabbath in treating a serious patient, as it is written: "If a man obeys them he shall live by them" (Leviticus 18:5), but he must not die by them. From this you may infer that the laws of the Torah are not meant to wreak vengeance upon the world, but to bestow on it mercy, kindliness, and peace. And it is written concerning those heretics that say that is desecrating the Shabbat (Ezek. 20:25), “I too have given them statutes that are not good and judgments that they will not live with.”
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Edition, tr. R. Francis Nataf, 2019 — CC BY
English: rendered from the Hebrew for this app — our own, not a borrowed translation