It appears to me that the reasoning of the Rambam is as follows: behold, in the Mishnah (147a) it was taught: "We do not reset a fracture, and one whose hand or foot was dislocated should not scrub them with cold water, etc.", and in the Gemara, Rava said: "The halacha is: we reset a fracture." And regarding that which was taught about a dislocation, Rav Avya also thought to say the opposite of our Mishnah, and Rav Yosef said to him: where it was stated, it was stated, etc., see there. And it must be understood from where Rava knew to rule against the Mishnah, and Rashi, of blessed memory, explained that Rava holds that "we reset" was the version taught in the Mishnah, see there. And this is difficult, for if so, he should not have spoken using the language of "halacha," but rather "we reset was taught"; and it is also difficult why Rav Avya thought to also reverse the latter clause. Therefore, in my humble opinion, the matter is thus: behold, Rava was a physician, as is known, and he knew that according to the nature of the people of his generation, if they do not reset the fracture it would be a danger; because of this he says: the halacha is that we reset the fracture, meaning that now it is a danger. And therefore Rav Avya thought that the law of the latter clause also changed according to the natures of the generations, and Rav Yosef said to him that there is no proof, meaning that even though regarding resetting Rava says it has changed, nevertheless regarding scrubbing with cold water there is no necessity that it has changed, and it is possible that it changed and it is possible that it did not change, and there is no deciding factor in the matter. And since the Rambam saw that these laws depend on the natures of human beings, therefore it is impossible to rule a fixed halacha regarding them, and it depends on the statement of physicians. And perhaps the Rambam himself, who was a physician, knew that sometimes there is a danger in this and it is necessary to use medicines and one cannot give a fixed rule in this, and he omitted them and they are included in the general rule of what he wrote in chapter 2: "If a physician says it is necessary—we desecrate." And it seems to me that even now they consider this a danger, and therefore if such a thing should occur, Heaven forbid, they should inquire of physicians and act according to their words.
ויראה לי דטעמו של הרמב"ם הוא דהנה במשנה (קמ"ז.) תנן: "אין מחזירין את השבר, ומי שנפרקה ידו או רגלו לא יטרפם בצונן וכו'”, ובגמרא אמר שמואל: 'הלכה: מחזירין את השבר'. ובהך דנפרקה היה סבור רב אויא גם כן לומר היפך משנתינו, ואמר ליה רב יוסף היכא דאיתמר איתמר וכו' ע"ש. ויש להבין מאין ליה לשמואל לפסוק היפך המשנה, ורש"י ז"ל פירש דשמואל סבירא ליה מחזירין תנן ע"ש. וקשה, דאם כן לא הוה ליה לומר בלשון 'הלכה' אלא 'מחזירין תנן', וכן קשה למה היה סבור רב אויא להפך גם הסיפא. ולכן לעניות דעתי הענין כן הוא: דהנה שמואל היה רופא כידוע, וידע דלפי טבע אנשי דורו אם לא יחזירו את השבר יהיה סכנה, לזה אומר: הלכה דמחזירין את השבר, כלומר דעכשיו סכנה הוא. ולפיכך היה סבור רב אויא דגם דין הסיפא נשתנה לפי טבעי הדורות, ואמר לו רבי יוסף דאין ראיה, כלומר דהגם לענין חזרה אומר שמואל שנשתנה, מכל מקום לענין טרופה בצונן אין הכרח שנשתנה, ויכול להיות שנשתנה ויכול להיות שלא נשתנה ואין הכרע בדבר. וכיון שהרמב"ם ראה שדינים אלו תלוים כפי טבעי בני אדם, לכן אי אפשר לפסוק בהן הלכה קבועה, ותלוי באמירת הרופאים. ואולי הרמב"ם עצמו שהיה רופא, וידע שלפעמים יש סכנה בזה ובהכרח להשתמש ברפואות ואין ליתן בזה כלל קבוע, והשמיטם ונכלל בכלל מה שכתב בפרק ב': "אם רופא אומר צריך – מחללין". וכמדומני שגם עתה מחזיקים זה לסכנה, ולכן אם יארע ח"ו כזה ידרושו מרופאים ויעשו כדבריהם.