Get all data elements from a specific DHIS2 instance
Source:R/read_dhis2-helpers.R
get_data_elements.RdGet all data elements from a specific DHIS2 instance
Arguments
- login
A httr2_response object returned by the
dhis2_login()function
Value
A data frame with the following two columns: the data elements IDs and their corresponding names.
Examples
if (FALSE) { # \dontrun{
# establish the connection to the system
dhis2_login <- login(
type = "dhis2",
from = "https://smc.moh.gm/dhis",
user_name = "test",
password = "Gambia@123"
)
# retrieve the data elements
data_elements <- get_data_elements(login = dhis2_login)
} # }