סימן סא סעיף ד
הַנִּכְנָס לְהַקִּיז דָּם, וְכֵן קֹדֶם שֶׁיֹּאכַל אוֹ יִשְׁתֶּה אוֹ יַעֲשֶׂה אֵיזֶה דָּבָר לִרְפוּאָה, יִתְפַּלֵּל קֹדֶם תְּפִלָּה קְצָרָה, וְיֹאמַר: יְהִי רָצוֹן מִלְּפָנֶיךָ ה' אֱלֹהֵינוּ וֵאֱלֹהֵי אֲבוֹתֵינוּ, שֶׁיִּהְיֶה לִי עֵסֶק זֶה לִרְפוּאָה, כִּי רוֹפֵא חִנָּם אַתָּה. וְאִם דָּבָר זֶה שֶׁהוּא אוֹכֵל אוֹ שׁוֹתֶה לִרְפוּאָה צְרִיכִין לְבָרֵךְ עָלָיו (עַיִן לְעֵיל סִימָן נ' סָעִיף ח'), יֹאמַר תְּחִלָּה תְּפִלָּה זֹאת, וְאַחַר כָּךְ יְבָרֵךְ (כֵּן נִרְאֶה לִי, שֶׁלֹּא לְהַפְסִיק בֵּין הַבְּרָכָה לַאֲכִילָה). לְאַחַר שֶׁהִקִּיז דָּם, מְבָרֵךְ וְאוֹמֵר: בָּרוּךְ אַתָּה ה' אֱלֹקֵינוּ מֶלֶךְ הָעוֹלָם, רוֹפֵא חוֹלִים.
Before undergoing surgery,6Literally: Before undergoing bloodletting. or before eating or drinking something [as a remedy], or taking a treatment for a cure, you should first recite the following brief prayer: "May it be Your will Hashem, our God, and the God of our forefathers that this measure may serve me as a cure, for You are a gratuitous Healer." And if the substance which you eat or drink for medicinal purposes requires that you say a berachah over it (see Ch. 50:8 above), you should first offer this prayer and then say the berachah. This seems to me to be the proper order so as not to cause an interruption between the saying of the berachah and the eating). After bloodletting, say the following berachah Baruch ata Adonoy Elokeinu melech ha'olam rofei cholim, [Blessed are You, Hashem, our God, King of the universe, Who heals the sick].7The prevailing custom is to say the berachah without sheim umalchus (the Divine Name and Kingship) —i.e. Baruch rofei cholim. (Mishnah Berurah 230: 7)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)