View source: R/getOrganisationUnitMap.R
getOrganisationUnitMap | R Documentation |
Utility function to produce a map of valid mechanisms
getOrganisationUnitMap(
organisationUnit = NA,
d2session = dynGet("d2_default_session", inherits = TRUE)
)
organisationUnit |
Organisation unit ancestor. |
d2session |
DHIS2 Session id |
Returns a data frame of name,code,id, and categoryOptionCombo (which is the UID of interest)
## Not run:
# For a specific operating unit
ou_map <- getOrganisationUnitMap("KKFzPM8LoXs")
# Based on your login credentials
ou_map_mine <- getOrganisationUnitMap()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.