compareData_DatapackVsDatim: compareData_DatapackVsDatim

View source: R/datapackVsDatim.R

compareData_DatapackVsDatimR Documentation

compareData_DatapackVsDatim

Description

Compares the data in a parsed data pack that would be destined for DATIM with target data in in DATIM.

Usage

compareData_DatapackVsDatim(
  d,
  d2_session = dynGet("d2_default_session", inherits = TRUE),
  datim_data = NULL,
  datastreams = c("mer_targets", "subnat_targets", "impatt")
)

Arguments

d

Datapackr sidecar object

d2_session

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

datim_data

A data frame resulting from datimutils::getDataValueSets. If null, the data will be fetched from DATIM.

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.

Value

list object of diff result $psnu_x_im_wo_dedup, $psnu_w_dedup, $updates (import to bring DATIM up to date with datapack), $deletes (import to bring DATIM up to date with datapack)


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