Skip to content

Commit 34a6051

Browse files
committed
Extensions and profile for RelatedPerson
1 parent e96ac84 commit 34a6051

12 files changed

Lines changed: 317 additions & 16 deletions

CapabilityStatement/CapabilityStatement-genomics-requirements.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"type": "RelatedPerson",
132-
"profile": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson"
132+
"profile": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-RelatedPerson-Genomics"
133133
},
134134
{
135135
"type": "Specimen",

StructureDefinition/Extension-Genomics-AdditionalContact.StructureDefinition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-AdditionalContact",
44
"version": "0.1.0",
5-
"name": "ExtensionGenomicsAdditionalContact",
5+
"name": "GenomicsAdditionalContact",
66
"status": "draft",
77
"date": "2022-12-05",
88
"publisher": "NHS Digital",
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"id": "Extension-Genomics-BirthSex",
4+
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-BirthSex",
5+
"version": "0.1.0",
6+
"name": "GenomicsBirthSex",
7+
"title": "Genomics BirthSex",
8+
"status": "draft",
9+
"date": "2022-12-05",
10+
"publisher": "NHS Digital",
11+
"contact": [
12+
{
13+
"name": "NHS Digital",
14+
"telecom": [
15+
{
16+
"system": "email",
17+
"value": "interoperabilityteam@nhs.net",
18+
"use": "work",
19+
"rank": 1
20+
}
21+
]
22+
}
23+
],
24+
"description": "An extension to support the patient's phenotypic sex at birth.",
25+
"purpose": "This extension extends the Patient resource to support the exchange of the patient's phenotypic sex at birth information, as a Codeable Concept, which is currently not supported by the FHIR standard.",
26+
"copyright": "Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html.",
27+
"fhirVersion": "4.0.1",
28+
"mapping": [
29+
{
30+
"identity": "rim",
31+
"uri": "http://hl7.org/v3",
32+
"name": "RIM Mapping"
33+
}
34+
],
35+
"kind": "complex-type",
36+
"abstract": false,
37+
"context": [
38+
{
39+
"type": "element",
40+
"expression": "RelatedPerson"
41+
}
42+
],
43+
"type": "Extension",
44+
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
45+
"derivation": "constraint",
46+
"differential": {
47+
"element": [
48+
{
49+
"id": "Extension",
50+
"path": "Extension",
51+
"short": "An extension to support the patient's phenotypic sex at birth.",
52+
"definition": "An extension to support the patient's phenotypic sex at birth.",
53+
"max": "1"
54+
},
55+
{
56+
"id": "Extension.url",
57+
"path": "Extension.url",
58+
"fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-BirthSex"
59+
},
60+
{
61+
"id": "Extension.value[x]",
62+
"path": "Extension.value[x]",
63+
"short": "A code that defines a patient's phenotypic sex at birth.",
64+
"definition": "A code that defines a patient's phenotypic sex at birth.",
65+
"min": 1,
66+
"type": [
67+
{
68+
"code": "code"
69+
}
70+
],
71+
"binding": {
72+
"strength": "required",
73+
"valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-BirthSex"
74+
}
75+
}
76+
]
77+
}
78+
}

StructureDefinition/Extension-Genomics-Coverage.StructureDefinition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-Coverage",
44
"version": "0.1.0",
5-
"name": "ExtensionGenomicsCoverage",
5+
"name": "GenomicsCoverage",
66
"status": "draft",
77
"date": "2022-12-05",
88
"publisher": "NHS Digital",
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-Deceased",
4+
"version": "0.1.0",
5+
"name": "GenomicsDeceased",
6+
"status": "draft",
7+
"date": "2022-12-05",
8+
"fhirVersion": "4.0.1",
9+
"kind": "complex-type",
10+
"abstract": false,
11+
"context": [
12+
{
13+
"type": "element",
14+
"expression": "RelatedPerson"
15+
}
16+
],
17+
"type": "Extension",
18+
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
19+
"derivation": "constraint",
20+
"differential": {
21+
"element": [
22+
{
23+
"id": "Extension",
24+
"path": "Extension",
25+
"short": "Life status",
26+
"definition": "WGS relative's life status."
27+
},
28+
{
29+
"id": "Extension.url",
30+
"path": "Extension.url",
31+
"fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-Deceased"
32+
},
33+
{
34+
"id": "Extension.value[x]",
35+
"path": "Extension.value[x]",
36+
"short": "True if deceased",
37+
"type": [
38+
{
39+
"code": "boolean"
40+
}
41+
]
42+
}
43+
]
44+
}
45+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"id": "Extension-Genomics-EthnicCategory",
4+
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-EthnicCategory",
5+
"version": "0.1.0",
6+
"name": "GenomicsEthnicCategory",
7+
"title": "Genomics Ethnic Category",
8+
"status": "active",
9+
"date": "2022-12-05",
10+
"publisher": "NHS Digital",
11+
"contact": [
12+
{
13+
"name": "NHS Digital",
14+
"telecom": [
15+
{
16+
"system": "email",
17+
"value": "interoperabilityteam@nhs.net",
18+
"use": "work",
19+
"rank": 1
20+
}
21+
]
22+
}
23+
],
24+
"description": "Information that describes the patient's ethnic category.",
25+
"purpose": "This extension extends the Patient resource to support the exchange of ethnic category information, as a Codeable Concept, which is currently not supported by the FHIR standard.",
26+
"copyright": "Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html.",
27+
"fhirVersion": "4.0.1",
28+
"mapping": [
29+
{
30+
"identity": "rim",
31+
"uri": "http://hl7.org/v3",
32+
"name": "RIM Mapping"
33+
}
34+
],
35+
"kind": "complex-type",
36+
"abstract": false,
37+
"context": [
38+
{
39+
"type": "element",
40+
"expression": "RelatedPerson"
41+
}
42+
],
43+
"type": "Extension",
44+
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
45+
"derivation": "constraint",
46+
"differential": {
47+
"element": [
48+
{
49+
"id": "Extension",
50+
"path": "Extension",
51+
"short": "Ethnic category",
52+
"definition": "The ethnicity of the subject."
53+
},
54+
{
55+
"id": "Extension.url",
56+
"path": "Extension.url",
57+
"fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-EthnicCategory"
58+
},
59+
{
60+
"id": "Extension.value[x]",
61+
"path": "Extension.value[x]",
62+
"short": "A code classifying the person's ethnicity",
63+
"definition": "A code classifying the person's ethnicity.",
64+
"min": 1,
65+
"type": [
66+
{
67+
"code": "CodeableConcept"
68+
}
69+
],
70+
"binding": {
71+
"strength": "preferred",
72+
"description": "A set of codes that define the ethnicity of a person, as specified by the person.",
73+
"valueSet": "https://fhir.hl7.org.uk/ValueSet/UKCore-EthnicCategory"
74+
}
75+
}
76+
]
77+
}
78+
}

StructureDefinition/Extension-Genomics-PriorityReason.StructureDefinition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-PriorityReason",
44
"version": "0.1.0",
5-
"name": "ExtensionGenomicsPriorityReason",
5+
"name": "GenomicsPriorityReason",
66
"status": "draft",
77
"date": "2022-12-05",
88
"fhirVersion": "4.0.1",

StructureDefinition/Extension-Genomics-nhsnumber-unavailable-reason.StructureDefinition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-nhsnumber-unavailable-reason",
44
"version": "0.1.0",
5-
"name": "NHSNumberUnavailableReason",
5+
"name": "GenomicsNHSNumberUnavailableReason",
66
"status": "draft",
77
"date": "2022-12-05",
88
"publisher": "NHS Digital",

StructureDefinition/NHSDigital-MessageDefinition-Genomics.StructureDefinition.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MessageDefinition-Genomics",
4-
"name": "NHSDigitalMessageDefinitionGenomics",
4+
"name": "NHSDigital_MessageDefinition_Genomics",
55
"status": "draft",
66
"fhirVersion": "4.0.1",
77
"kind": "resource",
@@ -11,31 +11,41 @@
1111
"derivation": "constraint",
1212
"differential": {
1313
"element": [
14-
{
14+
{
1515
"id": "MessageDefinition.url",
1616
"path": "MessageDefinition.url",
17-
"min": 1,
18-
"mustSupport": true
17+
"min": 1,
18+
"mustSupport": true
1919
},
20-
{
20+
{
2121
"id": "MessageDefinition.description",
2222
"path": "MessageDefinition.description",
23-
"min": 1,
24-
"mustSupport": true
23+
"min": 1,
24+
"mustSupport": true
2525
},
2626
{
2727
"id": "MessageDefinition.event[x]",
2828
"path": "MessageDefinition.event[x]",
2929
"binding": {
30+
"extension": [
31+
{
32+
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
33+
"valueString": "MessageEvent"
34+
},
35+
{
36+
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
37+
"valueBoolean": true
38+
}
39+
],
3040
"strength": "required",
3141
"valueSet": "https://fhir.nhs.uk/ValueSet/genomics-message-events"
3242
}
3343
},
34-
{
44+
{
3545
"id": "MessageDefinition.focus",
3646
"path": "MessageDefinition.focus",
37-
"min": 1,
38-
"mustSupport": true
47+
"min": 1,
48+
"mustSupport": true
3949
}
4050
]
4151
}

StructureDefinition/NHSDigital-MessageHeader-Genomics.StructureDefinition.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"resourceType": "StructureDefinition",
33
"url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-MessageHeader-Genomics",
4-
"name": "NHSDigitalMessageHeaderGenomics",
4+
"name": "NHSDigital_MessageHeader_Genomics",
55
"status": "draft",
66
"fhirVersion": "4.0.1",
77
"kind": "resource",
@@ -15,6 +15,16 @@
1515
"id": "MessageHeader.event[x]",
1616
"path": "MessageHeader.event[x]",
1717
"binding": {
18+
"extension": [
19+
{
20+
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
21+
"valueString": "MessageEvent"
22+
},
23+
{
24+
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
25+
"valueBoolean": true
26+
}
27+
],
1828
"strength": "extensible",
1929
"valueSet": "https://fhir.nhs.uk/ValueSet/genomics-message-events"
2030
}

0 commit comments

Comments
 (0)