GPs and hospitals to share patient data for single patient record