Skip to content

Commit

Permalink
Merge pull request #791 from pepfar-datim/Release-7.3.3
Browse files Browse the repository at this point in the history
Release 7.3.3
  • Loading branch information
JordanBalesBAO authored Feb 9, 2024
2 parents 0bea89b + c6cbb8f commit e431adb
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Type: Package
Package: datapackr
Title: A Package that Packs and Unpacks all Data Packs and Target Setting
Tools
Version: 7.3.2
Date: 2024-01-30
Version: 7.3.3
Date: 2024-02-09
Authors@R: c(
person("Scott", "Jackson", , "sjackson@baosystems.com", role = c("aut", "cre")),
person("Jason", "Pickering", , "jason.p.pickering@gmail.com", role = c("aut", "rev")),
Expand Down
15 changes: 15 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# datapackr 7.3.3

## New features
*

## Bug fixes
* Updated `packForDATIM` to include only certain pop indicators for COP24 in `createDATIMExport`.
* Patched `update_de_coc_co_map` to allow for certain data elements to be included even though they were left off the data entry forms
* Updated `getCOPDataFromDATIM`, as it relates to imports, to work with COP24
* Updated `getMemoIndicators` to allow for COP24
* Updated `memoStructure` to allow for COP24

## Minor improvements and fixes
*

# datapackr 7.3.2

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/getCOPDataFromDATIM.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ getCOPDataFromDATIM <- function(country_uids,
inherits = TRUE)) {


if (!cop_year %in% c(2020:2023)) {
if (!cop_year %in% c(2020:2024)) {

stop("The COP year provided is not supported by the internal function getCOPDataFromDATIM")
### NOTE for COP23 some special handling of SUBNAT data for FY23 like the code below may be
Expand Down
1 change: 1 addition & 0 deletions R/getMemoIndicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ getMemoIndicators <- function(cop_year,
"2021" = "TslxbFe3VUZ",
"2022" = "zRApVEi7qjo",
"2023" = "ZTGhB3qIPsi",
"2024" = "VOYwOgsftbT",
NULL)
#Bail out early if don't have a group
if (is.null(ind_group)) {
Expand Down
2 changes: 1 addition & 1 deletion R/memoStructure.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ memoStructure <- function(d, d2_session = dynGet("d2_default_session",
"AGYW_PREV", "Total", NA)
}

if (d$info$cop_year %in% c("2022", "2023")) {
if (d$info$cop_year %in% c("2022", "2023", "2024")) {
row_order <- tibble::tribble(
~ind, ~options, ~partner_chunk,
"TX_NEW", "<15", 1,
Expand Down
15 changes: 12 additions & 3 deletions R/update_de_coc_co_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,18 @@ update_de_coc_co_map <- function(cop_year = NULL,
categoryOptions.ids = categoryOptions,
categoryoptioncomboname = categoryoptioncombo)



#############
# Thu Feb 1 14:47:16 2024 ------------------------------
# DP-1195 PATCH
# P2XNbiNnIqV was not included in forms
#Setup dataframe to append back to fullCodeList
Patch <- fullCodeList[fullCodeList$dataelementuid == "P2XNbiNnIqV" &
fullCodeList$period == "2024Oct", ]
Patch$FY <- 2024
Patch$period <- "2023Oct"
Patch$period_dataset <- "FY24 SUBNAT Targets"

#Append back to full code list
fullCodeList <- rbind(fullCodeList, Patch)


# Prep Data Pack schema for mapping ####
Expand Down
Binary file modified data/cop24_map_DataPack_DATIM_DEs_COCs.rda
Binary file not shown.

0 comments on commit e431adb

Please sign in to comment.