However, it is forbidden to engage in medicine unless he is expert and has permission from the beit din. And nowadays, he must be certified by the government, that he has permission to give medicines to the sick. And also, there must not be one greater than him there, for if not so, when he causes damage—behold, he is a shedder of blood. And if he healed without permission from the beit din and the government—he is liable for payments even if he is expert if the patient was damaged by his hand, and he must pay out money for medicines. And all the more so if he died by his hand—behold, this is like one who kills a soul intentionally. But if he healed with permission and erred and caused damage—he is exempt by the laws of man. And he is liable by the laws of Heaven if it was through his negligence and he did not examine well, for if he examined—he has no sin at all, since it is a mitzvah to heal. And the sage already said: "The error of the physician is the intention of the Creator." And if he died through his medicines and it became known to him that he erred—behold, he goes into exile because of him, when there is room to attribute that he caused it to him through negligence or that he did not examine well. But without this, it seems to me that he is not liable for exile, for how is he worse than a father who strikes his son or a teacher his student, who are exempt from exile? (So it seems to my humble opinion to explain the Tosefta and the words of the Ramban that the Tur and the Shulchan Aruch brought, and see Beit Yosef. And be precise and you will find it easy.)
ומיהו אסור להתעסק ברפואות אלא אם כן הוא בקי ויש לו רשות מבית דין. והאידנא צריך להיות מוסמך מהממשלה, שיש לו רשות ליתן רפואות לחולאים. וגם לא יהא שם גדול ממנו, שאם לא כן כשהזיק – הרי הוא שופך דמים. ואם ריפא שלא ברשות בית דין והממשלה – חייב בתשלומין אפילו הוא בקי אם החולה נתנזק על ידו, וצריך להוציא ממון על רפואות. וכל שכן אם מת על ידו – הרי זה כהורג נפש במזיד. אבל אם ריפא ברשות וטעה והזיק – פטור מדיני אדם. וחייב בדיני שמים אם היתה על ידי התרשלותו ולא עיין יפה, דאם עיין – אין לו שום חטא, שהרי מצווה לרפאות. וכבר אמר החכם: "שגגת הרופא – כוונת הבורא". ואם מת על ידי רפואותיו ונודע לו ששגג – הרי זה גולה על ידו, כשיש לו מקום לתלות שהוא גרם לו על ידי התרשלות או שלא עיין יפה. אבל בלא זה נראה לי דאינו חייב גלות, דמי גרע מאב המכה את בנו והרב את תלמידו, דפטור מגלות? (כן נראה לעניות דעתי לפרש התוספתא ודברי הרמב"ן שהביאו הטור והשולחן ערוך, ועיין בית יוסף. ודייק ותמצא קל.)