Development of data-driven framework for automatically identifying patient cohorts from linked electronic health records. (2017)