Muslim doctors and pharmacists should strive to develop medicine that does not contain haram ingredients in them.
The same principle applies to alcohol; it is best to be avoided but in extreme circumstances even alcohol can be halal instead of haram, for example if you were dying of thirst. If you look hard enough you can find alcohol-free alternatives.