Gravar-mail: Next-generation phenotyping of electronic health records