Introduction
The IPS (Informe Periódico de Seguridad) module manages periodic safety update reports for pharmaceutical products. These reports track adverse events, literature sources, and regulatory compliance for medications over specific time periods.Base URL
All IPS endpoints are prefixed with:Authentication
All endpoints require authentication via Bearer token:Permissions
IPS endpoints use role-based access control:ips:read- View IPS reports and calendar entriesips:edit- Create and modify draft reportsips:qa- Validate reports for QA approvalips:approve- Approve validated reportsips:delete- Delete draft reportsips:export- Export reports to DOCX/PDF formats
Core Concepts
IPS Report Lifecycle
Reports follow a three-state workflow:- Borrador (Draft) - Initial creation and editing
- Validado (Validated) - QA approved, ready for final approval
- Aprobado (Approved) - Final state, locked from editing
Product Information
Each IPS report is associated with anIPSProducto containing:
- Product name and active ingredient
- Pharmaceutical form and presentation
- Sanitary registration number
- Authorization dates
Literature Sources
Reports track literature references from multiple databases:- PMC - PubMed Central
- LILACS - Latin American and Caribbean Health Sciences
- SCIELO-WEB - Scientific Electronic Library Online
Key Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /ips | List all IPS reports |
| POST | /ips | Create new IPS report |
| GET | /ips/{report_id} | Get specific report |
| PUT | /ips/{report_id} | Update report |
| DELETE | /ips/{report_id} | Delete draft report |
| POST | /ips/{report_id}/fuentes/bulk | Save literature sources |
| GET | /ips/{report_id}/fuentes | List literature sources |
| POST | /ips/{report_id}/qa-validate | QA validation |
| POST | /ips/{report_id}/approve | Final approval |
| GET | /ips/{report_id}/export/docx | Export to Word |
| GET | /ips/{report_id}/export/pdf | Export to PDF |
Calendar Integration
The IPS module integrates with a calendar system to schedule and track report submissions:- View calendar entries at
/ips/calendario - Create reports from calendar entries using
/ips/from-calendario - Prefill report data from calendar at
/ips/calendario/{cal_id}/prefill
Common Response Fields
IPSReportOut
Error Handling
The API uses standard HTTP status codes:200- Success201- Created204- No Content (successful deletion)400- Bad Request (invalid parameters)401- Unauthorized (invalid credentials)403- Forbidden (insufficient permissions)404- Not Found409- Conflict (business rule violation)500- Internal Server Error