Target specification bias, counterfactual prediction, and algorithmic fairness in healthcare