Development and validation of various phenotyping algorithms for Diabetes Mellitus using data from electronic health records. (December 2017)