hfr_orgunit_search: Search Org Hierarchy for Org Unit

View source: R/utilities.R

hfr_orgunit_searchR Documentation

Search Org Hierarchy for Org Unit

Description

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

Usage

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

## Not run: 
load_secrets("datim")
org <- pull_hierarchy(datim_user(), datim_pwd())
# orgunit - "Kewot"
hfr_orgunit_search(org, "Kew", "Ethiopia") 
## End(Not run)

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