# Towards an Optimized Blockchain-Based Secure Medical Prescription-Management System
## 3 Blockchain-Based Prescription Management DApp Overview
### System Presentation and Architecture  
This DApp serves as a comprehensive blockchain-based management system, facilitating seamless collaboration and efficient management for pharmacists, patients and administrators. Our solution does not require doctors who prescribe medications to be registered in the system in order to serve the patient, providing a reliable solution for handling prescriptions regardless of their source. This feature enhances accessibility, flexibility, and convenience, facilitating seamless prescription management for both healthcare providers and patients. The principal roles of the actors involved in the system are detailed as follows:  
* **The admin**, who represents a national agency, plays a crucial role in overseeing all actors and their activities within the platform. Among the main responsibilities of the admin, he/she is able to perform the following:
* Handle the registration process for pharmacists. Upon receiving a registration request, he/she meticulously reviews the information provided by the initiator pharmacists. Once he/she completes the registration process and approves a pharmacist's request, the DApp automatically generates a registration confirmation email containing essential details, including the login credentials. * Register and manage the list of market-approved drugs, ensuring that only safe, effective, and compliant medications are available within the platform. * Register and manage prescriptions: securely record prescription details, including drug information, dosage instructions, and patient data. - Register patients and generate Quick Response (QR) code: Pharmacists have the authority to register patients within the platform. Upon registration, the DApp generates a unique QR code for each patient. These QR codes serve as a secure and convenient way for patients to access their accounts, enabling them to view their prescription history, medication details, and other relevant healthcare information. - Access market-approved drug list: This comprehensive and up-to-date catalog of medications enables pharmacists to make informed decisions while dispensing prescriptions. Access to detailed drug information, such as contraindications and potential interactions, enhances patient safety and ensures compliance with prescribed treatments. - Access registered pharmacists list: This feature fosters communication and knowledge sharing among professionals, promoting best practices and continuous learning within the pharmaceutical community. * **Patient**: As active participants in the blockchain-based management system, patients are at the heart of the healthcare ecosystem. The DApp offers a patient-centric approach, empowering them with convenient and secure access to vital healthcare information. - QR code account access: Upon registration, the DApp provides patients with a unique QR code linked to their accounts. By scanning this QR code, patients can conveniently access their personalized healthcare information, including medication history and relevant prescription details. - Access medication history: Patients can easily access their comprehensive medication history through the DApp. The platform maintains a secure and up-to-date record of all prescriptions, dosages, and corresponding healthcare providers. - Access registered pharmacists list: This directory enables them to connect with trusted and qualified healthcare providers for consultations and personalized medication-related advice. By harnessing the power of blockchain technology, this medical prescription-management system DApp enriches the pharmaceutical landscape, fostering a collaborative environment that benefits both pharmacists and their patients.