Skip to content

debapriyo007/prescriptio-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’Š Medical Prescription Portal

A secure, full-stack platform for digital prescription exchange between doctors and patients.

Say goodbye to lost paper prescriptions β€” doctors upload, patients retrieve, OTP verifies. Simple, secure, always accessible.

React TailwindCSS SpringBoot Java MySQL License Status


πŸ“‘ Table of Contents


🧭 Overview

The Medical Prescription Portal digitizes and simplifies the prescription-sharing workflow between healthcare providers and patients.

Patients frequently lose or misplace physical prescriptions, creating friction when refilling medication or consulting another provider. This platform solves that problem by letting doctors upload prescriptions digitally and giving patients secure, login-free access to retrieve them on demand β€” authenticated via email-based OTP verification.

Highlights

Highlight Description
🩺 Doctor Dashboard Fast, structured prescription uploads linked to patient records
πŸ” OTP Authentication Passwordless, time-bound identity verification for patients
πŸ“₯ Patient Portal Simple, login-free gateway to retrieve prescriptions anytime
πŸ—„οΈ Secure Storage Reliable, access-controlled storage of prescription files

πŸ› οΈ Tech Stack

Layer Technology
Frontend React, Tailwind CSS
Backend Spring Boot (Java)
Database MySQL
Auth Email-based OTP
File Storage Local / cloud object storage (configurable)

πŸ—οΈ System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Doctor UI   │───────▢│  Spring Boot API │───────▢│  MySQL DB     β”‚
β”‚ (React/Tailwind)β”‚      β”‚  (REST Services) β”‚        β”‚ (Patients,    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚                  β”‚        β”‚  Prescriptions)β”‚
                          β”‚                  β”‚        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚                  β”‚        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Patient UI   │───────▢│  OTP Service ─────────────▢│  Email Providerβ”‚
β”‚ (React/Tailwind)β”‚      β”‚  (Generate/Verify)β”‚        β”‚  (SMTP)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                   β”‚
                                   β–Ό
                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                          β”‚  File Storage     β”‚
                          β”‚ (Prescriptions)   β”‚
                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ‘₯ User Roles

🩺 Doctor

Doctors use the platform to:

  • Upload prescription files (PDF/Image) for a patient.
  • Associate uploads with the patient's registered email address.
  • Maintain a history of issued prescriptions per patient.
  • Ensure patients retain long-term access without needing physical copies.

πŸ§‘β€βš•οΈ Patient

Patients can:

  • Enter their registered email address to initiate a request.
  • Receive a secure, time-limited One-Time Password (OTP) via email.
  • Verify their identity by submitting the correct OTP.
  • Instantly download their prescription upon successful verification.

✨ Features

Component Feature Description
Doctor Features Upload Prescription Upload PDF/Image prescription files
Patient Records Manage and associate patient records
Secure Storage Encrypted / access-controlled file repository
Patient Features Request OTP Request a temporary token via email
Verify OTP Authenticate the token securely
Download Prescription Retrieve and download the file instantly

πŸ”„ Prescription Retrieval Flow

  1. Patient enters their registered email on the portal.
  2. System generates a time-bound OTP and sends it to the email.
  3. Patient submits the OTP for verification.
  4. On success, the system authorizes a one-time secure download link.
  5. Patient downloads the prescription instantly.

πŸš€ Getting Started

Prerequisites

  • Java 17+
  • Node.js 18+
  • MySQL 8+
  • Maven

Backend Setup

cd backend
mvn clean install
mvn spring-boot:run

Frontend Setup

cd frontend
npm install
npm run dev

Database Setup

CREATE DATABASE prescription_portal;

Update your database credentials in application.properties before starting the backend.


πŸ”‘ Environment Variables

Variable Description
DB_URL MySQL connection string
DB_USERNAME Database username
DB_PASSWORD Database password
MAIL_HOST SMTP host for sending OTP emails
MAIL_USERNAME SMTP account username
MAIL_PASSWORD SMTP account password
OTP_EXPIRY_MINUTES OTP validity duration

πŸ”’ Security Considerations

  • OTPs are time-bound and single-use to prevent replay attacks.
  • Prescription files are stored in an access-controlled repository, never publicly indexed.
  • Email is used as the sole identifier to minimize the attack surface β€” no passwords are stored for patients.
  • All sensitive endpoints should be served over HTTPS in production.

πŸ—ΊοΈ Roadmap

  • Two-factor authentication for doctors
  • Patient prescription history dashboard
  • Mobile-responsive UI enhancements
  • Audit logs for prescription access
  • Multi-language support

🀝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m "Add your feature").
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a Pull Request.

πŸ“¬ Contact

Feel free to reach out for inquiries, feedback, or collaboration:


πŸ“„ License

This project is licensed under the MIT License.


Built with the goal of making prescription management simple, secure, and always accessible.

About

A full-stack web application built for secure and seamless handling of medical prescriptions between Doctors and Patients. This system ensures that patients never lose access to their prescriptions and can retrieve them anytime using secure OTP verification.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors