Patent ID: 8650045

Claim:
A method, implemented at least in part by a computing device, for controlling access to electronic health records using a hybrid architecture, the method comprising: obtaining, by a first location from a token ownership service of a centralized service, an ownership token comprising: a unique electronic health record (EHR) identifier identifying an EHR of a patient; and a unique location identifier identifying a second location, wherein the second location currently owns the EHR, wherein the second location currently stores the EHR, and wherein the first location and the second location are different physical locations; sending, from the first location directly to the second location, a request to transfer the EHR stored at the second location; receiving, at the first location directly from the second location, the EHR; and obtaining, by the first location from the token ownership service and from the second location, ownership of the EHR, wherein the ownership is obtained, at least in part, using a pessimistic lock, and wherein obtaining ownership is required before the first location is authorized to make changes to the EHR; wherein the centralized service is part of a centralized architecture, and wherein the first location and the second location are part of a distributed architecture separate from the centralized architecture; and wherein the EHR is stored at one or more locations within the distributed architecture, wherein the EHR is owned at no more than one location within the distributed architecture at any given time, and wherein the EHR is not stored at the centralized architecture.