unPackOPUDataPack: Unpack a submitted OPU Data Pack

View source: R/unPackOPUDataPack.R

unPackOPUDataPackR Documentation

Unpack a submitted OPU Data Pack

Description

Processes a submitted OPU Data Pack (in .xlsx format) by identifying integrity issues, checking data against DATIM validations, and extracting data.

Usage

unPackOPUDataPack(
  d,
  pzns = NULL,
  mer_data = NULL,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

d

Datapackr sidecar object

pzns

A object containing prioiritization information by organisation unit to be added to the DataPack object.

mer_data

If prior MER data (for instance from DATIM), is passed to this parameter, it will be used. Otherwise, data from the existing set of tools will be used.

d2_session

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

Details

Once this function is called, it will present a dialog box where you can select the file location of the Data Pack to be processed.

If Operating Unit name and id in the Data Pack's Home tab do not match based on cross-reference with DATIM organization hierarchies, you will be prompted to manually select the correct Operating Unit associated with the Data Pack to be processed. Enter this information in the Console as directed.

The final message in the Console prints all warnings identified in the Data Pack being processed.


pepfar-datim/datapackr documentation built on Jan. 14, 2025, 7:11 a.m.