Proposed new laws will make patient records available across all NHS hospitals, GP surgeries and ambulance services in England.