Skip to content

immerse-eu/flatten_json_therapy_designer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatten Terapy designer: NEW flatten data

Description:

This script integrates data from two different sources: design files and patient data collected from various sites. After flattening the data, it produces four distinct tables: Results, Variables, Scales, and Triggers. These tables can be exported as either CSV or XLSX files.

Instructions:

  1. Install requirements.txt and further libraries when required.
pip install -r requirements.txt
  1. Load the JSON files into "input" folder located in "graphql-server".
  2. In server.py, modify the version of design file to load, "Design_1_0_0" or "Design_1_0_1" (the specific lines to modify are clearly commented in the code), and run:
python server.py
  1. Playground environment (optional). This environment enables to make customized queries from all JSON files directly from browser. To query directly from browser, select the main "query_design" and customize as required.

  2. From notes.txt, verify that all IDs included are present in the "design files." When needed, add any missing IDs to the design files and update main.py(the specific lines to modify are clearly commented in the code).

  3. Run main.py.

python main.py

About

Flattens theradydesigner exported data from json to tabular format and converts IDs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •