
Get Data Elements with Category Options
Source:R/get_data_elements_with_category_options.R
get_data_elements_with_category_options.Rd
get_data_elements_with_category_options() fetches data elements metadata with the
category options from the DHIS2 API server.
Value
A tibble containing the following columns:
element_id - The unique identifier for the data element.
element - The name of the data element.
category - The category options for the elements
category_id - The unique identifier for the category options
Examples
# Fetch the data element metadata for particular element id
elements <- get_data_elements_with_category_options('lYsfXxCw6Qi')
elements
#> # A tibble: 3 × 4
#> element element_id category category_id
#> <chr> <chr> <chr> <chr>
#> 1 MAL - Malaria confirmed cases reported lYsfXxCw6Qi 15+ years hF0pQZIn6Ch
#> 2 MAL - Malaria confirmed cases reported lYsfXxCw6Qi 5-14 years rtfSaMjPyq6
#> 3 MAL - Malaria confirmed cases reported lYsfXxCw6Qi 0-4 years oPcWGgS2Liz