EHR vendor Athenahealth is being acquired by Bain Capital and Hellman & Friedman for $17 billion, the companies announced Monday.