A person who chooses medicine as their career paths is expected to understand that they would be exposed to things that they personally would disagree with, but as part of their profession shouldn't let that get in the way of treating the patient, its even mentioned in the Hippocratic oath, the one doctors take once they graduate med school.
So as a Muslim medical student i wouldn't mind studying about sexually transmitted diseases or the effects of alcohol as long as its for the benefit of my patient, after all the prophet did say 'if you take on a job, do it to the fullest'.