Automatic extraction of medication information from medical discharge summaries