Skip to content

Commit 007a11e

Browse files
committed
Additional extension for RelatedPerson
To review against profile for patient to identify most suitable resource
1 parent 34a6051 commit 007a11e

2 files changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"url": "https://example.org/fhir/StructureDefinition/Extension-Genomics-GPPractice",
4+
"version": "0.1.0",
5+
"name": "GenomicsGPPractice",
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": "GP Practice ODS Code",
26+
"definition": "The ODS code for the WG relative's GP practice.",
27+
"max": "1"
28+
},
29+
{
30+
"id": "Extension.url",
31+
"path": "Extension.url",
32+
"fixedUri": "https://example.org/fhir/StructureDefinition/Extension-Genomics-GPPractice"
33+
},
34+
{
35+
"id": "Extension.value[x]",
36+
"path": "Extension.value[x]",
37+
"type": [
38+
{
39+
"code": "Identifier"
40+
}
41+
],
42+
"fixedIdentifier": {
43+
"system": "https://fhir.nhs.uk/Id/ods-organization-code"
44+
}
45+
},
46+
{
47+
"id": "Extension.value[x].system",
48+
"path": "Extension.value[x].system",
49+
"min": 1,
50+
"fixedUri": "https://fhir.nhs.uk/Id/ods-organization-code"
51+
},
52+
{
53+
"id": "Extension.value[x].value",
54+
"path": "Extension.value[x].value",
55+
"min": 1
56+
}
57+
]
58+
}
59+
}

StructureDefinition/NHSDigital-RelatedPerson-Genomics.StructureDefinition.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@
7474
}
7575
],
7676
"isModifier": false
77+
},
78+
{
79+
"id": "RelatedPerson.extension:gpPractice",
80+
"path": "RelatedPerson.extension",
81+
"sliceName": "gpPractice",
82+
"min": 0,
83+
"max": "1",
84+
"type": [
85+
{
86+
"code": "Extension",
87+
"profile": [
88+
"https://example.org/fhir/StructureDefinition/Extension-Genomics-GPPractice"
89+
]
90+
}
91+
],
92+
"isModifier": false
7793
}
7894
]
7995
}

0 commit comments

Comments
 (0)