This study developed and tested an algorithm to optimize decision support and minimize alert fatigue during prescribing activities.