Skip to content
DHIS2.org Community GitHub

Validating your data

Use the chap validate command to check that your CSV is Chap-compatible before running an evaluation.

Basic validation

chap validate --dataset-csv [YOUR-FOLDR-PATH].csv
e.g chap validate --dataset-csv example_data/laos_subset.csv

This checks for:

  • Required columns (time_period, location)
  • Missing values (NaN) in covariate columns
  • Location completeness (every location has the same set of time periods)

Validate GeoJSON (if applicable)

If you have a GeoJSON file alongside your CSV, validate it with the --dataset-geo flag:

chap validate --dataset-csv [YOUR-FOLDR-PATH].csv --dataset-geo [YOUR-FOLDR-PATH].geojson
e.g. chap validate --dataset-csv example_data/laos_subset.csv --dataset-geo example_data/laos_subset.geojson

This additionally checks that all location values in the CSV have a matching feature in the GeoJSON.