Skip to content

Commit 0651e95

Browse files
Merge pull request #194 from NHSDigital/fix-gender-filter
Align gender filter to API
2 parents a51a292 + e965e11 commit 0651e95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mavis/reporting/api_client/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def get_year_groups(self) -> list[dict]:
107107
# https://www.datadictionary.nhs.uk/attributes/person_gender_code.html
108108
def get_genders(self) -> list[dict]:
109109
return [
110-
{"value": "2", "text": "Female"},
111-
{"value": "1", "text": "Male"},
112-
{"value": "9", "text": "Other"},
113-
{"value": "0", "text": "Unknown"},
110+
{"value": "female", "text": "Female"},
111+
{"value": "male", "text": "Male"},
112+
{"value": "not specified", "text": "Not specified"},
113+
{"value": "not known", "text": "Not known"},
114114
]

0 commit comments

Comments
 (0)