File tree Expand file tree Collapse file tree 6 files changed +39
-14
lines changed
specification/components/r4/schemas Expand file tree Collapse file tree 6 files changed +39
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const businessFunctionValidator = require('../../services/businessFunctionValida
22
33module . exports = [
44 /**
5- * Sandbox implementation for retrieveBinary A039 (R4) endpoint
5+ * Sandbox implementation for retrieveBinary A042 (R4) endpoint
66 */
77 {
88 method : 'GET' ,
Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ security:
22 - bearerAuth : []
33description : |
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)
66operationId : a042-request-pre-signed-url-for-file-download
7+ tags :
8+ - Retrieve clinical information
79parameters :
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'
1416responses :
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'
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 11in : path
22name : id
33description : |
4- Reference for an attachment, as provided in the response from [[HYPERLINK_A039]] .
4+ The identifier for the attachment .
55required : true
66schema :
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.
Original file line number Diff line number Diff line change 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? '
Original file line number Diff line number Diff 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. |
88headers :
99 x-correlation-id :
1010 $ref : ' ../../headers/response/CorrelationID.yaml'
You can’t perform that action at this time.
0 commit comments