Skip to Content
AnalyticsdbtOverview

dbt — Data Transformation

nhic_dbt is the data transformation layer for the HIC analytics platform. It takes raw data ingested from 10 health information source systems and transforms it into a structured data warehouse used by Apache Superset  and the GreenRiver BI frontend.

All transformation logic lives in apps/analytics/nhic_dbt/ inside the Healthcare.MOH.RWA.HIC monorepo and runs on dbt-core + dbt-postgres.

Four-layer architecture

Data moves through four discrete layers, each with a single responsibility:

Raw Sources → staging_* → intermediate_* → dwh_* → reporting_* → BI Tools
LayerSchema prefixMaterializationPurpose
StagingstagingtableIngest raw source data; light cleaning only
IntermediateintermediatetableBusiness logic, joins, deduplication, SCD
DWHdwhtableConformed dimensions and facts — the analytical core
ReportingreportingviewBuffer layer optimised for BI tools

Ten source systems

The staging layer ingests from 10 health information systems across Rwanda’s national health infrastructure:

HMIS TrackerFacility-level health program tracking via DHIS2.
eFICHEOutpatient clinical records.
CRVSCivil registration and vital statistics.
EBUZIMAMaternal health system.
HPEMRHealth post electronic medical records.
IDSR / DHIS2Integrated disease surveillance and response.
ImmunizationNational immunization tracker.
MOH RHMISRoutine health management information system.
CEMRCentral electronic medical records.
SeedsStatic reference and lookup data loaded via dbt seeds.

Explore further

Last updated on