curl --request POST \
--url https://api.example.com/api/v1/icsr/{icsr_id}/followup/send \
--header 'Content-Type: application/json' \
--data '
{
"channel": "<string>",
"body": "<string>"
}
'{
"items": [
{
"id": 123,
"icsr_id": 123,
"channel": "<string>",
"direction": "<string>",
"body": "<string>",
"external_id": "<string>",
"created_at": "<string>"
}
],
"total": 123,
"id": 123,
"icsr_id": 123,
"channel": "<string>",
"direction": "<string>",
"body": "<string>",
"external_id": "<string>",
"created_at": "<string>"
}Manage followup communications with reporters via email, SMS, and WhatsApp
curl --request POST \
--url https://api.example.com/api/v1/icsr/{icsr_id}/followup/send \
--header 'Content-Type: application/json' \
--data '
{
"channel": "<string>",
"body": "<string>"
}
'{
"items": [
{
"id": 123,
"icsr_id": 123,
"channel": "<string>",
"direction": "<string>",
"body": "<string>",
"external_id": "<string>",
"created_at": "<string>"
}
],
"total": 123,
"id": 123,
"icsr_id": 123,
"channel": "<string>",
"direction": "<string>",
"body": "<string>",
"external_id": "<string>",
"created_at": "<string>"
}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.
GET /api/v1/icsr/{icsr_id}/followup/thread
admin, qf, responsable_fv, qa, direccion_tecnica, legal, or soporte
POST /api/v1/icsr/{icsr_id}/followup/send
admin, qf, responsable_fv, qa, direccion_tecnica, legal, or soporte
email - Send via emailsms - Send via SMS (requires phone number)whatsapp - Send via WhatsApp (requires WhatsApp-enabled phone)Show Message Object Schema
in - Inbound message from reporterout - Outbound message to reporterreportante_contacto field:
reportante_email - Explicit email fieldreportante_telefono - Explicit phone fieldGET /api/v1/icsr/1234/followup/thread
{
"items": [
{
"id": 1001,
"icsr_id": 1234,
"channel": "email",
"direction": "in",
"body": "Estimados, adjunto reporte de evento adverso con amoxicilina. Paciente presentó rash eritematoso...",
"external_id": "<abc123@hospital.com>",
"created_at": "2024-01-20T10:30:00Z"
},
{
"id": 1002,
"icsr_id": 1234,
"channel": "email",
"direction": "out",
"body": "Estimado Dr. Garcia,\n\nGracias por su reporte. Para completar la evaluación, necesitamos la siguiente información adicional:\n\n- Número de lote del producto\n- Fecha exacta de inicio del rash\n- Antecedentes de alergias del paciente\n\nSaludos,\nUnidad de Farmacovigilancia",
"external_id": "<def456@vigia.system>",
"created_at": "2024-01-20T11:15:00Z"
},
{
"id": 1003,
"icsr_id": 1234,
"channel": "email",
"direction": "in",
"body": "Buenas tardes,\n\nAdjunto la información solicitada:\n- Lote: LOT2024-001\n- Inicio del rash: 15/01/2024\n- No antecedentes de alergias conocidas\n\nSaludos",
"external_id": "<ghi789@hospital.com>",
"created_at": "2024-01-21T09:45:00Z"
}
],
"total": 3
}
POST /api/v1/icsr/1234/followup/send
{
"channel": "email",
"body": "Estimado Dr. Garcia,\n\nGracias por la información adicional. Hemos actualizado el caso y procederemos con la evaluación de causalidad.\n\nLe informaremos cuando esté lista la resolución del caso.\n\nSaludos,\nUnidad de Farmacovigilancia"
}
{
"id": 1004,
"icsr_id": 1234,
"channel": "email",
"direction": "out",
"body": "Estimado Dr. Garcia,\n\nGracias por la información adicional. Hemos actualizado el caso y procederemos con la evaluación de causalidad.\n\nLe informaremos cuando esté lista la resolución del caso.\n\nSaludos,\nUnidad de Farmacovigilancia",
"external_id": "<jkl012@vigia.system>",
"created_at": "2024-01-21T10:30:00Z"
}
POST /api/v1/icsr/1234/followup/send
{
"channel": "sms",
"body": "VIGIA: Hemos recibido su reporte del caso #1234. Le contactaremos por email para solicitar información adicional."
}
POST /api/v1/icsr/1234/followup/send
{
"channel": "whatsapp",
"body": "Hola Dr. Garcia, le escribimos de VIGIA. ¿Podría confirmar el número de lote del producto reportado en el caso #1234?"
}
SMTP_HOST - SMTP server hostnameSMTP_PORT - SMTP server port (usually 587 for TLS)SMTP_USER - SMTP usernameSMTP_PASSWORD - SMTP passwordSMTP_FROM - From email addressSMTP_FROM_NAME - From name (e.g., “VIGIA Farmacovigilancia”){
"detail": "Mensaje vacío"
}
{
"detail": "Este ICSR no tiene email del reportante"
}
{
"detail": "Este ICSR no tiene teléfono"
}
{
"detail": "Este ICSR no tiene WhatsApp/teléfono"
}
{
"detail": "Canal no soportado"
}
{
"detail": "ICSR no encontrado"
}
{
"detail": "Fallo SMTP: Connection refused"
}
/followup/thread to review previous communications/followup/send with channel: "email"/followup/sendAUTO_FOLLOWUP_ENABLED - Enable/disable automatic followup (default: true)AUTO_FOLLOWUP_DELAY_HOURS - Minimum hours between auto-followups (default: 1)REQUIRED_FIELDS - Comma-separated list of required fields to checkAUTO_FOLLOWUP_ENABLED=true
AUTO_FOLLOWUP_DELAY_HOURS=24
REQUIRED_FIELDS=paciente_peso,paciente_fecha_nacimiento,nro_lote