You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/components/stu3/schemas/endpoints/a036-cancel-referral.yaml
+50-10Lines changed: 50 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,15 @@ description: |
19
19
In order to use this endpoint you must be an authenticated e-RS user and use one of the following e-RS roles:
20
20
- `REFERRING_CLINICIAN`
21
21
- `REFERRING_CLINICIAN_ADMIN`
22
+
- `SERVICE_PROVIDER_CLINICIAN`
23
+
- `SERVICE_PROVIDER_CLINICIAN_ADMIN`
22
24
23
25
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`.
24
26
25
27
26
28
To find out which reference data from this set can be used, the following filters can be used depending on the cancellation scenario:
27
29
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***
29
31
30
32
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
31
33
@@ -40,7 +42,7 @@ description: |
40
42
* if provided, `effectiveTo` must **not** be in the past
41
43
42
44
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***
44
46
45
47
* Obtain reference data from `REFERRAL-CANCELLATION-REASON` and filter:
46
48
@@ -53,6 +55,34 @@ description: |
53
55
* `effectiveFrom` must be in the past, and
54
56
55
57
* 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
56
86
57
87
58
88
You need to use [[HYPERLINK_A005]] to retrieve details of the referral in order to make this clinical decision.
@@ -89,14 +119,16 @@ description: |
89
119
90
120
You can test the following scenarios in our sandbox environment:
0 commit comments