Skip to content

Commit 40ac56f

Browse files
[ERSSUP-69334]-[AM]-[ERSSUP-67504 - Book Defer Changes]-[DMW]
1 parent ba315e0 commit 40ac56f

File tree

12 files changed

+149
-21
lines changed

12 files changed

+149
-21
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "appointment",
3+
"meta": {
4+
"profile": [
5+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Appointment-1",
6+
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Appointment-1"
7+
]
8+
},
9+
"language": "en",
10+
"resourceType": "Appointment",
11+
"status": "proposed",
12+
"reason": [
13+
{
14+
"coding": [
15+
{
16+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReviewReason-1",
17+
"code": "TRIAGE"
18+
}
19+
]
20+
}
21+
],
22+
"description": "e-Referral Appointment",
23+
"incomingReferral": [
24+
{
25+
"reference": "ReferralRequest/000000070000/_history/6"
26+
}
27+
],
28+
"participant": [
29+
{
30+
"actor": {
31+
"identifier": {
32+
"system": "http://fhir.nhs.net/Id/ers-service",
33+
"value": "50001"
34+
}
35+
},
36+
"status": "accepted"
37+
},
38+
{
39+
"actor": {
40+
"identifier": {
41+
"system": "http://fhir.nhs.net/Id/nhs-number",
42+
"value": "9912003888"
43+
}
44+
},
45+
"status": "accepted"
46+
}
47+
]
48+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"id": "70000",
3+
"meta": {
4+
"versionId": "1",
5+
"profile": [
6+
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-Appointment-1",
7+
"https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Appointment-1"
8+
]
9+
},
10+
"language": "en",
11+
"resourceType": "Appointment",
12+
"status": "proposed",
13+
"reason": [
14+
{
15+
"coding": [
16+
{
17+
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReviewReason-1",
18+
"code": "TRIAGE"
19+
}
20+
]
21+
}
22+
],
23+
"description": "e-Referral Appointment",
24+
"created": "2021-06-30T13:58:47.940+00:00",
25+
"incomingReferral": [
26+
{
27+
"reference": "ReferralRequest/000000070000/_history/8"
28+
}
29+
],
30+
"participant": [
31+
{
32+
"actor": {
33+
"identifier": {
34+
"system": "http://fhir.nhs.net/Id/ers-service",
35+
"value": "50001"
36+
},
37+
"display": "Cardiology Triage Service"
38+
},
39+
"status": "accepted"
40+
},
41+
{
42+
"actor": {
43+
"identifier": {
44+
"system": "http://fhir.nhs.net/Id/nhs-number",
45+
"value": "9912003888"
46+
}
47+
},
48+
"status": "accepted"
49+
}
50+
]
51+
}

sandbox/src/routes/stu3/services/mockResponseProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ module.exports = {
238238
var responseMap = {
239239
'src/mocks/stu3/bookOrDeferAppointment/requests/MinimalBooking.json': 'stu3/bookOrDeferAppointment/responses/MinimalBooking.json',
240240
'src/mocks/stu3/bookOrDeferAppointment/requests/MinimalDeferral.json': 'stu3/bookOrDeferAppointment/responses/MinimalDeferral.json',
241+
'src/mocks/stu3/bookOrDeferAppointment/requests/TriageDeferral.json': 'stu3/bookOrDeferAppointment/responses/TriageDeferral.json',
241242
'src/mocks/stu3/bookOrDeferAppointment/requests/BookingWithNamedClinician.json': 'stu3/bookOrDeferAppointment/responses/BookingWithNamedClinician.json',
242243
'src/mocks/stu3/bookOrDeferAppointment/requests/DeferralWithSlotReference.json': 'stu3/bookOrDeferAppointment/responses/DeferralWithSlotReference.json',
243244
'src/mocks/stu3/bookOrDeferAppointment/requests/DeferralBookingAttemptProblem.json': 'stu3/bookOrDeferAppointment/responses/DeferralBookingAttemptProblem.json'

specification/components/stu3/schemas/endpoints/a004-retrieve-reference-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ description: |
2929
## Related endpoints
3030
Reference data may be needed for other endpoints, for example when including Specialty and Clinic Type reference data to:
3131
- find services that meet the referral needs of a patient using [[HYPERLINK_A010]], and
32-
- create a referral using [[HYPERLINK_A011]] or [[HYPERLINK_A021]]
32+
- create a referral using [[HYPERLINK_A011]]
3333
3434
You can use the Priority reference data to calculate when a patient can expect to be contacted by the service.
3535

specification/components/stu3/schemas/endpoints/a010-patient-service-search.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ description: |
2222
So that I can offer the patient appropriate services that meet their referral needs
2323
2424
## Related endpoints
25-
Once you have identified appropriate services for the patient you can either:
26-
- create a referral by choosing a shortlist of bookable services using [[HYPERLINK_A011]], or
27-
- refer the patient directly to a triage service using [[HYPERLINK_A021]]
25+
Once you have identified appropriate services for the patient you can create a referral by choosing a shortlist of bookable and/or triage services using [[HYPERLINK_A011]]. You may then subsequently be able to use [[HYPERLINK_A016]] to book an appointment to a directly bookable service if an appointment slot is available, defer the booking responsibility to a directly bookable service if no appointment slot is available, or refer a patient into a triage service.
26+
2827
summary: A010 - Patient service search
2928
operationId: a010-patient-service-search
3029
parameters:

specification/components/stu3/schemas/endpoints/a016-book-or-defer-appointment.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ security:
22
- bearerAuth: []
33
description: |
44
## Overview
5-
Use this endpoint to book an appointment to a service if an appointment slot is available or defer booking if no appointment slot is available.
5+
Use this endpoint to book an appointment to a directly bookable service if an appointment slot is available, defer the booking responsibility to a directly bookable service if no appointment slot is available, or refer a patient into a triage service.
66
7+
It is not possible to book into an indirectly bookable service using this endpoint. The patient will need to contact the service provider on the telephone number provided on [[HYPERLINK_A019]].
8+
79
## Supported security patterns
810
- Healthcare worker, user-restricted access
911
@@ -12,8 +14,8 @@ description: |
1214
- `REFERRING_CLINICIAN`
1315
- `REFERRING_CLINICIAN_ADMIN`
1416
15-
You need to check if the service is directly bookable by either using [[HYPERLINK_A033]] or [[HYPERLINK_A035]]. You can only book/defer into shortlisted services that are directly bookable currently. Note: In the future it will be possible to use this endpoint to defer into a shortlisted triage service.
16-
17+
You need to check if the service is directly bookable, indirectly bookable, or triage by either using [[HYPERLINK_A033]] or [[HYPERLINK_A035]].You can then offer the appropriate actions to authenticated users, i.e. the ability to book an appointment into a directly bookable service if an appointment slot is available, defer the booking responsibility to a directly bookable service if no appointment slot is available, refer a patient into a triage service.
18+
1719
If the service is directly bookable, you need to retrieve available appointment slots for the service using [[HYPERLINK_A015]].
1820
1921
You need to use the Unique Booking Reference Number (UBRN) of a referral request in order to use this endpoint.
@@ -28,17 +30,18 @@ description: |
2830
## Use case
2931
As an authenticated user
3032
31-
I need to either:
32-
- book an appointment to an available appointment slot for a service *or*
33-
- defer booking responsibility for the service to the service provider if a booking is not possible
33+
I need to ba able to:
34+
- Book an appointment to an available appointment slot for a a directly bookable service *or*
35+
- Defer the booking responsibility to a directly bookable service if no appointment slot is available *or*
36+
- Refer the patient to a triage service
3437
3538
So I can progress my patient's care at that service.
3639
3740
## Related endpoints
3841
You can generate a letter for the patient, summarising the current state of their referral and any steps
3942
the patient may need to follow using [[HYPERLINK_A019]].
4043
41-
You can calculate the date when the patient will need to be contacted (by the service) using reference data from [[HYPERLINK_A004]].
44+
Where deferring the booking responsibility to a directly bookable service, or referring the patient into a triage service, you can calculate the date when the patient can expect to be contacted (by the receiving service) using reference data from [[HYPERLINK_A004]].
4245
4346
summary: A016 - Book or defer appointment
4447
operationId: a016-book-or-defer-appointment
@@ -62,6 +65,10 @@ requestBody:
6265
summary: Minimum deferral
6366
value:
6467
$ref: '../../examples/bookOrDeferAppointment/requests/MinimalDeferral.json'
68+
triage-deferral:
69+
summary: Triage deferral
70+
value:
71+
$ref: '../../examples/bookOrDeferAppointment/requests/TriageDeferral.json'
6572
booking-with-named-clinician:
6673
summary: Booking with named clinician
6774
value:
@@ -98,4 +105,4 @@ responses:
98105
'502':
99106
$ref: '../responses/bookOrDeferAppointment/502Response.yaml'
100107
'504':
101-
$ref: '../responses/bookOrDeferAppointment/504Response.yaml'
108+
$ref: '../responses/bookOrDeferAppointment/504Response.yaml'

specification/components/stu3/schemas/endpoints/a021-create-referral-request-and-send-for-triage.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
deprecated: true
12
security:
23
- bearerAuth: []
34
description: |
45
## Overview
6+
**This endpoint has now been deprecated please use [[HYPERLINK_A011]] instead.**
7+
58
Use this endpoint to refer the patient directly to a triage service.
69
710
Please note: this endpoint cannot be used to shortlist bookable services. In order to shortlist bookable services please use [[HYPERLINK_A011]].
@@ -36,7 +39,7 @@ description: |
3639
3740
You can calculate the date when the patient will need to be contacted (by the triage service) using reference data from [[HYPERLINK_A004]].
3841
39-
summary: A021 - Create referral and send for triage
42+
summary: A021 - Create referral and send for triage (deprecated)
4043
operationId: a021-create-referral-request-and-send-for-triage
4144
parameters:
4245
- $ref: '../headers/request/BearerAuthorization.yaml'

specification/components/stu3/schemas/endpoints/a029-available-actions-for-user-list.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ description: |
4141
4242
Below is a list of actions that could be returned by calling [[HYPERLINK_A029]]
4343
- Use [[HYPERLINK_A028]] to record a review outcome based on the available clinical information and attachments.
44-
- Use [[HYPERLINK_A016]] to Book, or if unable, Defer, an appointment to a specific service on the current shortlist.
44+
- Use [[HYPERLINK_A016]] to Book, or if unable, Defer, an appointment to a specific service on the current shortlist, or to make a triage deferral by sending an appointment to a triage service.
4545
- Use [[HYPERLINK_A031]] to change the shortlist of bookable services on an existing referral.
46-
- Use [[HYPERLINK_A032]] to change the shortlist to a single triage service and refer the patient directly to that triage service.
4746
4847
## Sandbox test scenarios
4948

specification/components/stu3/schemas/endpoints/a032-change-shortlist-and-send-for-triage.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
deprecated: true
12
security:
23
- bearerAuth: []
34
description: |
45
## Overview
6+
**This endpoint has now been deprecated please use [[HYPERLINK_A031]] instead.**
7+
58
Use this endpoint to change the shortlist to a single triage service and refer the patient directly to that triage service.
69
710
Please note: this endpoint cannot be used to shortlist bookable services. In order to shortlist bookable services on an existing referral please use [[HYPERLINK_A031]].

specification/components/stu3/schemas/endpoints/a038-retrieve-appointment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ description: |
5454
5555
When booking or deferring an appointment, the appointment is returned via [[HYPERLINK_A016]].
5656
57-
When sending an appointment to a service to review, an appointment is returned via [[HYPERLINK_A021]]. In this case the "appointment" is to review a referral.
58-
59-
When changing a shortlist and sending an instruction to a service to review, an appointment is returned via [[HYPERLINK_A032]] indicating an "appointment" to review a referral.
60-
57+
When sending an appointment to a service to review, an appointment is firstly created via [[HYPERLINK_A011]] and then [[HYPERLINK_A016]] is used to send the appointment to a triage service.
58+
59+
When changing a shortlist, firstly this needs to be done via [[HYPERLINK_A31]] and then [[HYPERLINK_A016]] will need to be used to refer the patient to a triage service, which will send an instruction to a service to review.
60+
6161
When successfully cancelling an appointment, to action it later, the cancelled appointment is returned via [[HYPERLINK_A022]].
6262
6363
When converting an advice and guidance to a referral, if the referral has an appointment, it will be returned via [[HYPERLINK_A027]].

0 commit comments

Comments
 (0)