The study of genetic variability that affects the susceptibility to adverse drug reactions and side effects.