This document discusses natural language processing and text mining techniques for biomedical literature and electronic health records. It describes named entity recognition to identify concepts like genes and proteins, relation extraction to find interactions between entities, and information extraction to formalize stated facts. It also discusses integrating extracted information with structured databases and visualizing relationships through web interfaces. Medical text mining can apply these techniques to clinical notes to identify diseases, drugs, adverse events and more for applications like comorbidity analysis, patient stratification, and pharmacovigilance.