get_events
Retrieve event records for a specific DHIS2 program and organizational unit, with optional date range and limit parameters.
Instructions
Query event data for a program via the tracker API.
Args: program: program UID (find it with list_programs). org_unit: org unit UID to scope the query. limit: max events to return. occurred_after: optional ISO date (YYYY-MM-DD) lower bound. occurred_before: optional ISO date (YYYY-MM-DD) upper bound.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| program | Yes | ||
| org_unit | Yes | ||
| occurred_after | No | ||
| occurred_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |