-
Notifications
You must be signed in to change notification settings - Fork 28
Advanced Configuration
For further configuration regarding diseases and features, you have to connect to the database and change the values via SQL-commands.
NOTE! If you are using the mobile app, make sure to always set the changedate field to the current date (via now()) whenever you change something in the database. This is mandatory for correct synchronizing with the mobile app!
If you want to limit SORMAS to only specific diseases, you can disable unwanted diseases via database:
# Exec into the postgres container
docker exec -it <id-or-name-of-postgres-container> psql -U <sormas-user> <sormas-db>
# For example disable all diseases except Covid-19:
UPDATE diseaseconfiguration SET active = false, changedate = now() WHERE disease != 'CORONAVIRUS';
For a detailed information about the current features, please visit:
https://github.com/hzi-braunschweig/SORMAS-Project/blob/master/SERVER_CUSTOMIZATION.md#feature-configuration
To enable or disable a feature, connect to the database:
# Exec into the postgres container
docker exec -it <id-or-name-of-postgres-container> psql -U <sormas-user> <sormas-db>
# Enable a feature:
UPDATE featureconfiguration SET enabled = 't', changedate = now() WHERE featuretype = '<FEATURE_YOU_LIKE_TO_ENABLE>';
# Disable a feature:
UPDATE featureconfiguration SET enabled = 'f', changedate = now() WHERE featuretype = '<FEATURE_YOU_LIKE_TO_DISABLE>';
By default, the follow-up duration is set to 14 days. If the feature CASE_FOLLOWUP is enabled, this is the minimum amount of days for follow up cases. If you wish to set this to another value, you can change this setting at the diseaseconfiguration table.
# Exec into the postgres container
docker exec -it <id-or-name-of-postgres-container> psql -U <sormas-user> <sormas-db>
# Change followup duration:
UPDATE diseaseconfiguration SET followupduration = '<NUMBER_OF_DAYS>', changedate = now() WHERE disease = '<DISEASE>';