Pharmaceutical companies can make no profit from herbs which humans have historically consumed. Instead, they must use molecules foreign to human physiology. They have the difficult to impossible task of finding molecules that affect only the system they want to affect, so without exception there are medication side effects.
Nature, evolution, has done a better job at choosing which molecules are beneficial. All life is based on DNA, and molecules that are beneficial in one organism are likely to be beneficial for other organisms, which is why they consume each other for nutrients (not just for energy).
The odds that a pharmaceutical will have deleterious consequences are high, if only because the molecule in question was not selected by nature for DNA based life forms. An allergic reaction can always be dangerous, but in the case of a pharmaceutical, the immune system can be challenged in a way in which evolution has no bearing.
“ Our lack of understanding of the global interactions between pharmaceuticals and the immune system confounds drug development, conceals potentially serious side effects of marketed compounds ” Mapping the effects of drugs on the immune system, Kidd et al 2016
For any of the systems in the human body, reliable studies on long term effect from pharmaceuticals are lacking. Science is just beginning to understand the epigenome.
“behavioral ethics research suggests that an especially large proportion of the population (in some studies more than 50%) may behave unethically, because their ability to objectively interpret the ethicality of their own behavior is highly limited.” source
For any pharmaceutical a doctor prescribes, it would be wise to perform an allergy test, just like you would to find out if you have a food allergy.
Pharmaceutical drugs usually have a lot of unwanted side effects. So when your doctor suggests you take a certain drug, just tell them you'd like to first get an allergy test on that drug. There will likely be resistance and excuses towards not doing so, like trying to tell you that side effects are not allergies. While it is true that there can be effects not related to the immune system, toxicity can lead to an unnatural immune response.
You shouldn't be allergic to any drug you take, so what's the harm of a small test? Never mind that if you chew the pill in your mouth and let it sit for a minute, it leaves a burn on your gums. Your gums are made of cells just like the rest of your body. They test for food allergies by placing the food on your skin, so why shouldn't it be the same for a drug?
Maybe digestion chemically alters the molecule, but all too often, pharmaceuticals wreck havoc on the digestive system: