Prototype Specification
Source: starlight-pediatrics.netlify.app Explored: March 13, 2026 Author: Deepak Surana (Builder/CPO) Practitioner: Dr. Yogini Prajapati
Executive Summary
Starlight Pediatrics EMR is a comprehensive patient management system for a Direct Primary Care (DPC) pediatric practice. The prototype is a single-page application (SPA) built with vanilla HTML/CSS/JavaScript, using browser localStorage for persistence. It manages 17 active patients across 5 constellation-themed subscription tiers, tracks a 4-stage prospect pipeline, automates wellness check scheduling based on AAP guidelines, handles billing with automatic age-based tier transitions, and provides revenue analytics with growth simulation.
The system is remarkably complete for a prototype — it includes email composition via EmailJS, CSV export, JSON backup/restore, a Wix lead capture embed, Google Review tracking, a nurture email sequence for prospects, and a full patient communication journey mapped from newborn through childhood.
Navigation Structure
Starlight Pediatrics Patient Manager
├── Dashboard (home view)
│ ├── KPI Cards (patients, MRR, avg revenue, action items)
│ ├── Upcoming Actions (urgent + soon)
│ ├── Unpaid This Month
│ └── This Month's Wellness Checks
├── Patients
│ ├── Active tab (sortable table)
│ ├── Prospects tab
│ ├── All tab
│ ├── [Patient Detail View] (slide-in panel)
│ │ ├── Contact Info
│ │ ├── EMR Actions
│ │ ├── Wellness Timeline
│ │ ├── Payment Status + Google Review
│ │ ├── Visit Log (office + home visits)
│ │ └── Notes
│ ├── [Add Patient Modal]
│ └── [Edit Patient Modal]
├── Pipeline
│ ├── Kanban board (4 stages)
│ ├── KPI Cards (total, ready, due soon, scheduled)
│ └── [Add Prospect Modal]
├── Billing
│ ├── KPI Cards (MRR, ARR, plan changes)
│ └── Billing table (all patients)
├── Wellness
│ └── Month-by-month wellness check schedule
├── Action Items
│ ├── All | Billing Changes | Wellness Checks | Follow-ups tabs
│ └── Filterable action list with scheduling
├── Revenue
│ ├── View toggles (2026, 2025, All Time)
│ ├── MRR forecast chart
│ ├── Revenue by plan tier
│ ├── 12-month projection table
│ ├── Growth Simulator (slider-based)
│ └── Historical revenue (2025 data)
├── Reminders
│ ├── Email settings configuration
│ ├── Monthly email preview
│ └── Send via EmailJS / mailto / clipboard
├── Messages
│ ├── Patient Journey (lifecycle communication map)
│ ├── Send Now (due reminders)
│ ├── Templates (editable message templates)
│ ├── Reviews (Google Review tracking)
│ ├── Nurture (prospect drip sequence)
│ └── Sent (email log)
├── Pricing Guide
│ └── 5-tier plan descriptions with benefits
├── Practice Report
│ └── Printable practice summary
└── Data & Backup
├── Download backup (JSON)
├── Restore from backup
└── Wix embed code for lead capture
Technology Stack (Prototype)
| Layer | Technology |
|---|---|
| Frontend | Vanilla HTML/CSS/JavaScript (single index.html) |
| Data Storage | Browser localStorage |
| EmailJS (service integration) | |
| Hosting | Netlify (static site) |
| Routing | SPA with data-page attribute toggling |
| Charts | CSS-based bar charts (no chart library) |
Key Business Logic
Automatic Tier Transitions
Patients automatically transition between pricing tiers based on age:
- Orion ($295/mo): 0-2 months (newborns)
- Lyra ($225/mo): 3-12 months
- Sirius ($175/mo): 1-4 years
- Pegasus ($150/mo): 5-18 years
- Polaris ($100/mo): 19-22 years
The system calculates the next transition date and generates billing change action items with specific EMR instructions.
Wellness Check Schedule
Based on AAP pediatric visit guidelines at months: 2, 4, 6, 9, 12, 15, 18, 24, 30
The system automatically generates wellness check reminders relative to each patient's date of birth and color-codes urgency.
Prospect Pipeline
4-stage Kanban pipeline:
- Inquiry - Initial contact
- Meet & Greet - First meeting with Dr. P
- Scheduled Visit - Visit booked
- Ready to Enroll - Convert to active patient
Family Billing
- 25% sibling discount
- $500/month family cap
- 5% annual prepay discount
- $100 one-time enrollment fee per family
- $50 travel fee for in-home visits (3mo+)
Modal Inventory
| Modal | Trigger | Purpose |
|---|---|---|
| Add Patient | "+ Add Patient" button | Create new active patient |
| Add Prospect | "+ Add Prospect" button | Create pipeline prospect |
| Edit Patient | "Edit" button on patient row | Modify patient details |
| Patient Detail | Click patient name | Full patient profile view |
| Schedule | "Schedule" button on actions | Mark wellness check as scheduled |
| Note | "+ Add Note" in patient detail | Add clinical/admin note |
| Visit | "+ Log Visit" in patient detail | Log office visit |
| Home Visit | "Home Visit" in patient detail | Log home visit with checklist |
| Template Editor | "+ New Template" or "Edit" | Create/edit message templates |
| Email Preview | Send email actions | Preview email before sending |
Implementation Complexity Assessment
Already Standard Patterns
- CRUD for patients, prospects, templates
- Sortable/filterable tables
- Modal forms with validation
- Tab-based navigation
- Export to CSV/JSON
Needs Careful Implementation
- Automatic tier transition calculations
- Wellness check schedule generation (AAP guidelines)
- Revenue forecasting with tier transition modeling
- Nurture sequence state machine
- Patient journey lifecycle mapping
- Family grouping with discount calculations
Net New / Complex
- EmailJS integration (or equivalent email service)
- Wix website lead capture integration
- Google Review tracking and nudge system
- Growth simulator with interactive sliders
- Home visit checklist system
- Printable practice report generation