Md. Jamil Hossain

Healthcare

Clinic appointment scheduler

Patients find a doctor, see open times and book, change or cancel appointments; clinic staff see the day's schedule at a glance.

Screenshot of Clinic appointment scheduler
Fig. 1 · clinic-appointment-scheduler-kappa.vercel.app, captured from the live site

01 Problem

Small clinics still book by phone, which means double bookings and no view of a provider's real availability.

02 Approach

  1. Next.js App Router with server actions over a PostgreSQL schema managed by Drizzle, falling back to an embedded PGlite database for the demo.
  2. Availability is computed from provider schedules and existing bookings, with conflicts prevented in the database rather than only in the UI.
  3. Appointments and providers are also exposed as FHIR R4 resources, and an optional AI intake helper drafts a reason-for-visit note for the patient to edit.

03 Evidence

  • Unit and component tests with Vitest
  • Browser tests with Playwright, run in CI
  • FHIR R4 Appointment and Practitioner endpoints

The repository README explains how to run each test suite, and its continuous integration history is public.