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
Use this endpoint to retrieve a file that is attached to a referral or advice request.
6
+
7
+
## Supported security patterns
8
+
- Application-restricted, unattended access
9
+
- Healthcare worker, user-restricted access
10
+
11
+
## Pre-requisites
12
+
### Application-restricted, unattended access
13
+
In order to use this endpoint you must be an authenticated e-RS calling application, working in the context of a Service Provider Organisation.
14
+
15
+
### Healthcare worker, user-restricted access
16
+
In order to use this endpoint you must be an authenticated e-RS user or application and use one of the following e-RS roles:
17
+
- `REFERRING_CLINICIAN`
18
+
- `REFERRING_CLINICIAN_ADMIN`
19
+
- `SERVICE_PROVIDER_CLINICIAN`
20
+
- `SERVICE_PROVIDER_CLINICIAN_ADMIN`
21
+
22
+
### Attachment availability
23
+
To use this endpoint, the attachment must be available for download. Attachments are only available after successful validation and malware scans. A request to retrieve an attachment that is not available for download will result in a 400 error. See the Response HTTP 400 section for further information.
24
+
25
+
The availability status of an attachment can be retrieved via any endpoint that provides details of an attachment in the success response. Details of the availability statuses that may be returned via these endpoints can be found in the specification for [[HYPERLINK_A005]].
26
+
27
+
Prior to retrieving an attachment, you will need to have retrieved the referral or advice request the attachment is associated with (via the [[HYPERLINK_A005]] or [[HYPERLINK_A024]] endpoints, for example). Referrals and advice requests include resolvable URLs to the files currently attached to them, which can be used with this endpoint to retrieve the attachments themselves.
28
+
29
+
## Support for a temporary redirect
30
+
This endpoint makes use of a HTTP 307 temporary redirect. It redirects the caller to a temporary location from which the file contents can be downloaded directly.
31
+
32
+
The temporary location is only valid for a short period of time and should be used immediately.
33
+
34
+
Callers of this endpoint must ensure they:
35
+
- follow this redirect to retrieve the file
36
+
- do not cache the temporary location
37
+
- generate a new redirect each time the file is downloaded
38
+
39
+
See the Response HTTP 307 section for further information.
40
+
41
+
## Important notes
42
+
A referral pathway in e-RS can be made up of more than one UBRN. For example: a referral is booked and seen in a general knee clinical assessment service (UBRN #1), and the service decides to onward refer to a more specialist knee meniscus service (UBRN #2). This would result in two UBRNs for the referral pathway. There may be additional related UBRNs if there are multiple onward referrals.
43
+
44
+
As such, it is important that all clinical information is obtained from across all the related UBRNs referenced in [[HYPERLINK_A005]]. You can do this using the following endpoints:
45
+
- [[HYPERLINK_A006]]
46
+
- [[HYPERLINK_A007]]
47
+
48
+
Note: It is possible that the initial UBRN may be the only one in the referral pathway to have clinical information and/or attachments associated.
49
+
50
+
## Use case
51
+
As an authenticated user
52
+
53
+
I need to retrieve a clinical attachment associated with a referral or advice request
54
+
55
+
So that I can assess its content and decide what further action may be needed.
56
+
57
+
## Related endpoints
58
+
- [[HYPERLINK_A005]] to retrieve details of a referral. This includes references to clinical attachments, related referrals and other important data.
59
+
- [[HYPERLINK_A024]] to retrieve the summary of an advice and guidance request. This endpoint provides important contextual information about the advice and guidance request (e.g. the service/specialty to which advice has been requested, etc).
60
+
- [[HYPERLINK_A025]] to retrieve the advice and guidance conversation between the referring organisation and service providing organisation.
61
+
- [[HYPERLINK_A007]] to generate a PDF file that summarises clinical information for a referral.
62
+
63
+
## Sandbox test scenarios
64
+
The sandbox for this endpoint is a simple implementation that only supports success cases.
65
+
66
+
Inline with the behaviour described in "Support for a temporary redirect", the sandbox will return a HTTP 307 temporary redirect. For simplicity, the temporary location will be static and never expire, unlike the live environment.
67
+
68
+
A successful response will always be returned, provided the Binary ID is in a valid format. The Availability Status of a file is not considered in the sandbox and a file will always be considered to be available for retrieval.
69
+
70
+
Successful responses will always return the same example PDF file.
0 commit comments