סימן צב סעיף ד
כָּל מַכָּה שֶׁבִּפְנִים הַגּוּף, דְּהַיְנוּ מִן הַשָּׂפָה וְלִפְנִים וְגַם הַשִּׁנַיִם בִּכְלָל, וְהַיְנוּ קִלְקוּל שֶׁמֵּחֲמַת מַכָּה אוֹ בוּעָה וְכַיוֹצֵא בָזֶה, מְחַלְּלִין עָלָיו אֶת הַשַׁבָּת וְאֵינוֹ צָרִיךְ אֹמֶד, שֶׁאֲפִלּוּ אֵין שָׁם בְּקִיאִים וְחוֹלֶה אֵינוֹ אוֹמֵר כְּלוּם, עוֹשִׂין לוֹ כָּל מַה שֶּׁרְגִילִים לַעֲשׂוֹת בְּחֹל. אֲבָל כְּשֶׁיוֹדְעִים וּמַכִּירִים בְּאוֹתוֹ חֳלִי שֶׁמַּמְתִּין וְאֵינוֹ צָרִיךְ לְחִלּוּל שַׁבָּת אֵין מְחַלְּלִין. מֵחוּשִׁים אֵינָן נִקְרָאִין מַכָּה. וּמִי שֶַׁחוֹשֵׁשׁ בְּשִׁנּוֹ וּמִצְטַעֵר עָלֶיהָ מְאֹד עַד שֶׁחָלָה מִמֶּנָּהּ כָּל גּוּפוֹ, מֻתָּר לוֹמַר לְאֵינוֹ יְהוּדִי שֶׁיּוֹצִיאָהּ.
Any internal injury [or wound] that begins at the lips inward, including the teeth, where the wound resulted from a blow or a blister or anything similar, the Shabbos may be violated for his sake without a [medical] evaluation.14The Shabbos may be violated by calling a doctor for someone who is experiencing a great deal of pain internally whose cause is unknown. [Biur Halacha 328: 4] Even if no one knowledgeable is present and the patient says nothing, you may do for him anything that is usually done during the weekdays.15See note 1. According to some poskim even treatments whose denial poses no danger are also permitted. [Magid Mishneh; Magein Avraham 328: 4] Others permit this only by a non-Jew. [Shulchan Aruch Harav] Mishnah Berurah (328: 14) rules according to the stricter view where a melacha d’oraisa is involved. However, when it is obvious regarding that illness, that it is possible to wait, and violating the Shabbos is unnecessary, you may not violate it. Pain is not considered a "wound." If you have a toothache and are suffering a great deal of pain to the point that you feel ill all over, you may ask a non-Jew to extract it.16See Mishnah Berurah 328: 10.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)