-
Notifications
You must be signed in to change notification settings - Fork 1
Add 3 separate sets of demographics questions #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
eed4d5e
feat: add all NHS pay bands
Joe-Heffer-Shef a863515
Create role-specific demographics options
Joe-Heffer-Shef 43c6222
Add demography config file options
Joe-Heffer-Shef 3bb6bc9
Data integrity for Survey.survey_body_path
Joe-Heffer-Shef e890615
Tidy up survey config file settings
Joe-Heffer-Shef df68189
Allow the user to manually set consent and demog.
Joe-Heffer-Shef d30c8b2
feat: add `Survey.reset()` method
Joe-Heffer-Shef c980d4a
chore: tweak code
Joe-Heffer-Shef 7828544
feat: select target profession during survey creation
Joe-Heffer-Shef 4d45963
chore: configure profession enum
Joe-Heffer-Shef 8d3977d
chore: remove redundant import
Joe-Heffer-Shef ff029b6
fix: remove redundant tests
Joe-Heffer-Shef 9103dfe
chore: fix unit test
Joe-Heffer-Shef 8e124a6
chore: fix unit test
Joe-Heffer-Shef 5022210
chore: fix unit test
Joe-Heffer-Shef 6b61fab
chore: fix unit tests
Joe-Heffer-Shef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
170 changes: 170 additions & 0 deletions
170
data/survey_config/demography_only_config_midwives.json
This file contains hidden or 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,170 @@ | ||
{ | ||
"sections": [ | ||
{ | ||
"title": "Demographic", | ||
"type": "demographic", | ||
"description": "Please fill in your demographic information", | ||
"fields": [ | ||
{ | ||
"type": "text", | ||
"label": "What is your age?", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [], | ||
"enforceValueConstraints": false, | ||
"maxNumChar": 500, | ||
"minNumValue": 0, | ||
"maxNumValue": 100, | ||
"textType": "INTEGER_TEXT", | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "radio", | ||
"label": "What is your gender?", | ||
"description": "", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [ | ||
"Male", | ||
"Female", | ||
"Non-binary", | ||
"Prefer not to say" | ||
], | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "text", | ||
"label": "How long have you been working in your current organisation? (Number of years)", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [], | ||
"enforceValueConstraints": false, | ||
"maxNumChar": 500, | ||
"minNumValue": 0, | ||
"maxNumValue": 100, | ||
"textType": "INTEGER_TEXT", | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "radio", | ||
"label": "What is your current pay band?", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [ | ||
"Band 2", | ||
"Band 3", | ||
"Band 4", | ||
"Band 5", | ||
"Band 6", | ||
"Band 7", | ||
"Band 8a", | ||
"Band 8b", | ||
"Band 8c", | ||
"Band 8d", | ||
"Band 9" | ||
], | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "radio", | ||
"label": "What is your profession?", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [ | ||
"Registered Midwife", | ||
"Community Midwife", | ||
"Hospital Midwife", | ||
"Specialist Midwife", | ||
"Senior Midwife", | ||
"Lead/Manager Midwife", | ||
"Consultant Midwife", | ||
"Research Midwife", | ||
"Maternity Support Worker", | ||
"Midwifery Educator", | ||
"Other" | ||
], | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"description": "", | ||
"disabled": false, | ||
"enforceValueConstraints": false, | ||
"label": "What is your job title?", | ||
"maxNumChar": 500, | ||
"maxNumValue": 100, | ||
"minNumValue": 0, | ||
"options": [ | ||
], | ||
"required": true, | ||
"sublabels": [ | ||
], | ||
"textType": "PLAIN_TEXT", | ||
"type": "text", | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "radio", | ||
"label": "What is your highest level of qualification?", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [ | ||
"No qualification", | ||
"Diploma", | ||
"Degree", | ||
"Masters", | ||
"PhD/Doctorate", | ||
"Other" | ||
], | ||
"disabled": false, | ||
"readOnly": true | ||
}, | ||
{ | ||
"description": "", | ||
"disabled": false, | ||
"enforceValueConstraints": true, | ||
"label": "How many years have you been qualified?", | ||
"maxNumChar": 500, | ||
"maxNumValue": 100, | ||
"minNumValue": 0, | ||
"options": [], | ||
"required": true, | ||
"sublabels": [], | ||
"textType": "INTEGER_TEXT", | ||
"type": "text", | ||
"readOnly": true | ||
}, | ||
{ | ||
"type": "radio", | ||
"label": "What is your ethnicity?", | ||
"required": true, | ||
"sublabels": [], | ||
"options": [ | ||
"Asian British - Bangladeshi", | ||
"Asian British - Indian", | ||
"Asian British - Pakistani", | ||
"Asian - Chinese", | ||
"Asian - other", | ||
"Black British - African", | ||
"Black British - Caribbean", | ||
"Black British - other", | ||
"Mixed - Black African and White", | ||
"Mixed - Black Asian and White", | ||
"Mixed - Caribbean and White", | ||
"Mixed - other", | ||
"White - British", | ||
"White - Irish", | ||
"White - Romany", | ||
"Other" | ||
], | ||
"disabled": false, | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these options okay? It wasn't clear from the communications with Trixie etc