Flagship Case Study
MediCare — Multi-Tenant Healthcare SaaS Built with Laravel 13 & Livewire
MediCare is a modern healthcare SaaS platform designed around clinics, patients, appointments, clinical documentation, staff roles and traceable workflows. The project explores how to build a Laravel-first product with multi-tenancy, RBAC, activity timelines, clinical permissions, structured SOAP notes, document management and SaaS-ready staff onboarding.
Role
Fullstack Laravel Engineer
Stack
Laravel 13, Livewire, Tailwind CSS, AlpineJS, MySQL, Docker, Flux UI
Project Type
Multi-tenant healthcare SaaS
Overview
MediCare was built as a fullstack healthcare SaaS project focused on clinical workflows, operational visibility and maintainable architecture. Instead of approaching the product as a basic patient CRUD, the system was designed around clinics, staff members, patients, appointments, clinical notes, documents and activity history.
The goal was to explore how a modern Laravel application could model a realistic healthcare domain while keeping the implementation controlled: prepared for future growth, but without introducing unnecessary enterprise complexity too early.
Core principle: MediCare is not organized around isolated database tables. It is organized around clinical workflows, tenant boundaries, role-based permissions and a patient-centered activity timeline.
Multi-Tenant Healthcare Architecture
Clinic as Tenant
Every patient, appointment, clinical note, document and activity log belongs to a clinic. This keeps tenant isolation explicit and prevents data from leaking across organizations.
Membership-Based RBAC
Roles live in clinic memberships instead of directly on users. This allows the same user to belong to multiple clinics with different responsibilities in the future.
Activity Timeline
Important actions generate structured activity records that power both patient timelines and dashboard activity feeds.
Clinic
├── ClinicMembership
├── Patient
│ ├── Appointment
│ ├── ClinicalNote
│ ├── ClinicalDocument
│ └── ActivityLog
└── Staff Invitations
Dashboard & Analytics
The dashboard was designed to answer two different questions: what needs attention today, and how the clinic is performing operationally. It combines KPIs, clinical activity, doctor workload, patient status distribution and upcoming appointments.
Patient Workspace
The Patient Workspace is the center of MediCare. It brings together the patient status, assigned doctor, appointment history, clinical notes, documents and activity timeline into a single operational view.
This screen is where the project moves beyond CRUD. The patient becomes a living clinical case, with traceable events and role-aware access to sensitive information.
Clinical Timeline & Activity System
MediCare uses a centralized activity system to record important domain events. The same system powers patient timelines, dashboard recent activity and audit-oriented views.
Events
Patient created, appointment scheduled, clinical note added, doctor assigned and document uploaded.
Visibility
Operational and clinical activity can be filtered according to the user's role and permissions.
Severity
Activity severity adds visual hierarchy to important workflow changes.
Clinical Depth
SOAP Clinical Notes
Clinical notes were structured using the SOAP format: Subjective, Objective, Assessment and Plan. This makes clinical documentation more intentional than a generic free-text note.
Clinical Documents
Patients can have private documents attached to their history, including PDFs, medical reports, lab results and images. Access is protected through policies and every upload can be reflected in the activity timeline.
Product Experience
Version 2 focused on transforming MediCare from a collection of workflows into a cohesive product experience. Operational activity, upcoming appointments and clinical events are surfaced through dedicated dashboard panels, while global search provides instant access to patients and appointments from anywhere in the application.
Appointments & Activity
Global Search
Staff Management & SaaS Platform Foundations
MediCare includes staff management features that move the project closer to a real SaaS platform. Clinics can manage members, roles and invitations while keeping sensitive clinical permissions separated from operational responsibilities.
Technical Decisions
- Actions over fat components: business workflows such as creating patients, scheduling appointments or uploading documents are handled through dedicated action classes instead of being buried inside Livewire components.
- Clinic-scoped tenancy: every important model is scoped through the active clinic context, keeping tenant boundaries explicit and predictable.
- Permission Matrix: role permissions are centralized in code, avoiding repeated role checks across policies and views.
- Activity Engine: the timeline is powered by structured domain events rather than hardcoded UI-only messages.
- Operational vs clinical separation: administrative users can work with scheduling and patient operations without automatically accessing sensitive clinical content.
- Livewire as UI orchestration: Livewire powers interactivity while Laravel actions, policies and models keep the domain logic clear.
Product Evolution
V1
Operational Foundation
Clinics, patients, appointments, clinical notes, activity timeline and tenant boundaries.
V2
Product Experience
Analytics dashboard, global search, calendar, timeline UX and product polish.
V3
Clinical Depth
SOAP notes, clinical documents, activity severity, permission matrix and staff management.
V4
SaaS Platform
Staff invitations, onboarding flows and future subscription-ready SaaS foundations.
Lessons Learned
MediCare reinforced the importance of modeling workflows before screens. Once the patient became the center of the system, appointments, notes, documents, status changes and activity logs started to connect naturally.
The project also highlighted the value of separating product layers: operational workflows, clinical information, permissions and SaaS management each have different responsibilities and should not be mixed casually.
The biggest lesson was that good architecture does not always mean adding more complexity. MediCare follows a prepared but minimal approach: enough structure to grow, without turning the product into an overengineered system too early.
Future Improvements
MediCare already provides a strong foundation for a healthcare SaaS platform. Future iterations could expand the system with notifications, multi-clinic users, subscription plans, billing, document previews, advanced audit exports and external calendar integrations.