getPSNUInfo: getPSNUInfo

View source: R/adorn_import_file.R

getPSNUInfoR Documentation

getPSNUInfo

Description

Certain special PSNUs (like DREAMS) are part of the target setting process, but may exist at a level in the organisation unit hierarchy other than the COP Prioritization level. For organisation units which exist at the prioritization level, their prioritization should be left as is. For organisation units which do not exist at the level at which prioritization is set, the parent prioritization should be used.

Usage

getPSNUInfo(
  snu_uids,
  cop_year,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

snu_uids

List of UIDs corresponding to DATIM organisation units.

cop_year

The COP year for the data.

d2_session

DHIS2 Session id. R6 datimutils object which handles authentication with DATIM.

Value

Tibble of orgunits mapped to orgunit name, PSNU name, & PSNU uid.


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.