get_data_elements_with_category_options {khisr} | R Documentation |
Get Data Elements with Category Options
Description
get_data_elements_with_category_options()
fetches data elements metadata with the
category options from the DHIS2 API server.
Usage
get_data_elements_with_category_options(
element_ids,
auth = NULL,
call = caller_env()
)
Arguments
element_ids |
The data element identifiers whose details being retrieved |
auth |
The authentication object |
call |
The caller environment |
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('htFuvGJRW1X')
elements
[Package khisr version 1.0.5 Index]