compareData_OpuDatapackVsDatim: compareData_OpuDatapackVsDatim

View source: R/datapackVsDatim.R

compareData_OpuDatapackVsDatimR Documentation

compareData_OpuDatapackVsDatim

Description

Legacy function maintained for backwards compatibility. If processing an Datapack (either Datapack or a standalone PSNU tab) as an OPU, only MER targets should be considered for processing.

Usage

compareData_OpuDatapackVsDatim(
  d,
  d2_session = dynGet("d2_default_session", inherits = TRUE),
  datim_data = NULL
)

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.

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.