Establishing a relationship between medications and diagnoses within a functioning electronic medical record system (EMR) has many valuable applications,such as improving the quality and utility of the problem list to support better decisions.