Healthcare · Reference Build

Discovery, Booking, Consultation and Records in One Place

A full-stack healthcare platform where patients find a doctor, see real availability, book in person or by video, and keep their records — while doctors and admins run schedules, verification and analytics from role-aware dashboards.

Industry

Healthcare

Solution

Multi-Role Booking Platform

Type

Reference Build

Scope

4 Roles · 10 Specialties

Talk to Us
Medi — Healthcare Booking — OpenMalo case study
Client Context

A Reference Build, Not a Client Engagement

This one is ours. There is no client behind it — we built it end to end as a reference implementation, to work out how a real booking, consultation and records platform should be put together before someone pays us to build theirs.

The problem space it models is a familiar one: patients calling clinics with no idea what is free, doctors juggling a schedule by hand, and prescriptions and lab reports scattered across paper and email. Everything on this page is seeded demo data — no real patients, no production traffic, and no outcome numbers to quote.

Real-Time BookingHealth RecordsRole-Based Access
The Challenge

The Problems It Sets Out to Solve

These are the problems the build is designed around — a representative problem space rather than an observed client situation, and the intake says so in as many words.

Booking blind: patients calling clinics with no view of real availability

Double-bookings and schedules juggled by hand

Prescriptions, lab reports and visit summaries scattered across paper and email

No unified oversight for hospitals or platform admins

Our Solution

One Codebase, Four Role-Aware Dashboards

Discovery through records, with the safety-critical parts pushed down into the data layer rather than trusted to the browser.

Real-Time Slot Booking

Date, then a morning/afternoon/evening grid, then reason and fee breakdown, backed by a live slots table with double-booking protection enforced at the data layer.

A Records Vault That Doctors Write To

Prescriptions, lab reports and visit summaries in one place per patient, added by the doctor after the visit rather than handed over on paper.

Four Roles, One Codebase

Patient, doctor, hospital admin and super admin each get their own dashboard, gated by custom JWT and role guards rather than by hiding buttons.

Clean Seams, Not Half-Built Features

Payments, video, notifications and storage are scaffolded as explicit extension points — honest about what is wired and what is ready to be.

Key Features

What the Platform Does

Discovery & Search

Find and filter doctors and hospitals by specialty, city, consultation type and fee, with sorting and rich profiles.

Doctor & Hospital Profiles

Bios, languages, facilities, departments, ratings and reviews on every listing.

Real-Time Booking

A time-of-day slot grid with reason tags and a fee breakdown, on a live slots table with double-booking protection.

Booking Confirmation

Every booking produces a QR-style check-in code, calendar and directions, and a video room link for online consultations.

Appointment Management

Upcoming, completed and cancelled appointments with reschedule, cancel and a refund policy.

Health Records Vault

Prescriptions, lab reports and visit summaries per patient, written to by the doctor after each visit.

Reviews & Ratings

Post-visit reviews with tags, aggregated into doctor and hospital ratings.

Doctor Dashboard

Today's schedule, upcoming bookings, earnings, mark-complete and add-record actions.

Schedule Manager

Bulk add and remove of slots, so a doctor sets availability once instead of appointment by appointment.

Admin Console

Platform analytics — patients, doctors, revenue, completion rate and a 14-day bookings chart — plus doctor verification and an all-appointments view.

Auth & RBAC

Custom JWT with bcrypt, per-section role guards, and a fast cookie gate at the edge.

Design System

A clinical teal/emerald theme with an animated logo, no-flash light/dark mode, and a mobile bottom-nav layout.

Technology Stack

A Lean, ORM-Free Full-Stack Build

Frontend

Next.js 16React 19TypeScriptTailwind v4Framer Motion

Backend

Route HandlersNode.js 20+Zod Validation

Data & Auth

PostgreSQL (raw SQL)JWT (jose)bcrypt

Extension Points

Payments (scaffolded)Video / WebRTC (scaffolded)Vercel-ready
How We Delivered

Schema-First, Role-Aware

  1. 1

    Schema & Migrations

    Raw parameterised SQL with a transactional migration runner — no ORM, full control of the data layer.

  2. 2

    Auth & RBAC

    Custom JWT and bcrypt with role guards, plus a fast cookie gate in the Next 16 proxy convention.

  3. 3

    Patient Flows

    Discovery, real-time booking, the health-records vault and patient profile management.

  4. 4

    Doctor & Admin Dashboards

    Doctor schedule and earnings tools, plus admin analytics, verification and appointment oversight.

  5. 5

    Design System

    The clinical theme, the animated logo, and a no-flash light/dark mode across every screen.

The Result

What Was Built

4

Role Dashboards

10

Specialties Seeded

14-Day

Rolling Slot Inventory

6

Extension Points

  • A complete discovery → booking → consultation → records flow, working end to end on seeded data.

  • Double-booking protection lives in the data layer, so it holds regardless of what the client sends.

  • Four distinct role dashboards from a single codebase, gated by real role checks rather than hidden UI.

  • No production traffic and no client: this is a reference build, and every number on this page is seed data.

FAQ

Frequently Asked Questions

Yes. This build runs four role-aware dashboards — patient, doctor, hospital admin and super admin — from a single codebase. Each role gets its own experience, and access is decided by real role checks rather than by hiding buttons in the UI.

Building a booking or telehealth platform?

We design and build role-aware, real-time booking products end to end — from schema to a polished, animated UI.

Talk to a Delivery Expert