User Tools

Site Tools


medal-data:administrator-guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
medal-data:administrator-guide [2022/04/28 11:51] – [Assign a role to a user] Sylvainmedal-data:administrator-guide [2022/05/19 11:45] (current) – [Assign a role to a user] Sylvain
Line 55: Line 55:
   - Click on ''Update''.   - Click on ''Update''.
  
-=== Repair the database permission ===+==== Repair the database permission ====
  
 If you are missing permissions or if some permissions are not assigned to the right role. Or if some items are missing in the left menu. Run the command: If you are missing permissions or if some permissions are not assigned to the right role. Or if some items are missing in the left menu. Run the command:
Line 62: Line 62:
 </code> </code>
  
-=== Update of the algorithm  ===+==== Update of the algorithm  ====
 If for some reason you find that the algorithm used by the tablets is not up to date.  Run the command: If for some reason you find that the algorithm used by the tablets is not up to date.  Run the command:
 <code> <code>
Line 70: Line 70:
  
  
-=== production.ERROR: Missing key 'createdAt' on data for 'patient' error  ===+==== production.ERROR: Missing key 'createdAt' on data for 'patient' error  ====
  
 If you spot this error in the log file, then you should run the command : If you spot this error in the log file, then you should run the command :
Line 81: Line 81:
 </code> </code>
  
-=== The export date is not the current date  ===+==== The export date is not the current date  ====
  
 First we need to know why the export didn't work. For that open the log file at 03:20AM and communicate the error.  First we need to know why the export didn't work. For that open the log file at 03:20AM and communicate the error. 
Line 90: Line 90:
  
  
-=== JSON Failure Folder Not Empty ===+==== JSON Failure Folder Not Empty ====
 If you have some JSON inside the Failed Folder table, then please retrieve the error in the log file. You can search with the JSON file name. Share with us the  error. If you have some JSON inside the Failed Folder table, then please retrieve the error in the log file. You can search with the JSON file name. Share with us the  error.
 When we have corrected the issue, then you can reload the failed folder with this command: When we have corrected the issue, then you can reload the failed folder with this command:
Line 97: Line 97:
 </code> </code>
  
-=== Some Examples === +==== Some Examples ==== 
  
-== Count the number of medical cases which are not yet synchronize with REDCap inside the PostgreSQL database ==+=== Count the number of medical cases which are not yet synchronize with REDCap inside the PostgreSQL database ===
 <code bash> <code bash>
 dokku postgres:enter <postgres_container_name> psql -U postgres <postgres_database_name> -c "SELECT count(*) FROM public.medical_cases where redcap=false" dokku postgres:enter <postgres_container_name> psql -U postgres <postgres_database_name> -c "SELECT count(*) FROM public.medical_cases where redcap=false"
 </code> </code>
  
-== Retrieve environment variable ==+=== Retrieve environment variable ===
 [[https://doc.medal-suite.org/doku.php?id=medal-data:variables|More information about medAL-data environment variable]] [[https://doc.medal-suite.org/doku.php?id=medal-data:variables|More information about medAL-data environment variable]]
 <code bash> <code bash>
Line 113: Line 113:
 </code> </code>
  
-== Set a environment variable ==+=== Set a environment variable ===
 <code bash> <code bash>
 sudo dokku config:set <app_name> MAIL_USERNAME="exemple@mail.com" sudo dokku config:set <app_name> MAIL_USERNAME="exemple@mail.com"
medal-data/administrator-guide.txt · Last modified: 2022/05/19 11:45 by Sylvain