checkOperatingUnit: Function which checks that the organisation unit provided is...

View source: R/checkOperatingUnit.R

checkOperatingUnitR Documentation

Function which checks that the organisation unit provided is valid

Description

Validates that the supplied UID is a valid operating unit UID

Usage

checkOperatingUnit(
  organisationUnit = NA,
  d2session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

organisationUnit

Organisation unit ancestor.

d2session

DHIS2 Session id

Value

Returns a vector of organisation unit UIDs

Note

remapOUs(foo,"https://www.datim.org","admin", "district","code","id","Ab12345678") will remap organisation units specified as codes to UIDs


jason-p-pickering/datim-validation documentation built on April 20, 2023, 5:32 a.m.