Skip to content

Commit 0beef10

Browse files
committed
PriorityReason extension
1 parent e952b14 commit 0beef10

2 files changed

Lines changed: 97 additions & 2 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"resourceType": "StructureDefinition",
3+
"url": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-PriorityReason",
4+
"version": "0.1.0",
5+
"name": "ExtensionGenomicsPriorityReason",
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": "ServiceRequest"
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": "Urgency reason",
26+
"definition": "If urgent, the test request urgency reason."
27+
},
28+
{
29+
"id": "Extension.url",
30+
"path": "Extension.url",
31+
"fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-PriorityReason"
32+
},
33+
{
34+
"id": "Extension.value[x]",
35+
"path": "Extension.value[x]",
36+
"type": [
37+
{
38+
"code": "CodeableConcept"
39+
}
40+
]
41+
},
42+
{
43+
"id": "Extension.value[x].coding",
44+
"path": "Extension.value[x].coding",
45+
"slicing": {
46+
"discriminator": [
47+
{
48+
"type": "type",
49+
"path": "system"
50+
}
51+
],
52+
"rules": "open"
53+
},
54+
"fixedCoding": {
55+
"system": "http://snomed.info/sct"
56+
}
57+
}
58+
]
59+
}
60+
}

StructureDefinition/NHSDigital-ServiceRequest-Genomics.StructureDefinition.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"path": "ServiceRequest.extension",
3232
"sliceName": "additionalContact",
3333
"min": 0,
34-
"max": "*",
3534
"type": [
3635
{
3736
"code": "Extension",
@@ -47,7 +46,6 @@
4746
"path": "ServiceRequest.extension",
4847
"sliceName": "coverage",
4948
"min": 1,
50-
"max": "1",
5149
"type": [
5250
{
5351
"code": "Extension",
@@ -58,6 +56,43 @@
5856
],
5957
"isModifier": false
6058
},
59+
{
60+
"id": "ServiceRequest.extension:priorityReason",
61+
"path": "ServiceRequest.extension",
62+
"sliceName": "priorityReason",
63+
"min": 0,
64+
"max": "1",
65+
"type": [
66+
{
67+
"code": "Extension",
68+
"profile": [
69+
"https://fhir.nhs.uk/StructureDefinition/Extension-Genomics-PriorityReason"
70+
]
71+
}
72+
],
73+
"constraint": [
74+
{
75+
"key": "gen-1",
76+
"severity": "error",
77+
"human": "Extension must be present if priority is not routine",
78+
"expression": "(ServiceRequest.extension(priorityReason).exists() and ServiceRequest.priority!=routine) or ServiceRequest.priority=routine"
79+
}
80+
],
81+
"isModifier": false
82+
},
83+
{
84+
"id": "ServiceRequest.extension:priorityReason.value[x].coding",
85+
"path": "ServiceRequest.extension.value[x].coding",
86+
"slicing": {
87+
"discriminator": [
88+
{
89+
"type": "type",
90+
"path": "system"
91+
}
92+
],
93+
"rules": "open"
94+
}
95+
},
6196
{
6297
"id": "ServiceRequest.identifier",
6398
"path": "ServiceRequest.identifier",

0 commit comments

Comments
 (0)