Research data warehouse: using electronic health records to conduct population-based observational studies