General Electric Co. said Thursday that its health care unit is buying IDX Systems Corp., a provider of software to track patient records and billing, in a deal the companies valued at $1.2 billion.