dhis2
Installation
SKILL.md
DHIS2
Main entry point for all DHIS2 interactions.
Client Setup
All DHIS2 code uses this setup. Sub-skills assume dhis is already initialized.
from openhexa.sdk import workspace
from openhexa.toolbox.dhis2 import DHIS2
# Get connection and initialize client with caching
dhis2_connection = workspace.dhis2_connection("connection_identifier")
dhis = DHIS2(dhis2_connection, cache_dir=f"{workspace.files_path}/.cache") #cache_dir is optionnal!