High-throughput framework for genetic analyses of adverse drug reactions using electronic health records