Improving clinical encounters and outcomes through predictive analytics