Metadata

Data Objects

loc_table

Location hierarchy table

health_facility_table

Health Facility and Administrative Units Table

indicator_table

DHIS indicator table

district_pop

District population data

age_sex_table

Age-sex indicator table

Data Utilities

Utilities to Work with Metadata

get_latest_output_date_index()

get the latest index for given an output dir and a date

get_output_dir()

Get output directory for results to save in

get_period_range()

Get the a vector of periods follow DHIS formatting that spans that start and end period provided

make_month_map()

Make a table that provides the date information associated with a DHIS period

make_week_map()

Make a table that provides the date information associated with a DHIS period

Shapefiles

GIS Shapefiles

uga_subcounty_shp

Subcounty shapefile version2.0

uga_district_shp

District shapefile version1.0

uga_region_shp

region shapefile version1.0

uga_water_shp

Water shapefile version1.0

SQLite Utilities

Data Objects

get_data()

Get the data from a database with the option to subset to a specified version and id values

get_db_diff()

Get the data from new data that differs from what is present in the database

get_latest_version()

Get the latest version number from the database

get_version_metadata()

Get metadata for a specific version

get_id_vars()

Get the names of the variables that uniquely identify an observation

get_value_var()

Get the name of the value column

make_human_readable()

Merge on human readable columns to raw data

Cloud Utilities

Utilities to Access the Data Warehouse

bq_connect()

BigQuery Utilities for RAMP Data Pipeline

bq_get_latest_version()

Get the latest version number from BigQuery

bq_get_version_metadata()

Get version metadata from BigQuery

bq_get_data()

Read raw DHIS data from BigQuery

bq_get_db_diff()

Get new/changed rows not yet in BigQuery

bq_get_clean_data()

Read clean aggregated data from BigQuery

bq_get_imputed_sample()

Sample imputed facility data from BigQuery

bq_append_raw_data()

Append raw data to BigQuery

bq_append_version_metadata()

Write version metadata to BigQuery

bq_write_clean_data()

Write clean aggregated data to BigQuery (full replace)

bq_write_imputed_data()

Write imputed facility data to BigQuery (full replace)

bq_init_tables()

Initialize BigQuery tables for the DHIS data pipeline

bq_write_outbreak_data()

Write pre-computed outbreak index data to BigQuery

bq_get_outbreak_data()

Read pre-computed outbreak index data from BigQuery

ramptools ramptools-package

ramptools: RAMP Uganda Malaria Data Tools