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.
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.
Daily drain output, colour, and photos, charted over time
Coordinators follow every patient's drains and follow-ups
Paid emergency visits with a physician over embedded Zoom
Clinic hours, visit slots, and seminar registration
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.
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.
Hospital staff see patient statistics and appointments, place new drains on a patient's body map, and open clinic hours for physicians.
A monthly summary with charts, ratings and reviews, notes, and the emergency-visit queue, plus an earnings page.
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.
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.
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.
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.
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
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
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
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