Overview
The Observations API enables you to create, track, and manage observations generated during audits and inspections. This system helps monitor compliance issues, safety concerns, quality problems, and other findings that require follow-up and resolution.Understanding Observations
Observations in the Integra system represent:- Audit findings and compliance issues
- Safety observations and concerns
- Quality control findings
- Process improvement opportunities
- Corrective action items
- Unique identifier and folio number
- Priority level and status
- Associated unit, area, and departments
- Creation and assignment details
- Tracking information for resolution
Querying Observations
Retrieve observations using comprehensive filters to focus on specific criteria.Configure filter parameters
Endpoint:
GET /observaciones/filtroAvailable Query Parameters:supervisorId- Filter by supervisor IDunidadId- Filter by unit/location IDareaId- Filter by area IDdepartamentoResponsableId- Filter by responsible departmentdepartamentoColaboradorId- Filter by collaborating departmentdepartamentoGeneraId- Filter by department that generated the observationzonaId- Filter by zone IDprioridad- Filter by priority level (e.g., “ALTA”, “MEDIA”, “BAJA”)tipoObservacionId- Filter by observation type IDestatusId- Filter by status IDfolio- Search by specific folio numberusuarioCreadorId- Filter by creator user IDcreadoDesde- Filter by creation date from (LocalDateTime format)creadoHasta- Filter by creation date to (LocalDateTime format)pagina- Page number for paginationfilas- Number of rows per pageprivado- Filter by private/public status (boolean)
Execute observation query
Example: Get all observations for a specific unitExample: Get high priority observationsExample: Get observations by status and departmentExample: Get observations in date rangeExample: Search by folio number
Process observation data
Success Response (200 OK):Key Fields:
folio- Unique observation identifierprioridad- Priority level (ALTA, MEDIA, BAJA)estatus- Current status of the observationtipoObservacion- Category/type of observationdepartamentoResponsable- Department responsible for resolutiondepartamentoColaborador- Collaborating departmentdepartamentoGenera- Department that created the observationfechaCompromiso- Target resolution datefechaCierre- Actual closure dateprivado- Whether observation is private or public
Querying Unit Observations
Retrieve public observations specific to a unit (excludes private observations).Query unit observations
Endpoint: Example: Get public observations by status
GET /observaciones/unidad/filtroUses the same filter parameters as the general observation query, but automatically filters out private observations (privado=false).Example: Get all public observations for a unitUpdating Observation Status
Change the status of an observation to track its progress through resolution.Prepare status update
Endpoint:
PUT /observaciones/actualizarEstatus/{id}/{estatusId}Path Parameters:id- Observation ID (required)estatusId- New status ID (required)
1- Abierta (Open)2- En Proceso (In Progress)3- Pendiente Validación (Pending Validation)4- Cerrada (Closed)5- Cancelada (Cancelled)
Status ID values may vary by system configuration. Consult your status catalog for accurate IDs.
Execute status update
Example: Mark observation as in progressExample: Close observationExample: Cancel observation
Pagination and Large Result Sets
When working with large numbers of observations, use pagination parameters. Example: Get first page (20 records)Common Filtering Scenarios
Open High Priority Observations
Observations by Responsible Department
Observations Created This Month
Observations by Supervisor and Zone
Safety Observations in Production Area
Observation Lifecycle
Typical Status Progression
- Abierta (Open) - Observation created during audit
- En Proceso (In Progress) - Corrective action initiated
- Pendiente Validación (Pending Validation) - Action completed, awaiting verification
- Cerrada (Closed) - Verified and resolved
- Cancelada (Cancelled) - Observation deemed invalid or duplicate
Tracking Resolution Time
Calculate resolution time by comparing:fechaCreacion- When observation was createdfechaCompromiso- Target resolution datefechaCierre- Actual closure date
Reporting and Analytics
Generate Observation Reports
Combine filters to create targeted reports: Monthly Safety ReportfechaCompromiso and status is not closed.
Best Practices
Creating Observations
- Assign appropriate priority levels based on severity
- Set realistic commitment dates (
fechaCompromiso) - Clearly identify responsible department
- Include photographic evidence when applicable
- Use descriptive folio numbers for easy reference
Managing Observations
- Update status regularly as progress is made
- Track observations by supervisor and zone
- Review open observations weekly
- Close observations promptly after verification
- Use private flag for sensitive findings
Reporting
- Filter by date ranges for periodic reports
- Group by department for accountability tracking
- Monitor high priority items separately
- Track resolution times against commitments
- Analyze trends by observation type
Reference
Controller:ObservacionController.java at /observacion/controller/ObservacionController.java:1
Related Models:
ObservacionFilter.java- Observation filter parametersResumenObservacion- Observation summary response
GET /observaciones/filtro- Query observations with filtersGET /observaciones/unidad/filtro- Query public unit observationsPUT /observaciones/actualizarEstatus/{id}/{estatusId}- Update observation status
Next Steps
Reports Generation
Generate comprehensive observation reports
Employee Management
Manage employees and supervisors