unPackDataPack: Unpack a submitted Data Pack

View source: R/unPackDataPack.R

unPackDataPackR Documentation

Unpack a submitted Data Pack

Description

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

Usage

unPackDataPack(d, d2_session = dynGet("d2_default_session", inherits = TRUE))

Arguments

d

Datapackr object

d2_session

DHIS2 Session ID

Details

Executes the following operations in relation to a submitted Data Pack:

  1. Performs integrity checks on file structure;

  2. Runs DATIM validation tests;

  3. Extracts SUBNAT and IMPATT data as a DATIM import file;

If a Data Pack is submitted as an XLSB formatted document, you must open & re-save as an XLSX in order to process it with this function.

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 April 14, 2024, 10:35 p.m.