Skip to content

Commit fd2b128

Browse files
Merge pull request #383 from RSE-Sheffield/feat/midwifery-tweaks
Midwife demographics tweaks
2 parents 355d58f + 868d9cb commit fd2b128

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

data/survey_config/demography_only_config_midwives.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"options": [],
1414
"enforceValueConstraints": false,
1515
"maxNumChar": 500,
16-
"minNumValue": 0,
16+
"minNumValue": 18,
1717
"maxNumValue": 100,
1818
"textType": "INTEGER_TEXT",
1919
"disabled": false,
@@ -75,12 +75,13 @@
7575
"required": true,
7676
"sublabels": [],
7777
"options": [
78-
"Registered Midwife",
78+
"Ward Sister",
7979
"Community Midwife",
8080
"Hospital Midwife",
8181
"Specialist Midwife",
8282
"Senior Midwife",
83-
"Lead/Manager Midwife",
83+
"Matron (Lead/Manager Midwife)",
84+
"Labour Ward Coordinator",
8485
"Consultant Midwife",
8586
"Research Midwife",
8687
"Maternity Support Worker",

data/survey_config/demography_only_config_nmahps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"options": [],
1414
"enforceValueConstraints": false,
1515
"maxNumChar": 500,
16-
"minNumValue": 0,
16+
"minNumValue": 18,
1717
"maxNumValue": 100,
1818
"textType": "INTEGER_TEXT",
1919
"disabled": false,

data/survey_config/demography_only_config_nurses.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"options": [],
1414
"enforceValueConstraints": false,
1515
"maxNumChar": 500,
16-
"minNumValue": 0,
16+
"minNumValue": 18,
1717
"maxNumValue": 100,
1818
"textType": "INTEGER_TEXT",
1919
"disabled": false,

survey/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ class Profession(models.TextChoices):
2929
"""
3030
NMAHPS = "NMAHPs", "Nurses, Midwives and Allied Health Professionals (NMAHPs)"
3131
NURSES = "Nurses", "Nurses"
32-
WIDMIVES = "Midwives", "Widwives"
32+
WIDMIVES = "Midwives", "Midwives"
3333

3434

3535
class Survey(models.Model):
3636
"""
3737
Represents a survey that will be sent out to a participant
3838
"""
3939

40-
name = models.CharField(max_length=200)
40+
name = models.CharField(max_length=200, help_text="Survey title")
4141
description = models.TextField(blank=True, null=True)
4242
survey_config = models.JSONField(null=True)
4343
project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, related_name="survey")

0 commit comments

Comments
 (0)