Evaluating the potential harm of a drug-drug interaction (DDI) requires knowledge of a patient's relevant co-morbidities and risk factors. Current DDI alerts lack such patient-specific contextual data. In this paper, we present an efficient model for integrating pertinent patient data into DDI alerts. This framework is designed to be interoperable across multiple drug knowledge bases and clinical information systems. To evaluate the model, we generated a set of contextual DDI data using our local drug knowledge base then conducted an evaluation study of a prototype contextual alert design. The alert received favorable ratings from study subjects, who agreed it was an improvement over traditional alerts and was likely to support clinical management and save physician time. This framework may ultimately help reduce alert fatigue through the dynamic display of DDI alerts based on patient risk.