Skip to content

Commit 72a5d2d

Browse files
[RAA-703] Update OAS docs for available actions and cancel referral
1 parent 0f83407 commit 72a5d2d

File tree

3 files changed

+57
-13
lines changed

3 files changed

+57
-13
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ description: |
2323
2424
Supported action:
2525
- Record Review Outcome
26+
- Cancel Referral
2627
2728
### Healthcare worker, user-restricted access
2829
@@ -54,7 +55,8 @@ description: |
5455
- Change Shortlist and Send for Triage
5556
5657
As a service provider, the only action returned will be:
57-
- Record Review Outcome
58+
- Record Review Outcome
59+
- Cancel Referral
5860
5961
## Related endpoints
6062

specification/components/stu3/schemas/endpoints/a036-cancel-referral.yaml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ description: |
1919
In order to use this endpoint you must be an authenticated e-RS user and use one of the following e-RS roles:
2020
- `REFERRING_CLINICIAN`
2121
- `REFERRING_CLINICIAN_ADMIN`
22+
- `SERVICE_PROVIDER_CLINICIAN`
23+
- `SERVICE_PROVIDER_CLINICIAN_ADMIN`
2224
2325
You must use [[HYPERLINK_A004]] to retrieve a list of reference data, which detail the reason the cancellation is being performed. You can only use reference data from the set `REFERRAL-CANCELLATION-REASON`.
2426
2527
2628
To find out which reference data from this set can be used, the following filters can be used depending on the cancellation scenario:
2729
28-
***1. I want to cancel the referral and the current appointment***
30+
***1. I want to cancel the referral and the current appointment as a Referrer***
2931
3032
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
3133
@@ -40,7 +42,7 @@ description: |
4042
* if provided, `effectiveTo` must **not** be in the past
4143
4244
43-
***2. I want to cancel a referral, for which there is no current appointment***
45+
***2. I want to cancel a referral, for which there is no current appointment as a Referrer***
4446
4547
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
4648
@@ -53,6 +55,34 @@ description: |
5355
* `effectiveFrom` must be in the past, and
5456
5557
* if provided, `effectiveTo` must **not** be in the past
58+
59+
***3. I want to cancel the referral and the current appointment as a Service Provider***
60+
61+
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
62+
63+
* `referrerUsage` must be `CANCEL_REFERRAL`, and
64+
65+
* `businessFunction` must be `SERVICE_PROVIDER_CLINICIAN` or `SERVICE_PROVIDER_CLINICIAN_ADMIN` (depending which authenticated user will be performing the action), and
66+
67+
* `canCancelAppointment` must be true, and
68+
69+
* `effectiveFrom` must be in the past, and
70+
71+
* if provided, `effectiveTo` must **not** be in the past
72+
73+
***4. I want to cancel a referral, for which there is no current appointment as a Service Provider***
74+
75+
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
76+
77+
* `referrerUsage` must be `CANCEL_REFERRAL`, and
78+
79+
* `businessFunction` must be `SERVICE_PROVIDER_CLINICIAN` or `SERVICE_PROVIDER_CLINICIAN_ADMIN` (depending which authenticated user will be performing the action), and
80+
81+
* `canCancelAppointment` must be true, and
82+
83+
* `effectiveFrom` must be in the past, and
84+
85+
* if provided, `effectiveTo` must **not** be in the past
5686
5787
5888
You need to use [[HYPERLINK_A005]] to retrieve details of the referral in order to make this clinical decision.
@@ -89,14 +119,16 @@ description: |
89119
90120
You can test the following scenarios in our sandbox environment:
91121
92-
| Scenario | Request details |
93-
| ------------------------------------------------------------------------ | --------------------------------- |
94-
| Reason for Cancellation without Comment (Comment Not Mandatory) | Intend Private With No Comment |
95-
| Reason for Cancellation with Comment (Comment Mandatory) | Patient Cancellation With Comment |
96-
| Cancelled Referral | Raised in Error |
97-
| Cancelled Appointment and Referral | Referrer Cancellation |
98-
| Cancelled Referral After Prior Appointment Cancellation | Treatment No Longer Required |
99-
| Cancelled Referral with Existing Review Outcome | Intend Private With Comment |
122+
| Scenario | Request details |
123+
| ------------------------------------------------------------------------ | ------------------------------------- |
124+
| Reason for Cancellation without Comment (Comment Not Mandatory) | Intend Private With No Comment |
125+
| Reason for Cancellation with Comment (Comment Mandatory) | Patient Cancellation With Comment |
126+
| Cancelled Referral | Raised in Error |
127+
| Cancelled Appointment and Referral | Referrer Cancellation |
128+
| Cancelled Referral After Prior Appointment Cancellation | Treatment No Longer Required |
129+
| Cancelled Referral with Existing Review Outcome | Intend Private With Comment |
130+
| Cancelled Referral (Provider) without Comment (Comment Not Mandatory) | Provider Cancellation With No Comment |
131+
| Cancelled Referral with Triage Response | Provider Cancellation via End Triage |
100132
summary: Cancel referral (A036, FHIR STU3)
101133
operationId: a036-cancel-referral
102134
tags:
@@ -139,6 +171,14 @@ requestBody:
139171
summary: Cancelled Referral with Existing Review Outcome
140172
value:
141173
$ref: '../../examples/cancelReferral/requests/IntendPrivateWithComment.json'
174+
cancel-referral-provider-without-comment:
175+
summary: Cancelled Referral (Provider) without Comment (Comment Not Mandatory)
176+
value:
177+
$ref: ''
178+
cancel-referral-with-triage-response:
179+
summary: Cancelled Referral with Triage Response
180+
value:
181+
$ref: ''
142182
responses:
143183
'200':
144184
$ref: '../responses/cancelReferral/200Response.yaml'

specification/e-referrals-service-api.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ info:
3939
- accept or reject a referral request
4040
- retrieve Advice & Guidance (A&G) conversations and send responses
4141
- convert Advice & Guidance (A&G) conversations into a referral
42+
- cancel a referral
4243
4344
**You cannot use this API to:**
4445
@@ -78,7 +79,7 @@ info:
7879
7980
| Access mode | Authentication via | Functions | Availability |
8081
| ----------------------------- | -------------------------- | ----------------------- | ------------------------------- |
81-
| Application-restricted,<br/>unattended access | [[HYPERLINK_SIGNED_JWT]] | <ul><li>[[HYPERLINK_A004]]</li><li>[[HYPERLINK_A005]]</li><li>[[HYPERLINK_A007]]</li><li>[[HYPERLINK_A008]]</li><li>[[HYPERLINK_A013]]</li><li>[[HYPERLINK_A024]]</li><li>[[HYPERLINK_A025]]</li><li>[[HYPERLINK_A028]]</li><li>[[HYPERLINK_A029]]</li><li>[[HYPERLINK_A033]]</li><li>[[HYPERLINK_A035]]</li><li>[[HYPERLINK_A037]]</li><li>[[HYPERLINK_A042]]</li><li>[[HYPERLINK_A043]]</li></ul> | [[HYPERLINK_PRODUCTION]] |
82+
| Application-restricted,<br/>unattended access | [[HYPERLINK_SIGNED_JWT]] | <ul><li>[[HYPERLINK_A004]]</li><li>[[HYPERLINK_A005]]</li><li>[[HYPERLINK_A007]]</li><li>[[HYPERLINK_A008]]</li><li>[[HYPERLINK_A013]]</li><li>[[HYPERLINK_A024]]</li><li>[[HYPERLINK_A025]]</li><li>[[HYPERLINK_A028]]</li><li>[[HYPERLINK_A029]]</li><li>[[HYPERLINK_A033]]</li><li>[[HYPERLINK_A035]]</li><li>[[HYPERLINK_A036]]</li><li>[[HYPERLINK_A037]]</li><li>[[HYPERLINK_A042]]</li><li>[[HYPERLINK_A043]]</li></ul> | [[HYPERLINK_PRODUCTION]] |
8283
| Healthcare worker,<br/>user-restricted access | [[HYPERLINK_CIS_AUTH_SHORT]] | All Endpoints | [[HYPERLINK_PRODUCTION]] |
8384
8485
##### Application-restricted, unattended access
@@ -89,8 +90,9 @@ info:
8990
Write operations are currently supported for specific use cases via:
9091
- [[HYPERLINK_A028]]
9192
- [[HYPERLINK_A013]]
93+
- [[HYPERLINK_A036]]
9294
93-
You will be required to submit your use case for review when using this endpoint via application-restricted, unattended access.
95+
You will be required to submit your use case for review when using these endpoints via application-restricted, unattended access.
9496
9597
##### Healthcare worker, user-restricted access
9698

0 commit comments

Comments
 (0)