The Effectiveness of Multitask Learning for Phenotyping with Electronic Health Records Data