Patent ID: 11862313
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 5:
6. A non-transitory computer-readable medium configured to store one or more instructions that when executed by a processor of a pharmacy node in a blockchain network configure the processor to perform:
receiving a request for a refill of a prescription from a patient node in the blockchain network, the request containing a secret key of a patient associated with the patient node;
extracting the secret key from the request to verify an identify of the patient; and
decrypting a prescription data of the patient retrieved from a blockchain ledger of the blockchain network using the secret key;
generating an authorization to refill the prescription, where the generating an authorization further comprises:
identifying a location of origin of the patient from the prescription data,
identifying, based on a smart contract, rules for refilling the prescription that are associated with a jurisdiction of origin of the patient,
identifying that the request for the refill originates in a different jurisdiction than the jurisdiction of origin,
in response to the identification that the request for the refill originates in the different jurisdiction, retrieving a boarding pass from the blockchain ledger and verifying that the patient is travelling to the different jurisdiction from where the request for refill originates based on the retrieved boarding pass, and
in response to the verification, modifying the smart contract to implement local rules of the different jurisdiction, wherein the local rules include a listing of medications that cannot be obtained within the different jurisdiction which are different than a listing of medications that cannot be obtained in the jurisdiction of origin,

determining that a medication included in the refill is permitted based on the modified smart contract including the listing of medications that cannot be obtained within the different jurisdiction;
in response to the medication included in the refill not being available, identifying an equivalent medication which is available for the patient in the different jurisdiction based on a prescription equivalence table of the pharmacy node; and
committing a transaction to the blockchain ledger based on the determination to permit the refill.