-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from RADAR-base/feat/initial-components
Add initial enrolment flow
- Loading branch information
Showing
28 changed files
with
1,605 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export const consentQuestions = [ | ||
{ | ||
field_name: "consent", | ||
form_name: "consent", | ||
section_header: "", | ||
field_type: "info", | ||
field_label: "", | ||
select_choices_or_calculations: [ | ||
{ | ||
label: | ||
"We invite you to take part in this research study. This Participant Information Questionnaire will explain the study to help you decide whether you want to take part. It is entirely up to you whether or not to join the study.", | ||
code: "Patient Information Sheet", | ||
}, | ||
{ | ||
label: | ||
"If you join the study you will contribute to research that might help find ways to improve health and medical care. However, taking part does not give direct benefits. You will be able to see the data being recorded each day, to give you information on your activity and mobility.", | ||
code: "Data Information", | ||
}, | ||
], | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "2MW", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
{ | ||
field_name: "has_consent", | ||
form_name: "consent", | ||
section_header: "", | ||
field_type: "checkbox", | ||
field_label: "I give my consent to take part in this study.", | ||
select_choices_or_calculations: "", | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "yes", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
export const eligibilityQuestions = [ | ||
{ | ||
field_name: "age", | ||
form_name: "eligibility", | ||
section_header: "", | ||
field_type: "text", | ||
field_label: "How old are you?", | ||
select_choices_or_calculations: "", | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "yes", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
{ | ||
field_name: "city", | ||
form_name: "eligibility", | ||
section_header: "", | ||
field_type: "text", | ||
field_label: "What city do you live in?", | ||
select_choices_or_calculations: "", | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "yes", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
{ | ||
field_name: "has_fitbit", | ||
form_name: "eligibility", | ||
section_header: "", | ||
field_type: "text", | ||
field_label: "Do you have a Fitbit?", | ||
select_choices_or_calculations: "", | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "yes", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
{ | ||
field_name: "is_eligible", | ||
form_name: "eligibility", | ||
section_header: "", | ||
field_type: "text", | ||
field_label: "Eligible", | ||
select_choices_or_calculations: "", | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const profileQuestions = [ | ||
{ | ||
field_name: "first_name", | ||
form_name: "profile", | ||
field_type: "text", | ||
field_label: "First Name", | ||
required_field: "yes", | ||
}, | ||
{ | ||
field_name: "last_name", | ||
form_name: "profile", | ||
field_type: "text", | ||
field_label: "Last Name", | ||
required_field: "yes", | ||
}, | ||
{ | ||
field_name: "address", | ||
form_name: "profile", | ||
field_type: "text", | ||
field_label: "Address", | ||
required_field: "yes", | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export const studyInfo = [ | ||
{ | ||
field_name: "consent", | ||
form_name: "consent", | ||
section_header: "", | ||
field_type: "info", | ||
field_label: "", | ||
select_choices_or_calculations: [ | ||
{ | ||
label: | ||
"This study aims to understand the effects of eating disorders. Participants will be askeed to fill out questionnaires and undergo non-invaise tests over the course of one year.", | ||
code: "Study Overview", | ||
}, | ||
], | ||
field_note: "", | ||
text_validation_type_or_show_slider_number: "", | ||
text_validation_min: "", | ||
text_validation_max: "", | ||
identifier: "", | ||
branching_logic: "", | ||
required_field: "", | ||
custom_alignment: "", | ||
question_number: "", | ||
matrix_group_name: "2MW", | ||
matrix_ranking: "", | ||
field_annotation: "", | ||
evaluated_logic: "", | ||
}, | ||
] |
Oops, something went wrong.