Automated pre-care and post-care sequences for every procedure
Care Plans automate the entire patient care lifecycle around each procedure — from initial preparation through long-term follow-up.
Internal system — no third-party services required. All messaging routes through Chatwoot (WhatsApp/website widget) or Telegram. Escalation alerts go to the Oshun clinical team via Telegram.
Care Plans are the backbone of the middle and late patient journeys:
src/actions/care/plans.js — Core care plan orchestration. Key exports: startCarePlan() (line 181), processCarePlanStep() (line 237), cancelCarePlan() (line 371), getActiveCarePlans() (line 401), logCareEvent() (line 49).src/actions/care/escalation.js — Detects and routes clinical escalations. Key exports: detectEscalation() (line 43), detectEscalationKeywords() (line 32), notifyEscalation() (line 103).src/actions/care/documents.js — Pre-care and aftercare guide document management.src/actions/care/metrics.js — Care plan completion rates and outcome tracking.src/nurture.js — Sequence engine that powers timed step delivery. Key exports: enrollContact(), createSequence(), activateSequence(), pauseSequence().The following 6 pre-care guides have been approved and are available in the system:
Missing Pre-Care Guides — not yet created, pending Dr. Rockhead sign-off before any auto-send:
The following 4 aftercare guides have been approved and are in active use:
care_plans — Active and historical care plans per contactcare_events — Log of every step delivered and patient responsebooking_reminders — Pre-appointment reminder schedulingnurture_sequences — Sequence definitions (steps, timing, conditions)nurture_steps — Individual step content and delay configurationnurture_enrollments — Per-contact enrollment state and progress