getCOPDataFromDATIM: Grab all raw data in DATIM for a country for the COP data...

View source: R/getCOPDataFromDATIM.R

getCOPDataFromDATIMR Documentation

Grab all raw data in DATIM for a country for the COP data sets for a given COP Year.

Description

Grab all raw data in DATIM for a country for the COP data sets for a given COP Year.

Usage

getCOPDataFromDATIM(
  country_uids,
  cop_year,
  datastreams = c("mer_targets", "subnat_targets", "impatt"),
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

country_uids

Unique IDs for countries to include in the Data Pack. For full list of these IDs, see datapackr::valid_OrgUnits.

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.

d2_session

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

Value

Raw data in DATIM for a country for the COP data sets for a given COP Year.

Examples

## Not run: getCOPDataFromDATIM(country_uid = d$info$country_uids, cop_year = d$info$cop_year)


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