getCodeList: Pull & combine all MER, SUBNAT, IMPATT code lists for...

View source: R/getCodeList.R

getCodeListR Documentation

Pull & combine all MER, SUBNAT, IMPATT code lists for specified COP year.

Description

Pulls all code lists for MER, SUBNAT, and IMPATT for a specified COP year and combines these into a unique list.

Usage

getCodeList(
  cop_year = NULL,
  datastreams = c("mer_targets", "mer_results", "subnat_targets", "subnat_results",
    "impatt"),
  datasets = NULL,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

cop_year

COP Year to use for tailoring functions. Remember, FY22 targets = COP21.

datastreams

Data stream or streams. One or more of mer_targets, mer_results, subnat_targets, subnat_results, or impatt. If not specified, then all data streams are returned.

datasets

Character vector of dataSet IDs to pull code lists for.

d2_session

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

Value

Combined code list as dataframe.


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