Comparing Rule-Based and Deep Learning Models for Patient Phenotyping