Fannie Mae’s top in-house counsel is packing his bags and taking up residence at Medtronic Inc.

After working for two years as the government-backed mortgage giant’s general counsel and senior vice president, Bradley Lerman will assume the top legal role at Medtronic, effective May 27. The Minneapolis-based medical technology company announced Monday that Lerman would also lead the company’s government affairs department.