https://github.com/repronim/reproschema-builder
a javascript library to build reproschema activity-set and corresponding activities
https://github.com/repronim/reproschema-builder
Last synced: 8 months ago
JSON representation
a javascript library to build reproschema activity-set and corresponding activities
- Host: GitHub
- URL: https://github.com/repronim/reproschema-builder
- Owner: ReproNim
- Created: 2019-08-14T21:10:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T03:54:35.000Z (over 3 years ago)
- Last Synced: 2025-04-13T11:11:39.423Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 7.47 MB
- Stars: 0
- Watchers: 6
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reproschema-builder
Create protocol from a CSV table:
1. Convert any survey into the format of the data dictionary template below:
### template for CSV
Variable / Field Name | Section Header | Form Name | Field Type | multipleChoice | Field Label | Choices, Calculations, OR Slider Labels | minVal | maxVal | Branching Logic (Show field only if...) |
|------------| ------------| ------------| ------------| ------------| ------------| ------------| ------------| ------------| ------------|
| | | | | | | | | | |
+ **Variable / Field Name:** The id for the survey item (required).
+ **Section Header:** Preamble for the survey item (leave blank if you don't want a preamble).
+ **Form Name:** Name of the activity the survey item is a part of (required).
+ **Field Type:** Type of reponse for survey item, currently supports:
+ `radio`
+ `select`
+ `slider`
+ `text`
+ `static`
+ `timeRange`
+ **multipleChoice:** Used for `radio` items. Set value=1 if the item is a multi-choice checklist, leave blank if single choice.
+ **Field Label:** Question/text for survey item.
+ **Choices, Calculations, OR Slider Labels:** Reponse list for survey item, in the form of `value1, choice1 | value2, choice2 | value 3, choice3` etc. Leave blank for `text`, `static`, and `timeRange` items.
+ **maxVal** Used for slider items, the text to display for max value of slider bar. Leave blank for other items types.
+ **minVal** Used for slider items, the text to display for min value of slider bar. Leave blank for other items types.
+ **Branching Logic (Show field only if...):** For conditional logic. For example, if `question2` only shows when `question1` has value 1, fill this column with `[question1]=1` for the row of `question2`. If the question has no conditional logic, leave this column blank.
### Usage:
`node tools/RedCap2ReproSchema.js path_to_your_csv_file`