Data authentication and management from PHR to EHR