It is a known matter that there is nothing that stands before pikuach nefesh, for one profanes the Shabbat, and all the more so that one is obligated to go outside the techum, even in techumin of twelve mil. And regarding techumin, the sages made an additional enactment for this, that he has in the place where he arrived two thousand amot in every direction, even though he did not acquire shevitah there. And if he is in some city—he is like the people of the city, and he has the entire city and two thousand amot outside of it. Therefore, anyone who went outside the techum with permission, such as a wise midwife who comes to a woman to deliver her child, and so too anything similar to this—they have all the laws that have been explained, and the sages did this so that it would not be a burden upon them.
דבר ידוע שאין לך דבר שעומד בפני פקוח נפש, שמחללין את השבת, וכל שכן שמחוייבין לצאת חוץ לתחום, אפילו בתחומין די"ב מיל. ובתחומין עשו לזה חכמים תקנה יתירה, שיש לו במקום שהגיע אלפים אמה לכל רוח, אפילו שלא קנה שביתה בשם. ואם הוא באיזה עיר - הרי הוא כאנשי העיר, ויש לו כל העיר וחוצה לה אלפים אמה. ולכן כל מי שיצא חוץ לתחום ברשות, כגון מילדת חכמה הבאה לאשה להולידה, וכן כל כיוצא בזה - יש להם כל הדינים שנתבארו, וזה עשו חכמים כדי שלא תהיה עליהם כמשא.