Improved Authentication: Now supports optionalauthentication for API calls using theauth argument. Thisstrengthens security by allowing you to control access to yourdata.
Clearer Error Messages: Provides moreinformative error messages to help you identify and troubleshoot issuesmore efficiently.
khis_has_cred(): Now ensures credentials are validbefore returning TRUE, preventing unauthorized access.khis_cred(): Includes validation to accept only validcredentials, reducing errors.Introduced experimental functions for enhanced dataretrieval:
get_data_elements_with_category_options(): Fetch dataelements along with their associated category option values.get_organisations_by_level(): Retrieve organizationsfiltered by level.get_analytics_by_level(): Obtain analytics tabledataget_data_sets_by_level(): Retrieve data set reportingrate metrics.Added thekhis_base_url() to obtain the DHIS2 APIURL.
Introducedget_organisation_unit_levels() toretrieve the available organisation levels in the DHIS2instance.
Made the package generic to support any DHIS2 instance andupdated the documentation accordingly.
Modified thekhis_cred() to require thebase_url argument and deprecated the defaultvalue.
Updated thekhis_cred_clear() to reset thebase_url back to KHIS API.
Updated thekhis_cred() to allowbase_url be set from the config file.