Application of information technology: MedEx: a medication information extraction system for clinical narratives