Cost-effective management of chronic diseases: surveillance, treatment, and elimination