A distributed system to manage access permissions of electronic health records through smart contracts.