Text this: A novel machine learning architecture to improve classification of intermediate cases in health: workflow and case study for public health