Full-StackFeatured

Healthcare Clinic Management — Clinic Admin Panel (Full-Stack)

TERABIT IT

The Full-Stack clinic-facing counterpart to the Healthcare Clinic Management Super Admin Platform — built entirely with Next.js and Firebase. Individual clinic branches manage their full day-to-day operations through a real-time Firestore-backed dashboard. Firebase handles the complete backend layer: Auth, Firestore, and Security Rules enforce strict per-clinic data isolation with no cross-branch access possible.

Tech Stack

Next.jsTypeScriptFirebase AuthFirestoreFirebase Security RulesShadcn UITailwind CSSReact Query

Key Features

  • Appointment scheduling with calendar view and conflict detection
  • Patient record management with search and filtering
  • Billing and invoice generation per patient visit
  • Real-time notification system for new appointments and alerts
  • Staff shift management and attendance tracking
  • Reports and analytics for clinic operations
  • Role-separated views for Clinic Admin vs. Staff

Problem Statement

Clinic staff needed a user-friendly operational interface to manage day-to-day activities — without the complexity of the Super Admin panel. The system needed to be role-aware, showing only relevant data and actions per staff level.

Architecture Overview

Shares the same Firebase backend as the Super Admin Platform. Next.js App Router with dedicated route groups for Clinic Admin vs. Staff roles. Firestore security rules ensure clinic staff can only read/write their own clinic's data. Shadcn UI components with Tailwind CSS provide a consistent, accessible interface.

Challenges

  • Sharing a Firebase project with the Super Admin while enforcing strict data isolation
  • Building a calendar UI that handles appointment conflicts and real-time updates simultaneously
  • Designing a billing flow that integrates with the Super Admin invoice approval system

Solutions

  • Firebase Security Rules with clinic ID scoping prevent any cross-clinic data access
  • Used Firestore transaction writes for appointment booking to prevent double-booking races
  • Implemented a draft → submitted → approved invoice lifecycle that mirrors the Super Admin approval workflow

Results & Impact

  • Clinic staff can manage full daily operations from a single interface
  • Appointment conflicts reduced to zero through real-time availability checks
  • Billing workflow directly connected to the Super Admin approval chain — no manual handoff needed