Clinical trial cohort selection based on multi-level rule-based natural language processing system