Amazon.com now sells software that enables doctors and hospitals to analyze patient records to look for ways to cut costs and improve outcomes. Above, the company’s headquarters in Seattle.