## Tanzania HTI
In order to enable the THTI project, we're assembled a solution that allows complex workflows to be created an changed by ODK form submission. The current use case captured is this:
### HIV Flowchart
Nodes 1, 3, and 5 each represent a submitted ODK form. (Update: two additional nodes or ODK forms were added before node 1). XLS forms can be found here: HIV XLS Forms
### TB Flowchart
Nodes 1, 2, 3 and 4 each represent a submitted ODK form. XLS forms can be found here: TB XLS Forms
To accomplish this, we'll use:
- RapidPro (via the hosted textit.in service)
- Gather
- Aether Stream Consumer
- Aether Elasticsearch Consumer
The main drivers of the workflow are the Stream Consumer and RapidPro, related as described in the following diagram:
Artifacts for all of the consumers and RapidPro can be found in the appropriate folders.
### Pipelines:
All the Pipelines are available in StreamConsumer/README.md. For each pipeline, you will need to set:
- The `textit api token` for `rapidpro_auth_header` available on Textit
- The right rapidpro IDs. A rapidpro flow ID can be found in the url of the flow.
- (Optional) The username and password for the Aether/Gather.
### Credentials
All username and passwords are available in the `HTI Credentials` note in the Shared Folder on LastPass.
### Useful commands
- Get the list of form submissions (ordered by submission date): `
eha-data.org`
- Get the list of pipelines: `
eha-data.org`
- Get a specific pipeline: `
eha-data.org`
- Get the list of subscriptions: `
eha-data.org`
- Get a specific subscription: `
eha-data.org`
- Get a specific job: `
eha-data.org`
- Get the list of jobs: `
eha-data.org …