A look up for an partial orgunit name against the DATIM list of orgunits, when trying to find the correct or missing orgunituid

hfr_orgunit_search(df, orgunit_name, ou = NULL)

Arguments

df

org hierarchy, created in pull_hierarchy()

orgunit_name

full or partial orgunit name for matching

ou

operating unit; if added searches only that OU default = NULL

Examples

if (FALSE) {
load_secrets("datim")
org <- pull_hierarchy(datim_user(), datim_pwd())
# orgunit - "Kewot"
hfr_orgunit_search(org, "Kew", "Ethiopia") }