hierarchy_extract: Pull Hierarchy Data from DATIM

View source: R/pull_hierarchy.R

hierarchy_extractR Documentation

Pull Hierarchy Data from DATIM

Description

Pull Hierarchy Data from DATIM

Usage

hierarchy_extract(
  ou_uid,
  username,
  password,
  baseurl = "https://final.datim.org/"
)

Arguments

ou_uid

UID for the country, recommend using identify_ouuids()

username

DATIM username

password

DATIM password, recommend using mypwd()

baseurl

API base url, default = https://final.datim.org/

Examples

## Not run: 
#get OU UID
  ouuid <- identify_ouuids() %>% dplyr::filter(ou == "Kenya")
#pull hierarchy (paths are all UIDs)
  df <- hierarchy_extract(ouuid, username = myuser, password = mypwd(myuser)) 
## End(Not run)

USAID-OHA-SI/Wavelength documentation built on March 24, 2023, 10:07 a.m.