Skip to content

Run a prediction

This pipeline runs a monthly malaria prediction. Your model may use different covariates. Repeat the create, poll, download, and upload block once for each covariate in the prediction setup.

Shared fields on every step — name, retries, and retry delay — are on Create a pipeline. The names below are examples.

This step refreshes the datasets you already imported. Name, Max retries, and Retry delay (ms) are on Create a pipeline.

  1. Click Add step and name it.
  2. Under Handler, select Open Climate Service Sync.

Handler list with Open Climate Service Sync selected

  1. Under Configuration, select the climate datasets to synchronise.

Climate datasets selected for synchronisation

  1. Choose what happens if a dataset fails to synchronise.

What happens when a dataset fails to synchronise

  1. Under Advanced Options, set the period to synchronise up to. Leave it blank to use the latest available period.
  2. Set the poll interval and the maximum number of attempts for queued synchronisation jobs.

Poll interval and maximum attempts for synchronisation jobs

  1. Click Add step.

This step asks for one covariate, such as temperature. Repeat it later for each remaining covariate.

  1. Click Add step. Name it, for example Request Temperature Data.
  2. Under Handler, select Open Climate Service Create.
  3. Select the climate dataset.

Climate dataset for the covariate request

  1. Select the prediction covariate, for example mean_temperature. The matching DHIS2 data item is filled in.
  2. Select the aggregation method, for example Average.

Aggregation method, with Average available

  1. Select the period.
    • Fixed Range uses a start and an end you type.
    • Latest Period counts backwards from the current period. Three monthly periods in October 2026 cover July to September 2026.
    • Skip the Most Recent Months leaves out months that are still incomplete.

Period choices: Fixed Range, Latest Period, and Skip the Most Recent Months

  1. Select organisation units by level, or pick units from the hierarchy.

Organisation units by level or from the hierarchy

  1. Click Add step.
  1. Click Add step. Name it, for example Poll Temperature Data.
  2. Under Handler, select Open Climate Service Poll.

Handler list with Open Climate Service Poll selected

  1. Click Add step.

The step checks the request from the previous step until that request is ready.

  1. Click Add step. Name it, for example Download Temperature Data.
  2. Under Handler, select Open Climate Service Download.

Handler list with Open Climate Service Download selected

  1. Click Add step.

The download is in a form DHIS2 can import.

  1. Click Add step. Name it, for example Upload Temperature Data to DHIS2.
  2. Under Handler, select DHIS2 Data Upload.

Handler list with DHIS2 Data Upload selected

  1. Select the import strategy.

Import strategy for the covariate upload

  1. Click Add step.

Repeat steps 2 to 5 for every other covariate in the prediction setup. This example uses temperature and precipitation, so the second pass selects the precipitation covariate and names the steps accordingly.

Steps for temperature and precipitation, one create-poll-download-upload block each

Analytics makes the uploaded covariates available for the prediction.

  1. Click Add step. Name it, for example Run Analytics.
  2. Under Handler, select DHIS2 Analytics Run.

Handler list with DHIS2 Analytics Run selected

  1. Set Last years, for example All, and the polling fields Poll interval (ms) and Max attempts.

Analytics Last years and polling settings

  1. Click Add step.
  1. Click Add step. Name it, for example Run CHAP Prediction.
  2. Under Handler, select Prediction Trigger.

Handler list with Prediction Trigger selected

  1. Select the model evaluation approved in the Modelling App. The prediction setup name is filled in.
  2. Enter a job name. CHAP uses this name for the prediction job.

Prediction evaluation and job name

  1. Select the training period and the number of periods to forecast.

Training period and number of periods to forecast

  1. Select organisation units by level, or pick them from the hierarchy.

Organisation units for the prediction

  1. Review the covariates and the DHIS2 data items shown in the configuration.

Covariates and the DHIS2 data items they write to

  1. Click Add step.
  1. Click Add step. Name it, for example Poll CHAP Prediction.
  2. Under Handler, select Prediction Poll.

Handler list with Prediction Poll selected

  1. Click Add step.
  1. Click Add step. Name it, for example Download CHAP Prediction.
  2. Under Handler, select Prediction Data Download.

Handler list with Prediction Data Download selected

  1. Review the forecast outputs and where they will be written.

Forecast outputs and where they will be written

  1. Click Add step.
  1. Click Add step. Name it, for example Upload Prediction to DHIS2.
  2. Under Handler, select DHIS2 Data Upload.
  3. Select the import strategy for the prediction results. The control is the same import strategy as the covariate upload above.
  4. Click Add step.

Drag the nine-dot handle if a step is out of order. For two covariates the order is: sync, then temperature create-poll-download-upload, then precipitation create-poll-download-upload, then analytics, trigger, poll, download, and upload.

Steps lists every covariate block, then analytics, then the four prediction steps. After you trigger the pipeline, the forecast values appear in the sectioned dataset in Data Entry.

Schedule the pipeline so each run moves forward to the latest periods.