get_enrollments
Query enrollments of tracked entities entering a program by providing program and organization unit UIDs. Retrieve up to a specified number of enrollment records from the DHIS2 health information system.
Instructions
Query enrollments (tracked entities entering a program).
Args: program: program UID. org_unit: org unit UID. limit: max enrollments.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"program": "<program>",
"org_unit": "<org_unit>"
},
"name": "get_enrollments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| program | Yes | ||
| org_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |