The impact of health risks on medical expenses