Professional Project

MedDrainCare: Drain Care & Telehealth Dashboard

MedDrainCare looks after patients who go home from surgery with a drain still in place. Patients log what the drain collects each day, hospital coordinators keep watch over their patients, and physicians take paid emergency visits over video when something looks wrong. I built the web dashboard all three of them use, from its first commit in December 2022 through its 2024 releases.

Project Overview

The dashboard is a React 18 single-page app on Redux Toolkit and Tailwind CSS, talking to a REST backend through around 70 endpoints. One codebase serves patients, coordinators, and physicians, each with their own dashboard, navigation, and routes, across more than 50 screens. Payments run through Stripe and video visits through Zoom's embedded SDK, without anyone leaving the dashboard.

Track

Daily drain output, colour, and photos, charted over time

Watch

Coordinators follow every patient's drains and follow-ups

Treat

Paid emergency visits with a physician over embedded Zoom

Book

Clinic hours, visit slots, and seminar registration

One Codebase, Three Roles

Each role signs in to a different product. The routes, the sidebar, and the dashboard are all chosen from the user's role, and every dashboard is a grid the user can rearrange and resize, with the layout saved to their account.

Patient

A body diagram with each drain pinned where it sits, a snapshot of recent output, upcoming visits, and notifications. Pro members can add their own drains.

Coordinator

Hospital staff see patient statistics and appointments, place new drains on a patient's body map, and open clinic hours for physicians.

Physician

A monthly summary with charts, ratings and reviews, notes, and the emergency-visit queue, plus an earnings page.

Emergency Visits, End to End

When a drain looks wrong, a patient can reach a physician without leaving home. The whole visit happens inside the dashboard: the request, the payment, the queue, the video call, and the paperwork that closes it.

Request

The patient picks the drain and the problem, pays the visit fee through Stripe Checkout, and watches the request move from payment to connecting to accepted, refreshed every ten seconds.

Claim

Physicians work from a shared queue. Before one takes a request, the app fetches it again to check it is still waiting, then marks it ongoing and opens the call.

Visit

The call runs in the page through Zoom's embedded SDK, with the meeting signature generated by the backend so the SDK secret never reaches the browser. Both sides then close the visit with their own form.

Tech Stack

React 18
Redux Toolkit
Redux Persist
React Router v6
Tailwind CSS
Headless UI
Axios
Stripe.js
Zoom Meeting SDK
Chart.js
react-chartjs-2
react-grid-layout
DayPilot
react-calendar
Formik
Yup
date-fns
react-to-print
file-saver
react-pro-sidebar
react-select
react-responsive
Create React App

Drain Tracking

Coordinators and Pro patients place a drain by clicking where it sits on a body diagram

Pin positions stored as percentages, so they land in the same spot at any screen size

Drain type, site, size, insertion date, and follow-up date recorded per drain

Patients log output volume, colour, site notes, and photos of the site and the output

Tracker chart of output over any date range

Tracker printed as a report, and drain photos downloaded in one click

Drains marked active or inactive, with a list for each

Closing a Visit

Patient details and the reported problem shown beside the call

Patients sign with their name, rate the visit, and answer three follow-up questions

Physicians record visit notes and a recommendation

A check that the patient understood the plan, captured with the notes

Visits that went wrong flagged as issues, with the reason recorded

A feedback page for the patient once the visit ends

Scheduling & Seminars

Coordinators open a physician's clinic with several blocks of hours and a slot length

Clinic hours validated before saving, and cancellable afterwards

Patients book a visit by physician, date, and open slot

Upcoming visits listed with a join link that copies in one click

Month calendar of clinic appointments

Visit history for past appointments

Public seminar calendar with details and registration, open without signing in

Accounts & Payments

Pro membership on 3, 6, and 12-month plans through Stripe Checkout

Physician earnings, deposits, and bank details, with a printable statement

In-app notifications, with email and SMS preferences per user

Profile and medical information for each patient

Sign up, sign in, and forgot and change password flows

Dark mode across every screen, remembered for the session

Architecture & Engineering

State & Data

  • Redux Toolkit with 11 feature slices, each owning its own API calls as thunks
  • Only the session (token, role, Pro status, and theme) is persisted, and to session storage, so it ends with the tab
  • Date handling moved from Moment.js to date-fns across the app

Routing & Access

  • Role-specific screens registered only for that role, so other roles can't open them
  • Unknown paths fall back to the dashboard, or to sign-in when signed out
  • Seminar pages kept outside the sign-in guard for public visitors

Layout & Responsiveness

  • Dashboards built on a responsive grid with an edit mode for dragging and resizing widgets
  • Layouts saved per breakpoint to the user's account, so they follow the user between devices
  • Custom Tailwind breakpoints from 370px phones up to 1700px wide screens
  • Sidebar collapses on small screens, and the visit queue switches to tabs on tablets

Reports & Charts

  • Line, bar, and doughnut charts on Chart.js across the three dashboards
  • Print-ready drain reports and earnings statements with react-to-print
  • Drain photos saved to the device with file-saver

Product Principles

Care

  • A daily log, so a change in a drain is noticed early
  • A physician reachable over video, without a trip to the clinic
  • Every visit closed with notes, a recommendation, and the patient's sign-off

Workflow

  • Each role sees only the work that is theirs to do
  • Booking, paying, and meeting all happen in one place

Learn more

See what MedDrainCare offers patients and care teams