This is a basic guide for exporting data from the neo tree postgres database to the DHIS2 System.
This guide is a basic guide tailor made for specific neo tree scripts and a specific DHIS2 dataset. Efforts to create a generic component are underway.
- git clone https://github.com/mbaradza/neotreeDHISCronJob.git
- Add a .env file and add all configurations that are referenced in /config/dev
- cd neotree-dhis2-api
- npm install
- npm run start
You can change the scheduled intervals in the file /helper/dhisCronJob.js line number 9. The default is every second
- Running DHIS2 System
- Running Neotree Mobile App through which you can Export to JsonAPI
- Have the "NeoTree DHIS Admissions" and "NeoTree DHIS Discharge" script on the Mobile App
- Connection to the postgres Dbase to which your Data is bein exported