Software developer Oracle announced on Monday that it has agreed to buy electronic medical records company Cerner for close to $30 billion — the largest acquisition in the company’s history.