Performing an operation comprising applying one or more natural language processing (NLP) algorithms to a text transcription of a medical encounter dialogue to determine a plurality of features of the dialogue, processing, by a machine learning (ML) model executing on a processor, the text transcription and the plurality of features of the dialogue to identify a plurality of candidate medications from a knowledge base corresponding to a first statement made by a medical professional during the medical encounter, and outputting an indication of the plurality of candidate medications for display.