-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NM-99] Return all indicators for input time series #456
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -503,12 +503,7 @@ prepare_input_time_series_anc <- function(anc, shape) { | |
|
||
anc_plot_data_long <- anc_long |> | ||
dplyr::mutate(!!!mutate_exprs) |> | ||
dplyr::select(area_id, area_name, area_level, area_level_label, parent_area_id, | ||
area_sort_order, age_group, time_period, year, quarter, | ||
calendar_quarter, anc_clients, anc_tested, anc_tested_pos, | ||
anc_prevalence, anc_known_pos, anc_known_neg, | ||
anc_art_coverage, births_facility, births_clients_ratio, | ||
area_hierarchy) |> | ||
dplyr::select(-sex) |> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any risk that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the indicators are specified by mutate_exprs. So not selecting specific columns here means if we add any more then they should come straight through. Are you worried about some new non-indicator column though? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double checked, no that shouldn't happen. We read the anc file in and specify the columns we want to read. So that should filter out any unwanted stuff. This should just mean all the columns we create during the aggregation get returned automatically |
||
tidyr::pivot_longer(cols = c(dplyr::starts_with("anc"), "births_facility", "births_clients_ratio"), | ||
names_to = "plot", | ||
values_to = "value") |> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,5 +276,12 @@ | |
"DOWNLOAD_AGYW_DESCRIPTION": "Naomi AGYW tool uploaded from Naomi web app", | ||
"NUMBER_ON_ART": "Number on ART", | ||
"NUMBER_ON_ART_DESC": "Number on ART description", | ||
"POPULATION_PROPORTION": "Population proportion" | ||
"POPULATION_PROPORTION": "Population proportion", | ||
"ANC_TOTAL_POS": "Anc total pos", | ||
"ANC_TOTAL_POS_DESC": "Anc total pos desc", | ||
"ANC_ALREADY_ART_DESC": "ANC already ART desc", | ||
"ANC_STATUS": "ANC status", | ||
"ANC_STATUS_DESC": "ANC status desc", | ||
"ANC_ART_AMONG_KNOWN": "ANC ART among known", | ||
"ANC_ART_AMONG_KNOWN_DESC": "ANC ART among known desc" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "ANC total HIV positive" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These look good to me |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is
anc_status
? Is that the total denominator? I usually useanc_hiv_status
for that. Doesn't matter too much