Is it ok for one to go to a doctor on Chol HaMoed, especially as many times the doctor will need to do melachah? Is it ok to go for a routine dentist appointment during Chol HaMoed - going during Chol HaMoed saves lots of time as generally during Chol HaMoed they are much quieter? Is one allowed to take medicine on Chol HaMoed the same way he would on a regular weekday, or are there perhaps some limitations?
For Which Type of Sick Person Is Melachah Permitted on Chol HaMoed
The Shulchan Aruch (532:2) writes: כל רפואה מותר בחוה"מ – “All types of heeling are permissible on Chol HaMoed” The Mishnah Berurah (s.k. 5) explains: “One can do proper melachos for heeling purposes, even for a choleh [sick person] who isn’t in danger, however, on Yom Tov it's forbidden to even drink things for heeling purposes, as we are worried one may end up grinding spices .” It’s clear from the Mishnah Berurah, that we are talking about even a מיחוש בעלמא – one suffering from slight discomfort, as in Hilchos Shabbos (328:1) the Mishnah Berurah says, we are only worried about grinding spices (שחיקת סממני ם ) regarding one who has a מיחוש בעלמא, if, however, one is a choleh she’ein boi sakonah [ill, but not dangerously ill, a level worse then מיחוש בעלמא ] then we are not concerned about שחיקת סממנים .
The Shu”t Shevet HaLevi (8:125) asks a contraction in the Mishnah Berurah as in the Biur Halachah (end of 531) it seems that refuah on Chol HaMoed is only permissible for a choleh she’ein boi sakonah and not for a מיחוש בעלמא? The Shevet HaLevi says, practically we are lenient, even for a מיחוש בעלמא.