(Reuters) - Private equity firm Veritas Capital and hedge fund Elliott Management are buying Athenahealth Inc <ATHN.O> for about $5.7 billion (4.4 billion pounds), the U.S. healthcare software maker said on Monday.
The all-cash deal values Athenahealth at $135 per share, representing a premium of 12.2 percent to the stock's closing price on Friday.
Reuters reported on Sunday that Athenahealth had agreed to a takeover.
Athenahealth had been under pressure from Elliott to sell itself since the hedge fund acquired a stake in the company last year. In May Elliott made an unsolicited offer of $160 per share to buy Athenahealth.
The Watertown, Massachusetts-based company, whose cloud-based software is used to track revenue from patients, physicians and hospitals, has cut jobs and overhauled its management over the past year as part of a restructuring effort.
Former General Electric <GE.N> Chief Executive Officer Jeff Immelt currently serves as its chairman.
Once the deal is complete, Athenahealth will merge with Virence Health, the former GE Healthcare unit that Veritas acquired earlier this year, the companies said in a joint statement.
A deal for Athenahealth represents the largest deal to date for Elliott's private equity arm, Evergreen.
In June Athenahealth's founder and CEO Jonathan Bush, a nephew of former U.S. President George H.W. Bush, stepped down following a newspaper report alleging he had assaulted his former wife 14 years earlier.
(Reporting by Tamara Mathias and Manas Mishra in Bengaluru; Editing by Sai Sachin Ravikumar)