Learn R Programming

readepi (version 1.0.4)

get_data_elements: Get all data elements from a specific DHIS2 instance

Description

Get all data elements from a specific DHIS2 instance

Usage

get_data_elements(login)

Value

A data frame with the following two columns: the data elements IDs and their corresponding names.

Arguments

login

A httr2_response object returned by the dhis2_login() function

Examples

Run this code
if (FALSE) {
  # 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)
}

Run the code above in your browser using DataLab