Learning Rules with Complex Temporal Patterns in Biomedical Domains