Reforms to the NHS records system could result in 20,000 fewer visits to A&E a year, according to government estimates.