I-TECH-UW / mydhi-cht-config

CHT configuration project for Jamaica mHealth
0 stars 2 forks source link

mydhi-cht-config

CHT configuration project for Jamaica mHealth

Overview

This is a repository for the Jamaica mHealth CHT application project. To learn more about CHT check out this resource.

Set-up

More details on this here

More information about CHT Local Environment Setup here

Read about how to use a valid TSL/SSL certiifcate for the server here

Loading the jamaica mHealth clinical app forms in CHT

After following the steps above, you now have a running CHT instance on which to deploy the application.To deploy and load jamaica mHealth clinical app forms on the running CHT instance clone mydhi-cht-config app,navigate to the config folder and run

$ cht --url=https://<username>:<password>@<domain-name> convert-app-forms upload-app-forms -- <app-form-name>

The current clinical app forms include:

Note 1:Be sure to replace the value "app-form-name" with the name of the clinical form you are uploading in CHT forexample "care" for Level of care Assessment form, "treatment" for Treatment Readiness Assessment form and "srq" for SRQ form

Note 2:Also be sure to replace the values "username" and "password" with the actual username and password of your test instance.

Loading user roles and permissions

Each user is assigned one of the defined roles which can be defined using the App Management app, which is represented by the roles object of the app-settings.json file

Permissions are defined by the permissions object in the app_settings.json or base_settings.json file. Permissions can also be configured using the App Management app and permission is defined as an array of user role identifiers that have the permission granted.