List IPS Reports
Query Parameters
Number of reports to return (1-200)
Number of reports to skip for pagination
Filter by report state:
borrador, validado, or aprobadoFilter by product ID (
producto_id)Response
List of IPS reports with product details and case counts
Response Example
Get Single Report
Path Parameters
ID of the IPS report to retrieve
Response
Report ID
Associated product ID
Full product details (IPSProducto)
Report period start date (YYYY-MM-DD)
Report period end date (YYYY-MM-DD)
Report version number
Report state:
borrador, validado, or aprobadoNumber of units commercialized during period
Number of adverse event cases in this period
Create IPS Report
Request Body (IPSReportCreate)
ID of the product for this report
Report period start date (YYYY-MM-DD)
Report period end date (YYYY-MM-DD). Must be >= periodo_inicio
Report version number (defaults to 1 if not provided)
Number of units commercialized during the period
Optional Extra Payload
You can pass an additionalextra object in the request to include sources and KPIs:
Response
Returns the created report asIPSReportOut with HTTP 200.
Update IPS Report
Path Parameters
ID of the report to update
Request Body (IPSReportUpdate)
All fields are optional. Only include fields you want to update.Report period start date
Report period end date
Report version number
Report state (use workflow endpoints instead)
Units sold during period
Batches distributed during period
Units commercialized during period
Summary of adverse events (JSONB)
Detected safety signals (JSONB)
Regulatory actions taken (JSONB)
Benefit-risk evaluation (JSONB)
Report conclusions (JSONB)
Additional metadata (JSONB)
Business Rules
- Only reports in
borradorstate can be updated - Approved reports (
aprobado) return HTTP 409 Conflict
Delete IPS Report
Path Parameters
ID of the report to delete
Request Body
Current user’s password for confirmation
Response
Business Rules
- Only
borrador(draft) reports can be deleted - Requires
ips:deletepermission - User must provide their password for confirmation
- Returns HTTP 409 if report is not in draft state
Workflow State Transitions
QA Validate Report
Transition fromborrador to validado.
- Report must be in
borradorstate - Requires
ips:qapermission - Returns HTTP 409 if validation conditions not met
Approve Report
Transition fromvalidado to aprobado.
- Report must be in
validadostate - Requires
ips:approvepermission - Once approved, report cannot be edited
- Returns HTTP 409 if not validated
Export Reports
Export to DOCX
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Export to PDF
application/pdf
Create Product
Create a new product before creating IPS reports.Request Body (IPSProductoCreate)
Product name with strength and form
Active ingredient (IFA)
Pharmaceutical form (e.g., TABLETAS, CAPSULAS, SUSPENSION)
Presentation/packaging details
Route of administration (e.g., ORAL, INTRAVENOSA)
Sanitary registration number
Authorization date (YYYY-MM-DD)
Manufacturer name
Response
Returns the created product asIPSProductoOut with HTTP 200.