The Challenge
A primary care group with three locations was managing patient intake through a combination of paper forms, faxes, and a legacy scheduling system from 2009. Staff were re-entering patient data by hand multiple times per visit cycle. HIPAA compliance was partially maintained but undocumented.
They needed a unified portal covering: online scheduling, digital intake forms, provider notes, prescription tracking, and insurance verification — with a patient-facing interface for appointment management and secure messaging.
Compliance First
The first three weeks were not writing a line of application code. They were:
- HIPAA gap analysis — documenting existing data flows, access controls, and storage practices
- BAA agreements — signing Business Associate Agreements with every third-party vendor in the stack (AWS, SendGrid, Twilio)
- Architecture review — ensuring all PHI (Protected Health Information) stays within the AWS HIPAA-eligible services boundary
This groundwork is where healthcare projects fail when rushed. We don't rush it.
Architecture
Backend: Laravel 11 on AWS ECS (Fargate). All PHI stored in AWS RDS MySQL with encryption at rest (AES-256) and in transit (TLS 1.3). S3 for document storage with server-side encryption and private ACLs — no public URLs, ever.
Frontend: Vue 3 + TypeScript SPA with role-based rendering (patient view, provider view, front-desk view, admin view). Inertia.js for the server-driven routing — keeps the session handling in Laravel where the security controls are better established.
Authentication: Two-factor authentication required for all staff roles (TOTP via Laravel Fortify). Patients authenticate with email + date of birth (no password to manage for low-tech users).
Audit logging: Every read and write of PHI is logged to a separate append-only audit table. Immutable once written, exported to S3 weekly. This satisfied the HIPAA audit control requirement out of the box at the first compliance review.
Secure messaging: Patient-provider messaging built on a custom encrypted message store (not a third-party chat widget). Messages are encrypted at the application layer before storage, decrypted only on read by the authorized party.
Features Built
- Patient portal: Appointment booking, intake forms (digital, auto-populated on return visits), secure messaging, prescription refill requests, visit history
- Provider dashboard: Daily schedule view, patient queue, note templates, prescription tracker, lab result upload
- Front desk tools: Check-in workflow, insurance verification status, copay collection via Stripe (PCI scope minimized via Stripe Elements)
- Admin: User management, location management, compliance reports, audit log viewer
Outcome
Deployed to all 3 locations over a 3-week staggered rollout. Training was a half-day per location — the interface was simple enough that front desk staff were comfortable within 2 hours.
- Paper intake forms: eliminated entirely
- Average check-in time: reduced from 14 minutes to 4 minutes
- HIPAA audit readiness: fully documented, passed external review
"We'd tried to build this with another vendor two years prior and it fell apart. PerfectXPERTS took compliance seriously from day one. That's what made the difference."
What We Learned
Vue + Inertia.js is significantly underrated for healthcare applications. The server-side session management keeps auth logic in Laravel where it's battle-tested, while still delivering a modern SPA experience. We'd use this combination again for any compliance-sensitive web application.
The staggered rollout (one location at a time, with a week between each) was the right call. Issues found at location 1 were resolved before locations 2 and 3 ever saw them. Budget time for this — a parallel "big bang" launch across all locations would have been significantly riskier.