סימן צג סעיף ב
יוֹלֶדֶת הֲרֵי הִיא כְּחוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה, וּמְחַלְּלִין עָלֶיהָ אֶת הַשַׁבָּת לְכָל מַה שֶּׁהִיא צְרִיכָה. אַךְ אִם אֶפְשָׁר לַעֲשׂוֹת עַל יְדֵי שִׁנּוּי אוֹ עַל יְדֵי אֵינוֹ יְהוּדִי, עוֹשִׂין. וְנִקְרֵאת יוֹלֶדֶת מִשֶּׁתֵּשֵׁב עַל הַמַּשְׁבֵּר אוֹ מִשָּׁעָה שֶׁהַדָּם שׁוֹתֵת וְיוֹרֵד, אוֹ שֶׁאֵין בָּהּ כֹּחַ לָלֶכֶת בְּעַצְמָהּ. גַּם הַמַּפֶּלֶת לְאַחַר אַרְבָּעִים יוֹם מִטְבִילָתָהּ דִּינָהּ כְּיוֹלֶדֶת.
A woman at childbirth is considered a critically-ill patient, and the Shabbos may be violated for whatever she requires. However, if it can possibly be done in an unusual manner, or by a non-Jew, it should be done.2Though her situation is critical, a woman in confinement is part of the normal pattern in life. Therefore, it is preferable, where possible, to do the melachos in an unusual manner or have a non-Jew do them. She is considered "a woman at childbirth" when seated on the birthing-stool,3Or delivery table. or as soon as there is a flow of blood,4Or waterflow. or if she doesn't have the strength to walk on her own. Also a woman who has miscarried more than forty days after having immersed herself [in a mikveh] has the classification of a "woman at childbirth."5Shulchan Aruch 330: 3; Biur Halachah 617.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)