it will never get through parliament
I'm sorry to say that it already has got through parliament.
The government is treating NHS patients like Facebook treats its users: They provide an ostensibly "free" service, and then sell our private details to the highest bidder behind our backs.
The Medconfidential site is a great resource. One of the people behind it is Ross Anderson, a security researcher at the University of Cambridge who has written a lot about these plans, e.g. here in the Guardian, and on this blog.
The supposed "anonymisation" of these records is a big lie. Effectively anonymising personal records, in a manner that they can't be re-identified, is actually a hard task, it's not just a matter of deleting name and address. For example, a well-known bit of research showed that 87 percent of all Americans could be uniquely identified using only three bits of information: ZIP code [postcode], birthdate, and sex. Basically, what will happen is that companies will buy access to these "anonymised" databases, cross-reference them with publicly available data (electoral register, data from facebook etc.) in order to re-identify people, and then spam us with targeted advertising based on our medical records.
Currently, this system doesn't apply to Scotland, but apparently there may be plans for something similar.