This Python script facilitates the integration of data from KoboToolbox into DHIS2. It fetches data from KoboToolbox, transforms it, and creates Tracked Entity Instances and enrollments in DHIS2.
- Python 3.x
-
Set up your credentials:
- Update
kobo_username
andkobo_password
with your KoboToolbox credentials. - Update
dhis2_username
anddhis2_password
with your DHIS2 credentials.
- Update
-
Specify the KoboToolbox form ID:
- Set the
form_id
variable with the relevant KoboToolbox form ID.
- Set the
-
Adjust other parameters:
- Customize the DHIS2 program ID and any other parameters as needed.
Run the script using the following command:
python kobo_dhis_integration.py