Improving population health using electronic health records :methods for data management and epidemiologicalanalysis