Introduction
Researchers from the University of São Paulo and Queensland University of Technology have developed a decentralized framework for electronic prescriptions (e-prescriptions). This system addresses the growing complexities of digital healthcare by prioritizing data governance, privacy, and provenance through the integration of blockchain technology and Proxy Re-Encryption (PRE).
Problem Statement
Traditional centralized e-prescription systems suffer from several critical vulnerabilities that compromise patient care and data security:
- Privacy & Consent: Patients often lack visibility into who accesses their records once they are stored in centralized hospital or government databases.
- Security Risks: Centralized repositories act as single points of failure and are attractive targets for data breaches and unauthorized tampering.
- Regulatory Gaps: The "antibiotic loophole" allows for the illegal reuse of prescriptions or exceeding dosage limits because there is no real-time, cross-institutional tracking of medication flow.
- Provenance Challenges: Verifying the lineage of medical data—identifying who created, modified, or authorized it—is difficult in fragmented systems.
Proposed Framework
The proposed architecture relies on two primary technological pillars to ensure secure, transparent, and patient-centric data management.
Smart Contract Ecosystem
The framework utilizes six specialized smart contracts to govern interactions between patients, doctors, pharmacists, and regulators. These include Prescription (creation), Report (denouncing illegal activity), Sales (pharmacy transactions), Medication Control (regulatory oversight), Consent (access management), and Reward (incentivizing compliance).
Proxy Re-Encryption (PRE)
To maintain privacy without sacrificing accessibility, the system implements PRE using the pyUmbral library. This allows a semi-trusted "Proxy" to transform ciphertext encrypted for a patient into ciphertext for an authorized stakeholder (e.g., a pharmacist) using a delegation key provided by the patient. Crucially, the proxy never accesses the underlying plaintext data, ensuring end-to-end privacy while enabling granular consent.
Evaluation and Results
The framework was evaluated using the English Prescribing Dataset to simulate realistic file sizes for personal information, medication details, and diagnoses. Testing was conducted on both Ethereum (Ropsten) and CosmWasm (Uni Junø) to demonstrate blockchain agnosticism.
Key findings include:
- Efficiency: PRE operations are highly performant. Even for large diagnostic files (~8.76 MB), encryption averaged just 6.98 ms.
- Resource Usage: Most operations required minimal memory (1.6 KB to 3.6 KB), making the system viable for mobile devices and low-power pharmacy terminals.
- Latency: CosmWasm (utilizing Tendermint BFT) achieved validation in an average of 2.69 seconds, while Ethereum (Ropsten) took between 10 and 14 seconds.
Discussion and Future Work
While the framework provides granular consent and incentivizes regulatory compliance through a novel "CrimeStoppers" reward system, certain challenges remain for large-scale deployment. Future work will focus on:
- Scalability: Transitioning to off-chain storage solutions like IPFS or Swarm to handle larger data volumes while keeping only cryptographic hashes on-chain.
- Collusion Prevention: Addressing illegal sales that occur entirely outside the digital system.
- Data Leakage: Investigating digital watermarking and steganography to track the source of leaks if an authorized user shares decrypted data without permission.
Summary updated