The media can sometimes distort the truth and so here are links to reliable information on it:
National data opt-out – NHS Digital
Mythbusting social media posts about the national data opt-out – NHS Digital
Collecting GP data – advice for the public – NHS Digital
You can also opt out if you wish to on that website.