Route Coverage Table
Route Coverage Table
Section titled “Route Coverage Table”Who this is for: engineers/agents auditing this wiki for gaps; not needed by patients or staff.
This table maps every top-level route/page folder and every api/ folder in both apps to the chapter that documents it, so gaps are auditable. “N/A” entries are technical-only (build artifacts, dev-only tools, generic infra) and intentionally have no patient/staff-facing chapter. Every row below has been individually opened and read — none are inferred from folder names alone.
Verified findings from the full-coverage pass
Section titled “Verified findings from the full-coverage pass”A second, deeper pass opened every remaining unread file behind this table’s row mappings. It found several things worth knowing before treating this documentation as complete and production-ready:
- Dead/commented-out routes exist alongside live ones and were initially indistinguishable from folder names alone:
parkingmd-care-portal/src/app/api/webhooks/stripe/route.ts,.../webhooks/calcom/care-team/route.ts, and.../task/route.tsare all fully commented out with no exported handler. The live equivalents areparkingmd-patient-portal/src/app/api/webhooks/stripe/route.ts(payments) and.../create/patient-task/route.ts+.../admin/tasks/new/route.ts(case creation). Documented in Payments and Care Team Workflows respectively. - A confirmed-dead integration, not a live one:
parkingmd-care-portal/src/app/api/webhooks/calcom/route.ts(and matchingcalComEmail/calComUrl/calComWebhookLogsdatabase fields) reference a third-party scheduling tool (“Cal.com”). An initial pass of this wiki incorrectly called this “the live appointment-booking handler” — it is not. The actual patient-facing booking flow is fully custom code with no outside calendar product involved; the Cal.com route is a legacy leftover. Corrected in Scheduling & appointments. - A real permissions gap:
parkingmd-care-portal/src/app/api/templates/visit-notes/route.tsis missing thesuperAdminwrite-restriction every sibling template route has. Documented as an open question in Messaging & notifications. - Duplicate live code:
/api/retell/*and/api/integrations/retell/*are identical route copies (one forwards to the other via a Next.js rewrite);/api/labels/task-labelsand/api/labels/tasksare byte-identical duplicates. Both noted in Messaging & notifications and Care Team Workflows. - Two services have structurally different funnels than every other service (branching qualification quiz + lead-capture for one placard variant; a savings-estimate-and-plan-selection detour for Property Tax Exemption, with two orphaned pages that nothing currently links to). Documented in Services Catalog.
- Three checkout/summary page designs share one backend in the patient portal — not divergent logic, just three presentations. Documented in Payments.
- One admin screen is read-only despite full CRUD support in the backend (
patient-state-interests). Documented in Admin, Analytics & Multi-Brand Support.
Patient portal — src/app/
Section titled “Patient portal — src/app/”| Route/folder | Chapter |
|---|---|
(auth)/login, signup, _signup, verify-token |
Account Access; Onboarding & Signup |
(dashboard)/documents |
Document Generation & E-Signature |
(dashboard)/feedback |
Reviews & Feedback |
(dashboard)/guides |
Guides (Help & Informational Content) |
(dashboard)/messages |
Messaging & Notifications |
(dashboard)/profile |
Account Access |
(dashboard)/referrals |
Referrals |
(dashboard)/services |
Services Catalog |
(dashboard)/treatments |
Services Catalog |
(services)/* (all service funnels) |
Onboarding & Signup; Services Catalog |
cart-checkout |
Payments, Checkout, Coupons & Upsells |
coming-soon |
Onboarding & Signup (state not yet available) |
discover/* |
Pre-Signup Eligibility Check (“Discover”) |
get-started |
Onboarding & Signup |
referral/[referralCode] |
Referrals |
task/[taskid]/book, schedule, reschedule |
Scheduling & Appointments |
task/[taskid]/intake/*, pre-intake, post-intake |
Form Filling & Form Processing |
task/[taskid]/mental-health-questionnaire* |
Form Filling & Form Processing |
task/[taskid]/id-upload, medical-records-upload |
Form Filling & Form Processing |
task/[taskid]/checkout*, payment-processing*, upsell-checkout, upsell-payment-processing |
Payments, Checkout, Coupons & Upsells |
task/[taskid]/custom-document |
Document Generation & E-Signature |
task/[taskid]/summary*, status, continue |
Care Team Workflows (case status) |
api/address-autocomplete |
N/A (form utility) |
api/auth/[...path] |
Account Access |
api/dev/fill-intake |
N/A (dev-only tool) |
api/discovery/analyze |
Pre-Signup Eligibility Check (“Discover”) |
api/events |
Messaging & Notifications |
api/file-preview |
Document Generation & E-Signature |
api/get-patient-details |
Account Access |
api/pdf |
Document Generation & E-Signature |
api/placard-flow/free-guide |
Services Catalog |
api/review-media/upload |
Reviews & Feedback |
api/upload, uploads |
Form Filling & Form Processing |
api/webhooks/stripe |
Payments, Checkout, Coupons & Upsells |
Care portal — src/app/
Section titled “Care portal — src/app/”| Route/folder | Chapter |
|---|---|
(auth)/login, reset-password |
Account Access |
(landing) |
N/A (marketing page) |
admin/agreement-documents |
Consent & Agreement Documents |
admin/ai-analyses, ai-jobs |
Admin, Analytics & Multi-Brand Support |
admin/all, analytics/* |
Admin, Analytics & Multi-Brand Support |
admin/assessments, patient-responses |
Form Filling & Form Processing |
admin/brands |
Admin, Analytics & Multi-Brand Support |
admin/create, tasks/* |
Care Team Workflows |
admin/documents |
Document Generation & E-Signature |
admin/guides |
Guides (Help & Informational Content) |
admin/integrations, twilio, retell-call-logs |
Messaging & Notifications; Admin |
admin/licenses |
Provider Credentialing & State Licensing |
admin/logs |
Admin, Analytics & Multi-Brand Support |
admin/notification-templates |
Messaging & Notifications |
admin/patient-card-test |
N/A (internal test tool) |
admin/patient-payouts |
Referrals; Reviews & Feedback |
admin/patient-state-interests |
Admin, Analytics & Multi-Brand Support (demand signal) |
admin/patients |
Admin, Analytics & Multi-Brand Support |
admin/payment-history |
Payments, Checkout, Coupons & Upsells |
admin/priority, provider-filters, threads |
Care Team Workflows (saved filters/views) |
admin/providers |
Provider Credentialing & State Licensing |
admin/referral-earnings |
Referrals |
admin/reviews/* |
Reviews & Feedback |
admin/settings |
Admin, Analytics & Multi-Brand Support |
care/active, contacted, incorrect, insufficient, overdue, unresponsive, received, resolved, reviewed |
Care Team Workflows |
care/consent-overdue |
Consent & Agreement Documents; Care Team Workflows |
care/dashboard |
Care Team Workflows |
care/emails, faxes, notifications, templates |
Messaging & Notifications |
care/settings |
Admin, Analytics & Multi-Brand Support |
patients (dispute search) |
System Overview (dispute handler role) |
printer/* |
Printing & Fulfillment |
provider/[doctorId]/* |
Care Team Workflows (provider workflow); Scheduling & Appointments |
template |
N/A (internal template preview tool) |
api/admin/doctors, feedback-config, gift-card-logs, guide-config |
Admin; Guides; Reviews & Feedback |
api/admin/patient-payouts, referral-config, referral-earnings |
Referrals |
api/admin/patients, tasks, treatments-page-settings, upsell-config |
Care Team Workflows; Payments |
api/agreement-documents |
Consent & Agreement Documents |
api/ai/* |
Document Generation & E-Signature (AI-assisted analysis); Pre-Signup Eligibility Check |
api/analytics, fetch-analytics, metrics-analytics |
Admin, Analytics & Multi-Brand Support |
api/assessment-categories, assessments, patient-assessments, service-assessments |
Form Filling & Form Processing |
api/available-doctor, provider/* |
Scheduling & Appointments; Care Team Workflows |
api/brands |
Admin, Analytics & Multi-Brand Support |
api/calls/*, retell*, integrations/retell/*, telnyx, twilio |
Messaging & Notifications |
api/care/* (requests, dashboard, counts, filters, notifications, emails, faxes, settings, calling) |
Care Team Workflows; Messaging & Notifications |
api/coupons |
Payments, Checkout, Coupons & Upsells |
api/create/patient-task |
Onboarding & Signup |
api/crisp/create-ticket |
Care-Team Tools Beyond the Portal |
api/discovery/* |
Pre-Signup Eligibility Check (“Discover”) |
api/doctor/shipping-label, generate-shipping-label |
Printing & Fulfillment |
api/documents/* |
Document Generation & E-Signature |
api/edgestore |
N/A (file-storage plumbing, covered generally under Document Generation) |
api/expired-task-cron, schedule-reminders, send-intake-incomplete-reminders |
Care Team Workflows; Messaging & Notifications |
api/extension/* |
Care-Team Tools Beyond the Portal |
api/files/* |
Form Filling & Form Processing; Document Generation & E-Signature |
api/followups/* |
Care Team Workflows |
api/generate-* (med-card, prescription, cover-letter, envelope, signature, physician-credentials, checkout-link, csv, token) |
Document Generation & E-Signature |
api/ghl/* |
Care-Team Tools Beyond the Portal |
api/guides/* |
Guides (Help & Informational Content) |
api/inbox-analytics-cron |
Admin, Analytics & Multi-Brand Support |
api/labels/* |
Care Team Workflows |
api/medical-record-requests |
Document Generation & E-Signature (open question: distinct workflow, not exhaustively documented) |
api/notification-templates/* |
Messaging & Notifications |
api/patient, patients |
Account Access; Care Team Workflows |
api/payments, send-payment-link, send-payment-failed-notification, send-discount-code |
Payments, Checkout, Coupons & Upsells |
api/pdf-debug |
N/A (dev-only tool) |
api/printer/* |
Printing & Fulfillment |
api/referral-earnings-cron |
Referrals |
api/rephrase-narratives |
Document Generation & E-Signature (AI-assisted drafting) |
api/review-reminders, reviews/*, trigger-review-reminder |
Reviews & Feedback |
api/save-form-draft |
Form Filling & Form Processing |
api/services |
Services Catalog |
api/task, tasks/* |
Care Team Workflows |
api/templates/* |
Messaging & Notifications; Care Team Workflows |
api/v1/external/* |
External Partner API |
api/verify |
Document Generation & E-Signature (document authenticity check) |
api/webhooks/calcom, sendgrid, stripe, telnyx |
Scheduling & Appointments; Messaging & Notifications; Payments |
api/zendesk/* |
Care-Team Tools Beyond the Portal |
Where this comes from
Section titled “Where this comes from”- Full
src/app/**/page.tsxandsrc/app/**/route.tslistings for bothparkingmd-patient-portalandparkingmd-care-portal, cross-checked against every chapter’s “Where this comes from” section.