From 3677f203f3a32a47a2370fd975f1175607f6e4f3 Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Thu, 9 Jul 2026 08:15:56 +0100 Subject: [PATCH 1/4] [IOPS-4427] Questionnaire for sex and ethnicity Required as PDS does not persist this information and Patient resources are disallowed by PDM platform --- ...stionnaire-Patient-Extensions-Example.json | 41 +++++++++++++++++++ ...reResponse-Patient-Extensions-Example.json | 40 ++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Questionnaire/Questionnaire-Patient-Extensions-Example.json create mode 100644 QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json diff --git a/Questionnaire/Questionnaire-Patient-Extensions-Example.json b/Questionnaire/Questionnaire-Patient-Extensions-Example.json new file mode 100644 index 0000000..84d3098 --- /dev/null +++ b/Questionnaire/Questionnaire-Patient-Extensions-Example.json @@ -0,0 +1,41 @@ +{ + "resourceType": "Questionnaire", + "url": "https://fhir.nhs.uk/Questionnaire/Patient-Extensions-Example", + "title": "Patient Extensions", + "status": "draft", + "purpose": "For recording ethnicity and sex at birth", + "item": [ + { + "linkId": "364699009", + "code": [ + { + "system": "http://snomed.info/sct", + "code": "364699009", + "display": "Ethnic group" + } + ], + "prefix": "P-9", + "text": "Patient - Ethnicity", + "type": "choice", + "required": true, + "repeats": false, + "answerValueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-EthnicCategory" + }, + { + "linkId": "1345193002", + "code": [ + { + "system": "http://snomed.info/sct", + "code": "1345193002", + "display": "Sex of neonate assigned at birth" + } + ], + "prefix": "P-10", + "text": "Patient - Sex defined at birth", + "type": "choice", + "required": true, + "repeats": false, + "answerValueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-BirthSex" + } + ] +} \ No newline at end of file diff --git a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json new file mode 100644 index 0000000..9d3fce3 --- /dev/null +++ b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json @@ -0,0 +1,40 @@ +{ + "resourceType": "QuestionnaireResponse", + "questionnaire": "https://fhir.nhs.uk/Questionnaire/Patient-Extensions-Example", + "status": "completed", + "subject": { + "identifier": { + "system": "https://fhir.nhs.uk/Id/nhs-number", + "value": "7449306524" + } + }, + "authored": "2023-10-01T15:00:00Z", + "item": [ + { + "linkId": "364699009", + "text": "Patient - Ethnicity", + "answer": [ + { + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland", + "code": "A", + "display": "British, Mixed British" + } + } + ] + }, + { + "linkId": "1345193002", + "text": "Patient - Sex defined at birth", + "answer": [ + { + "valueCoding": { + "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-BirthSex", + "code": "male", + "display": "Male" + } + } + ] + } + ] +} \ No newline at end of file From 983abd6e3d35792f94a761bd60d075c8261a16c2 Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Thu, 9 Jul 2026 11:57:34 +0100 Subject: [PATCH 2/4] Updated codesystem --- .../QuestionnaireResponse-Patient-Extensions-Example.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json index 9d3fce3..21472c4 100644 --- a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json +++ b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json @@ -29,7 +29,7 @@ "answer": [ { "valueCoding": { - "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-BirthSex", + "system": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender"", "code": "male", "display": "Male" } From dbea35adb990df88cc50742d356edee10ae8c1b5 Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Thu, 9 Jul 2026 11:59:03 +0100 Subject: [PATCH 3/4] Update QuestionnaireResponse-Patient-Extensions-Example.json --- .../QuestionnaireResponse-Patient-Extensions-Example.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json index 21472c4..72a38f8 100644 --- a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json +++ b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json @@ -30,7 +30,7 @@ { "valueCoding": { "system": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender"", - "code": "male", + "code": "M", "display": "Male" } } From 5b2cdbe868589ac6429d6a29f1ce17d93008b2c6 Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Thu, 9 Jul 2026 17:27:51 +0100 Subject: [PATCH 4/4] Update QuestionnaireResponse-Patient-Extensions-Example.json --- .../QuestionnaireResponse-Patient-Extensions-Example.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json index 72a38f8..6aeb0b3 100644 --- a/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json +++ b/QuestionnaireResponse/QuestionnaireResponse-Patient-Extensions-Example.json @@ -29,7 +29,7 @@ "answer": [ { "valueCoding": { - "system": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender"", + "system": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender", "code": "M", "display": "Male" }