Compile PEPFAR Hierarchy

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

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/

folderpath_output

provide the full path to the folder for saving

Examples

if (FALSE) {
#get OU UID
  ouuid <- identify_ouuids() %>% dplyr::filter(ou == "Kenya")
#pull hierarchy (paths are all UIDs)
  df <- pull_hierarchy(ouuid, username = myuser, password = mypwd(myuser)) }