Skip to content

Commit 8282460

Browse files
[ERSSUP-81413]-[]-[RM27b - OAS modelling for End Triage Reasons]-[DMW]
1 parent 98d4a6d commit 8282460

File tree

5 files changed

+167
-0
lines changed

5 files changed

+167
-0
lines changed

sandbox/src/mocks/stu3/getCodeSystem/responses/ReferralCancellationReasonCodeSystem.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@
6565
{
6666
"code": "canCancelAppointment",
6767
"valueBoolean": false
68+
},
69+
{
70+
"code": "businessFunction",
71+
"valueCoding": {
72+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
73+
"code": "SERVICE_PROVIDER_CLINICIAN"
74+
}
75+
},
76+
{
77+
"code": "providerUsage",
78+
"valueCoding": {
79+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
80+
"code": "END_TRIAGE"
81+
}
6882
}
6983
]
7084
},
@@ -101,6 +115,20 @@
101115
{
102116
"code": "canCancelAppointment",
103117
"valueBoolean": false
118+
},
119+
{
120+
"code": "businessFunction",
121+
"valueCoding": {
122+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
123+
"code": "SERVICE_PROVIDER_CLINICIAN"
124+
}
125+
},
126+
{
127+
"code": "providerUsage",
128+
"valueCoding": {
129+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
130+
"code": "END_TRIAGE"
131+
}
104132
}
105133
]
106134
},
@@ -119,6 +147,20 @@
119147
{
120148
"code": "canCancelAppointment",
121149
"valueBoolean": false
150+
},
151+
{
152+
"code": "businessFunction",
153+
"valueCoding": {
154+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
155+
"code": "SERVICE_PROVIDER_CLINICIAN"
156+
}
157+
},
158+
{
159+
"code": "providerUsage",
160+
"valueCoding": {
161+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
162+
"code": "END_TRIAGE"
163+
}
122164
}
123165
]
124166
},
@@ -176,6 +218,20 @@
176218
{
177219
"code": "canCancelAppointment",
178220
"valueBoolean": false
221+
},
222+
{
223+
"code": "businessFunction",
224+
"valueCoding": {
225+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
226+
"code": "SERVICE_PROVIDER_CLINICIAN"
227+
}
228+
},
229+
{
230+
"code": "providerUsage",
231+
"valueCoding": {
232+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
233+
"code": "END_TRIAGE"
234+
}
179235
}
180236
]
181237
},
@@ -194,6 +250,20 @@
194250
{
195251
"code": "canCancelAppointment",
196252
"valueBoolean": false
253+
},
254+
{
255+
"code": "businessFunction",
256+
"valueCoding": {
257+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
258+
"code": "SERVICE_PROVIDER_CLINICIAN"
259+
}
260+
},
261+
{
262+
"code": "providerUsage",
263+
"valueCoding": {
264+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
265+
"code": "END_TRIAGE"
266+
}
197267
}
198268
]
199269
},
@@ -212,6 +282,20 @@
212282
{
213283
"code": "canCancelAppointment",
214284
"valueBoolean": false
285+
},
286+
{
287+
"code": "businessFunction",
288+
"valueCoding": {
289+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
290+
"code": "SERVICE_PROVIDER_CLINICIAN"
291+
}
292+
},
293+
{
294+
"code": "providerUsage",
295+
"valueCoding": {
296+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
297+
"code": "END_TRIAGE"
298+
}
215299
}
216300
]
217301
},
@@ -230,6 +314,20 @@
230314
{
231315
"code": "canCancelAppointment",
232316
"valueBoolean": false
317+
},
318+
{
319+
"code": "businessFunction",
320+
"valueCoding": {
321+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
322+
"code": "SERVICE_PROVIDER_CLINICIAN"
323+
}
324+
},
325+
{
326+
"code": "providerUsage",
327+
"valueCoding": {
328+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
329+
"code": "END_TRIAGE"
330+
}
233331
}
234332
]
235333
},
@@ -404,6 +502,20 @@
404502
{
405503
"code": "canCancelAppointment",
406504
"valueBoolean": false
505+
},
506+
{
507+
"code": "businessFunction",
508+
"valueCoding": {
509+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BusinessFunction-1",
510+
"code": "SERVICE_PROVIDER_CLINICIAN"
511+
}
512+
},
513+
{
514+
"code": "providerUsage",
515+
"valueCoding": {
516+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1",
517+
"code": "END_TRIAGE"
518+
}
407519
}
408520
]
409521
},

specification/components/stu3/schemas/CodeSystemConcept.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ properties:
5757
| businessFunction | APPOINTMENT-CANCELLATION-REASON/REFERRAL-CANCELLATION-REASON |
5858
| CanCancelAppointment | REFERRAL-CANCELLATION-REASON |
5959
| RequestCancellationReferrerUsage | REFERRAL-CANCELLATION-REASON |
60+
| RequestCancellationProviderUsage | REFERRAL-CANCELLATION-REASON |
6061
| DeferToProviderContactDays | PRIORITY |
6162
| TriageContactDays | PRIORITY |
6263
@@ -74,5 +75,6 @@ properties:
7475
- $ref: 'codings/BusinessFunction.yaml'
7576
- $ref: 'codings/CanCancelAppointment.yaml'
7677
- $ref: 'codings/RequestCancellationReferrerUsage.yaml'
78+
- $ref: 'codings/RequestCancellationProviderUsage.yaml'
7779
- $ref: 'codings/DeferToProviderContactDays.yaml'
7880
- $ref: 'codings/TriageContactDays.yaml'

specification/components/stu3/schemas/CodeSystemProperties.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ description: |
1515
| BusinessFunction | APPOINTMENT-CANCELLATION-REASON / REFERRAL-CANCELLATION-REASON |
1616
| CanCancelAppointment | REFERRAL-CANCELLATION-REASON |
1717
| ReferrerUsage | REFERRAL-CANCELLATION-REASON |
18+
| ProviderUsage | REFERRAL-CANCELLATION-REASON |
1819
| DeferToProviderContactDays | PRIORITY |
1920
| TriageContactDays | PRIORITY |
2021
@@ -31,5 +32,6 @@ items:
3132
- $ref: 'properties/BusinessFunction.yaml'
3233
- $ref: 'properties/CanCancelAppointment.yaml'
3334
- $ref: 'properties/ReferrerUsage.yaml'
35+
- $ref: 'properties/ProviderUsage.yaml'
3436
- $ref: 'properties/DeferToProviderContactDays.yaml'
3537
- $ref: 'properties/TriageContactDays.yaml'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
title: RequestCancellationProviderUsage
2+
description: This will only be returned when `codeSystemType` is `REFERRAL-CANCELLATION-REASON`
3+
type: object
4+
required:
5+
- code
6+
- valueCoding
7+
properties:
8+
code:
9+
type: string
10+
enum:
11+
- providerUsage
12+
example: 'providerUsage'
13+
valueCoding:
14+
type: object
15+
required:
16+
- system
17+
- code
18+
properties:
19+
system:
20+
type: string
21+
enum:
22+
- 'https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1'
23+
example: 'https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralRequestCancellationReasonUsage-1'
24+
code:
25+
type: string
26+
enum:
27+
- END_TRIAGE
28+
example: 'END_TRIAGE'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: ProviderUsage
2+
description: This will only be returned when codeSystemType is REFERRAL-CANCELLATION-REASON
3+
type: object
4+
required:
5+
- code
6+
- uri
7+
- type
8+
properties:
9+
code:
10+
type: string
11+
enum:
12+
- providerUsage
13+
example: 'providerUsage'
14+
uri:
15+
type: string
16+
enum:
17+
- 'https://fhir.nhs.uk/STU3/CodeSystem/eRS-Concept-Properties-1#providerUsage'
18+
example: 'https://fhir.nhs.uk/STU3/CodeSystem/eRS-Concept-Properties-1#providerUsage'
19+
type:
20+
type: string
21+
enum:
22+
- Coding
23+
example: 'Coding'

0 commit comments

Comments
 (0)