Improving medication safety in primary care using electronic health records.