MediFlow
Pro
A comprehensive, enterprise-grade Hospital Management System built on a full-stack GraphQL architecture. Manages patient lifecycles from onboarding to clinical consultation — with Role-Based Access Control across four distinct user levels and Prisma transaction guarantees on every critical operation.
Tech Stack
Architecture
User Roles
System Modules
Key System Flows
Receptionist searches by NIC. Prisma upsert checks if patient exists — updates their record if found, creates a new one if not.
Regex validators run on every field: no numeric data in name fields, no letters in phone fields. Invalid inputs are rejected before DB write.
Appointment is booked against a DoctorSchedule. System checks bookedCount vs maxPatients — returns an error if the session is full.
Receptionist confirms the booking. Prisma $transaction wraps the appointment insert + bookedCount increment — both succeed or neither does.
Patient receives an Appointment ID. Bill record is created with status NOT_PAID and linked to the appointment for downstream settlement.
Engineering Highlights
View Source
View on GitHub