Skip to the content.

dhis2-godata-interoperability

Scripts to exchange data between dhis2 and Go.Data instances.

Architecture summary

Requirements

Installation

Actions

The functionallity of the package is splitted among different steps.

Configuration

In order to use the dhis2-godata-interoperability script, a couple of things have to be configured in ./config/config.js, or ./config/config.dev.js for development/testing (some of them are mandatory, like the connection to the APIs, and others have default values that can be used if there’s no need for changing them).

// Connection example
module.exports = {
  GoDataAPIConfig: {
    baseURL: 'http://mygodatainstance.com/api',
    credentials: {
      email: 'test@email.com',
      password: '123412341234'
    }
  },
  DHIS2APIConfig: {
    baseURL: 'https://mydhis2instance.com/api',
    credentials: {
      user: 'dhis2user',
      password: '123412341234'
    }
  }
}
module.exports = {
  rootID: 'adkfj2o3i'
}
module.exports = {
  countries: [ 'Trainingland' ]
}

Testing

npm run test