Skip to content

Commit d9ab503

Browse files
updates to initial modelling
1 parent 6037760 commit d9ab503

File tree

6 files changed

+39
-14
lines changed

6 files changed

+39
-14
lines changed

sandbox/src/routes/r4/retrieveBinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const businessFunctionValidator = require('../../services/businessFunctionValida
22

33
module.exports = [
44
/**
5-
* Sandbox implementation for retrieveBinary A039 (R4) endpoint
5+
* Sandbox implementation for retrieveBinary A042 (R4) endpoint
66
*/
77
{
88
method: 'GET',

specification/components/r4/schemas/endpoints/a042-request-pre-signed-url-for-file-download.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ security:
22
- bearerAuth: []
33
description: |
44
### TODO Add later
5-
summary: A042 - Request pre-signed URL to download file from document store
5+
summary: Request pre-signed URL to download file from document store (A042, FHIR R4)
66
operationId: a042-request-pre-signed-url-for-file-download
7+
tags:
8+
- Retrieve clinical information
79
parameters:
810
- $ref: '../headers/request/BearerAuthorization.yaml'
9-
- $ref: '../headers/request/BusinessFunction.yaml'
1011
- $ref: '../headers/request/CorrelationID.yaml'
11-
- $ref: '../headers/request/OdsCode.yaml'
12-
- $ref: '../headers/request/OnBehalfOfUserID.yaml'
12+
- $ref: '../headers/request/BusinessFunctionOnlyUserRestricted.yaml'
13+
- $ref: '../headers/request/OdsCodeOnlyUserRestricted.yaml'
14+
- $ref: '../headers/request/OnBehalfOfUserIDOnlyUserRestricted.yaml'
1315
- $ref: '../pathParameters/AttachmentUuid.yaml'
1416
responses:
1517
'307':
@@ -19,10 +21,10 @@ responses:
1921
'401':
2022
$ref: '../responses/Unauthorized.yaml'
2123
'403':
22-
$ref: '../responses/Forbidden.yaml'
24+
$ref: '../responses/ForbiddenOrNoLR.yaml'
2325
'404':
2426
$ref: '../responses/NotFound.yaml'
2527
'429':
2628
$ref: '../responses/TooManyRequests.yaml'
2729
'500':
28-
$ref: '../responses/InternalServerError.yaml'
30+
$ref: '../responses/InternalServerError.yaml'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
in: header
2+
name: NHSD-eRS-On-Behalf-Of-User-ID
3+
description: |
4+
The (SDS) user ID of the user that the authenticating user wishes to act on behalf of (OBO).
5+
6+
"On behalf of" is only supported for a Service Provider Clinician Admin (SPCA) acting on behalf of a Service Provider Clinician (SPC).
7+
8+
Where an OBO User ID is supplied the authenticating user must be an SPCA and the OBO User ID must be that of an appropriate SPC.
9+
10+
Not allowed for application-restricted access.
11+
12+
Required for user-restricted access where the Service Provider Clinician Admin Business Function is used for authentication.
13+
required: false
14+
schema:
15+
type: string
16+
example: '021600556514'
17+
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
in: path
22
name: id
33
description: |
4-
Reference for an attachment, as provided in the response from [[HYPERLINK_A039]].
4+
The identifier for the attachment.
55
required: true
66
schema:
77
type: string
8-
example: '704c3791-0873-45e9-9a04-b51996f8d93f'
8+
examples:
9+
uuid-format:
10+
value: 'c5d2d200-7613-4a69-9c5f-1bb68e04b8d8'
11+
summary: ID of an attachment utilising UUID ID format.
12+
legacy-format:
13+
value: 'att-70000-70001'
14+
summary: ID of an attachment utilising the legacy ID format.

specification/components/r4/schemas/responses/retrieveBinary/307Response.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ headers:
55
x-request-id:
66
$ref: '../../headers/response/RequestID.yaml'
77
Location:
8-
description: The large file attachment location in the Object Store.
8+
description: The attachment location in the object store.
99
required: true
1010
schema:
1111
type: string
12-
example: '<ObjectStoreURL>'
12+
example: 'TODO Do we want to provide an example?'

specification/components/r4/schemas/responses/retrieveBinary/400Response.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ description: |
22
Where status code 400 (Bad Request) is returned then an [NHSDigital-OperationOutcome](https://fhir.nhs.uk/StructureDefinition/NHSDigital-OperationOutcome) will be included in the body, as detailed below.
33
Check diagnostics property for specific information regarding the error.
44
5-
| issue.details.coding.code | issue.code | Description |
6-
| ------------------------- | ------------ | ----------------------------------------------------- |
7-
| REC_BAD_REQUEST | required | TODO:63315 |
5+
| issue.details.coding.code | issue.code | Coding System | Description |
6+
| ------------------------- | ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7+
| REC_BAD_REQUEST | invalid | [BaRS Error Code](https://fhir.nhs.uk/CodeSystem/http-error-codes) | The request could not be processed due to an error. This could be due to either an error with the request or the state of the resource requested. See the diagnostics field for further information. |
88
headers:
99
x-correlation-id:
1010
$ref: '../../headers/response/CorrelationID.yaml'

0 commit comments

Comments
 (0)