My Dental & Skin Clinic OS: A Connected Clinic Platform.
A phase-by-phase look at a clinic operating system built at ATFRO, from authentication and access control to appointments, queues and booking payments.
What It Is
My Dental & Skin Clinic OS is the foundation of a connected clinic operating system, built by ATFRO for My Dental & Skin Clinic. It is built in phases, with each step documented and reviewed before the next one starts.
This write-up covers the structure and the technology. It contains no patient data or credentials.
Built in Phases
The work follows an approved roadmap. The project documents describe a Feature Blueprint as the functional source of truth and a Roadmap as the sequencing source of truth. Steps completed so far:
- Phase 1. Architecture and project setup, repository and hosted Supabase configuration, authentication schema and account lifecycle, email and phone OTP with cookie sessions and role-based routing, the admin control centre and clinic configuration, doctor management, staff and access management, and security, staging and recovery readiness.
- Phase 2. Patient identity, patient master and family accounts, appointment calendar, OPD queue management, and booking payments with reminders and a basic WhatsApp foundation.

What Is Deliberately Not Built Yet
The repository states its limits plainly. It does not yet implement clinical encounters, prescription writing, pharmacy, full billing and invoicing, real payment provider settlement, real WhatsApp delivery or final clinical workflows. Saying what is out of scope is part of building medical software responsibly: each of those areas needs its own review before it ships.
Technology
Next.js App Router, React and TypeScript in strict mode. Tailwind CSS for the interface. Supabase for PostgreSQL, Auth, Storage and row level security. Zod for validation, Vitest for unit tests and a Playwright smoke test, with ESLint and Prettier for code quality. The project needs Node.js 22 and a Docker-compatible runtime for local Supabase.
Safe Defaults
Secrets stay out of the repository: environment values live in a local file that is never committed, and the repository ships only an example file. Row level security in Supabase keeps patient records behind per-role rules, and the roadmap includes a step for security, staging and recovery readiness.
Why Phases Work
Clinic software touches people's health information, so each layer is proven before the next one is added. Authentication and permissions came before patient records. Patient records came before appointments. Appointments came before payments.