Medication discrepancies in integrated electronic health records