Effective followup is critical for obtaining complete case information and ensuring high-quality safety data. VIGIA automates followup scheduling, tracks communications, and manages missing data requests.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/LuisCastilloCruz/VIGIA/llms.txt
Use this file to discover all available pages before exploring further.
Overview
VIGIA’s followup system provides:- Automated Scheduling: ICH E2D guideline-compliant followup timelines (Day 0, 30, 60, 90)
- Multi-channel Communication: Email, SMS, WhatsApp
- Missing Data Detection: AI-powered identification of incomplete fields
- Thread Management: Complete communication history per case
- Status Tracking: Pending, Sent, Responded, Completed
Followup Workflow
Initiating Followup
Navigate to Followup Tab
Click Seguimiento (Followup) tabThe interface shows:
- Message Thread: All sent and received messages
- Followup Plan: Scheduled attempts and their status
- Missing Data: Detected incomplete fields
- Quick Actions: Send message, schedule attempt, mark complete
Review Missing Data
VIGIA automatically detects missing critical fields:The UI displays:
Información Faltante (4 campos)
Paciente:
- Peso
- Fecha de nacimiento exacta
- Dosis exacta y frecuencia
- Vía de administración
- Fecha de resolución
- Desenlace actual
Generate Followup Message
Click Generate Request. The system auto-generates a message:Example output:
Select Channel
Choose communication channel based on The system extracts contact info:
reportante_contacto:Available channels:Send Message
Click Send. The system:
-
Sends via selected channel:
-
Logs outbound message:
-
Updates case status:
- Changes
estadofrom “Pendiente” to “En proceso” - Records followup attempt
- Changes
-
Email threading: Uses RFC 2822 headers for thread continuity:
Automated Followup Plans
Creating a Followup Plan
VIGIA can automatically schedule multiple attempts:Assign Plan to Case
In the Seguimiento tab, click Apply Plan > select template:The system calculates absolute dates:
Message Thread Management
Viewing Communication History
The Seguimiento tab displays a chronological thread:Processing Inbound Responses
When a reporter responds via email:Multi-Channel Support
Email (Recommended)
Advantages:- Threaded conversations (In-Reply-To headers)
- Attachment support
- Professional appearance
- Audit trail
SMS
Use cases:- Quick reminders
- No email available
- Rural areas with limited internet
- 160 character limit (split into multiple for longer messages)
- No attachments
- Higher cost per message
- Configure SMS gateway in Admin > Settings > SMS
- Supported providers: Twilio, AWS SNS, local SMS gateway
- Set
reportante_contactoto phone number format:+51999999999
- High open rates (98%)
- Multimedia support (images, documents)
- Popular in Latin America
- Read receipts
- WhatsApp Business API account
- Approved message templates (for proactive outreach)
- Get WhatsApp Business API credentials
- Configure webhook:
https://your-vigia.com/api/v1/webhooks/whatsapp - Create message templates in WhatsApp Manager
- Approve templates (required for first contact)
Followup Status Tracking
Status Values
| Status | Meaning | Actions |
|---|---|---|
| Pending | Scheduled but not sent | Send now, Reschedule, Skip |
| Sent | Message delivered | Wait for response, Resend |
| Responded | Reporter replied | Update case, Mark complete |
| Completed | Info received and case updated | Archive |
| Skipped | Manually skipped | Re-activate if needed |
| Failed | Delivery failed (bounce, invalid address) | Update contact, Retry |
Updating Status
Automatically:Pending→Sentwhen message is deliveredSent→Respondedwhen reply received (email threading)Responded→Completedwhen case updated
Closing Followup
When to Close
Close followup when:- ✅ All missing information obtained
- ✅ Case is complete and ready for reporting
- ⏰ Maximum attempts reached (e.g., 90 days, no response)
- 🚫 Reporter explicitly declined to provide more info
- 🚫 Reporter is unreachable (invalid contact info)
Closure Workflow
Quality Assurance
Before closing followup:All critical missing fields addressed or documented as unavailable
Minimum 2 attempts made (Day 0 + Day 30) for serious cases
Final status clear: Complete, No Response, or Declined
Closure notes document outcome and any outstanding issues
Case ready for next workflow step (causality, reporting)
Troubleshooting
Reporter not receiving emails
Reporter not receiving emails
Check:
- Email address correct in
reportante_contacto - Check spam/junk folder (ask reporter)
- Verify SMTP send logs:
backend/logs/mail.log - Test email delivery:
POST /api/v1/admin/mail/test
- Update email address if incorrect
- Add VIGIA domain to reporter’s whitelist
- Use alternative channel (SMS, WhatsApp)
Email thread not linking correctly
Email thread not linking correctly
Cause: Missing or incorrect
In-Reply-To headerFix:- Check that
external_idis saved when sending - Verify mail server supports RFC 2822 headers
- Manual linking: In message thread, click Link and select parent message
Scheduled followups not sending
Scheduled followups not sending
Check:
- Cron job running:
systemctl status vigia-followup-dispatcher - Logs:
backend/logs/followup_dispatch.log - Attempt status: should be “pending” not “skipped”