data_required | R Documentation |
Each data pack output can be the result of combining up to two DATIM indicators into a combining calculation. The indicators are designated A and B and the calculation combining them is in the calculation column.
data_required
A data frame with these variables:
Datapack Excel sheet label - from datapack schems
given identifier to map output to a specific column in datapack - from datapack schema
numeric or percent - if percent then values recieved from DATIM will be divided by 100 - from datapack schema
specification for required calculation/output - from datapack schema
determines how dimension that splits to multiple category options will be handled. If distribute the value returned by analytics will be multiplied by the weight from corresponding entry in dim_item_sets. Replicate means the value is copied and NA means there are no dimensions in the indicator call.
Note: when data are distributed it is sometimes the case that we receive results for a category option from more than one dimension (e.g. age 1-4 data can result from analytics dimension <5 and 1-9): These “duplicates” are added together in the code. This should not happen in the case of replicate and the program will throw an error if duplicate category options result from the indicator call.
indicator code
indicator uid
period (ISO/DHIS2 format) - currently only one supported
age set from dim_item_sets
sex set from dim_item_sets
key population set from dim_item_sets
Name of additional dimension - details on one nonstandard (age, sex, kp) dimension used when calling the datim indicator. Currently on one dimension item is supported. These do not get mapped to category options as they act more as a filter than an explicit dimension.
additonal dimensions uid
name of additional dimension item to filter on - only one supported
name of additional dimension item to filter on - only one supported
see A.dx_code
see A.dx_id
see A.pe_iso
see A.age_set
see A.sex_set
see A.kp_set
see A.add_dim_1
see A.add_dim_1_uid
see A.add_dim_1_items
see A.add_dim_1_items_uid
the formula for combiingthe A and B indicator values
COP19 systems team
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.