This guide provides step-by-step instructions on how to set up and run the CommCare Configuration Script, which simplifies the configuration process for a CommCare sync configuration with the EMR.
- Open a terminal/command prompt.
- Navigate to the app directory.
- Run the script:
rails r bin/config_commcare.rb
-
Choose environment: Enter '1' for Development or '2' for Production.
-
Loading Excel Data
-
The script loads data from specified environment.
- Enter site code to identify the health facility.
- Review facility information displayed.
- Confirm the correctness.
- Enter CommCare username and password.
- The script compiles collected info into a configuration object.
- Updates a YAML file 'config/ait.yml'.
- Script provides feedback on configuration save.