System and method for securely giving electronic prescriptions directly to patients
View Patent ↗The present invention provides a system and method for medical providers to give electronic prescriptions (“eRx”) to patients. When an eRx is generated by a medical provider, a blockchain is initiated that stores all the information of the eRx. This eRx is given to the patient on their digital storage device. The eRx can be provided to a permissioned peer, such as a pharmacy, whereby the permissioned peer is able to confirm the authenticity of the eRx.
1 . A method for electronic prescriptions, comprising:
generating an electronic prescription for a patient;
generating a genesis block that contains information of the electronic prescription;
initiating a transactional chain for each new electronic prescription for the patient;
adding the genesis block to a blockchain of the electronic prescription,
wherein the transactional chain is associated with the blockchain of the electronic prescription;
storing the blockchain of the electronic prescription in one or more digital storage devices,
wherein each transaction of the blockchain of the electronic prescription contains a hash generated using nonce data that is only possessed by permissioned peers,
wherein the permissioned peers are medical providers that are chosen by the patient for sharing the electronic prescription, and
wherein one or more servers is accessible by the permissioned peers providing, by the one or more servers, the nonce data that is timestamped to the permissioned peers;
providing, by the one or more servers, the blockchain of the electronic prescription without the nonce data to the patient on a digital storage device;
generating blocks by the permissioned peers,
wherein the blocks are associated with new electronic prescriptions for the patient;
authenticating the generated blocks by participating peers of the permissioned peers using the nonce data; and
adding the generated blocks that have been authenticated to the blockchain which is located in the one or more digital storage devices.
2 . The method of claim 1 , further comprising:
supplying, by a permissioned peer of the permissioned peers, the nonce data from the one or more servers to verify the hash of the blockchain of the electronic prescription;
confirming an authenticity of the electronic prescription by the permissioned peer based on the supply of the nonce data from the one or more servers;
verifying by the one or more servers the permissioned peer; and
adding a new block to the blockchain of the electronic prescription based on the verification of the permissioned peer by the one or more servers; and
accessing the electronic prescription by the permissioned peer.
3 . The method of claim 1 , further comprising: generating, by a permissioned peer of the permissioned peers, the nonce data; and correlating by the nonce data with a given time period.
4 . The method of claim 1 , wherein each subsequent block after the genesis block on the blockchain represents a new transaction and each subsequent block contains a timestamp and a corresponding hash using the associated nonce data.
5 . The method of claim 4 , wherein the new transaction is a subsequent change to the electronic prescription for the patient.
6 . The method of claim 1 , wherein the generated blocks added to the blockchain only contain certain information of the electronic prescription.