Inspiration

Most hospitals and clinics in South Asia still rely on paper-based or outdated systems. This leads to lost patient records, long waiting hours, prescription errors due to illegible handwriting, and a lack of data security. We wanted to build a solution that brings healthcare into the digital age.

What it does

MedOS is a full-stack, cloud-ready Hospital Management System that serves three core users:

  • Admins: Have a complete overview of hospital operations, revenue analytics, and doctor management via a live KPI dashboard.
  • Doctors: Can manage their daily schedules, write digital prescriptions, and view complete patient medical histories.
  • Patients: Can easily discover specialists, book appointments online, and access their billing and prescription history.

How we built it

We built MedOS using a modern, scalable tech stack:

  • Frontend: Next.js 16 (App Router), React 19, TypeScript, styled with Tailwind CSS v4 and Framer Motion for smooth animations.
  • Backend: Next.js Server Actions and API routes.
  • Database: Serverless PostgreSQL via Neon, managed with Prisma 6 ORM.
  • Authentication: NextAuth v4 (JWT + bcrypt) for secure, role-based access.
  • Deployment: Vercel (Edge Network) for global, fast delivery.

Challenges we ran into

Implementing a strict, secure role-based access control (RBAC) system where Admins, Doctors, and Patients have completely isolated dashboards and data permissions was complex. Optimizing the database queries using Prisma with serverless Postgres (Neon) to ensure fast load times was also a significant technical hurdle.

Accomplishments that we're proud of

We successfully built a production-ready architecture with a premium, responsive UI (including Dark Mode and glassmorphism). The real-time interactive charts (Recharts) on the Admin dashboard and the seamless appointment booking flow are standout features.

What we learned

We deepened our knowledge of Next.js Server Components, Edge runtime optimization, and advanced database schema design using Prisma.

What's next for MedOS

We plan to integrate AI to create a smart symptom checker and predictive health analytics. Next phases also include launching a React Native mobile app and adding telemedicine video call capabilities.

Built With

Share this project:

Updates