Skip to contents

[Experimental] get_data_store_namespaces() lists the namespaces in a DHIS2 instance's key/value data store — arbitrary JSON configuration used by DHIS2 apps (e.g. the Maps app, Tracker Capture). Use get_data_store_keys() and get_data_store_value() to read a namespace's contents.

Usage

get_data_store_namespaces(
  store = c("system", "user"),
  auth = NULL,
  call = caller_env()
)

Arguments

store

Optional. 'system' (default), the shared instance-wide store, or 'user', the store private to the authenticated user.

auth

Optional. The authentication object.

call

The caller environment.

Value

A character vector of namespaces, or NULL if none exist. Confirmed live against a public DHIS2 demo instance.

Examples


get_data_store_namespaces()
#>  [1] "who-dqa"             "bridge"              "CLIMATE_DATA"       
#>  [4] "bulk-load"           "WHO_ICD11_COD"       "dataQualityTool"    
#>  [7] "DHIS2_MAPS_APP_CORE" "tracker-capture"     "analytics"          
#> [10] "Dhis2Transfer"