Skip to contents

Get Orgs uids by level

Usage

get_ouorguids(
  ouuid,
  level,
  username,
  password,
  baseurl = "https://final.datim.org/"
)

Arguments

ouuid

Operatingunit uid

level

Orgunit level

username

Datim Account username

password

Datim Account Password

baseurl

Datim base url

Value

list of uids

Examples

if (FALSE) { # \dontrun{
 library(grabr)

 # Set country of interest
 cntry <- "Zambia"

 # Get OU/Country orgunit uid
 uid <- get_ouuid(cntry)

 # Get org level for psnu
 lvl <- get_ouorglevel(cntry, org_type = "prioritization")

 # Retreived all uids for level 4 (SNU1)
 get_ouorguids(ouuid = uid, level = 4)
} # }