Temporal Pattern Mining for Medical Applications