Systems and methods for data analysis include determining medical events co-occurring within a time period from a patient record database. The medical events are grouped into sets of medical events such that a number of sets of medical events is minimized based upon medical event cardinality. Patterns from the sets of medical events are identified, using a processor, to provide relationships between the patterns and patient outcomes.