Skip to content

Commit 8f158c1

Browse files
JackPlowmanlelliott-hippo
authored andcommitted
NPA-5357: Improve Specification Definitions and Formatting
1 parent 7ebab1c commit 8f158c1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

specification/examples/responses/GET_QuestionnaireResponse/errors/questionnaire_response_not_found.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ QuestionnaireResponseNotFound:
1111
- system: "https://fhir.nhs.uk/STU3/CodeSystem/Spine-ErrorOrWarningCode-1"
1212
code: "QUESTIONNAIRE_RESPONSE_NOT_FOUND"
1313
display: "Questionnaire response not found"
14-
diagnostics: "The Questionnaire response could not be found using the provided access request UUID."
14+
diagnostics: "The Questionnaire response could not be found using the provided access request ID."

specification/examples/responses/POST_QuestionnaireResponse/success.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PostQuestionnaireResponseSuccess:
22
summary: Success
3-
description: A sample of the payload returned when a QuestionnaireResponse (proxy access request) has been successfully submitted. It contains a unique alpha-numeric reference code to identify the request by.
3+
description: A sample of the payload returned when a QuestionnaireResponse (proxy access request) has been successfully submitted. It contains the unique id of the access request.
44
value:
55
resourceType: "OperationOutcome"
66
issue:

specification/validated-relationships-service-api.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,19 +309,19 @@ paths:
309309
310310
| Scenario | Request | Response |
311311
| -------------------------------- | ----------------------------------------| ------------------------------------------------------------- |
312-
| Valid access request UUID | id=156e1560-e532-4e2a-85ad-5aeff03dc43e | HTTP Status 200 with QuestionnaireResponse |
313-
| Invalid access request UUID | id=INVALID | HTTP Status 400 with INVALID_IDENTIFIER_VALUE message |
314-
| Missing access request UUID | No id parameter | HTTP Status 400 with BAD_REQUEST message |
315-
| Non-existent access request UUID | id=60d09b82-f4bb-41f9-b41e-767999b4ac9b | HTTP Status 404 with QUESTIONNAIRE_RESPONSE_NOT_FOUND message |
312+
| Valid access request ID | ID=156e1560-e532-4e2a-85ad-5aeff03dc43e | HTTP Status 200 with QuestionnaireResponse |
313+
| Invalid access request ID | ID=INVALID | HTTP Status 400 with INVALID_IDENTIFIER_VALUE message |
314+
| Missing access request ID | No ID parameter | HTTP Status 400 with BAD_REQUEST message |
315+
| Non-existent access request ID | ID=60d09b82-f4bb-41f9-b41e-767999b4ac9b | HTTP Status 404 with QUESTIONNAIRE_RESPONSE_NOT_FOUND message |
316316
317317
operationId: get-questionnaire-response
318318
parameters:
319319
- $ref: "#/components/parameters/BearerAuthorization"
320320
- $ref: "#/components/parameters/RequestID"
321321
- $ref: "#/components/parameters/CorrelationID"
322-
- name: id
322+
- name: ID
323323
in: query
324-
description: The unique access request UUID of the QuestionnaireResponse to retrieve
324+
description: The unique access request ID of the QuestionnaireResponse to retrieve
325325
required: true
326326
schema:
327327
type: string
@@ -342,13 +342,13 @@ paths:
342342
343343
| HTTP status | Error code | Description |
344344
| ----------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
345-
| 400 | `INVALID_IDENTIFIER_VALUE` | The access request UUID must be a valid uuid. |
345+
| 400 | `INVALID_IDENTIFIER_VALUE` | The access request ID must be a valid uuid. |
346346
| 400 | `INVALID_VALUE` | Invalid Parameter or Invalid operation. |
347-
| 400 | `BAD_REQUEST`. | The access request UUID is required but was not provided in the request. |
347+
| 400 | `BAD_REQUEST`. | The access request ID is required but was not provided in the request. |
348348
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
349349
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
350350
| 403 | `FORBIDDEN` | Access denied to resource. |
351-
| 404 | `QUESTIONNAIRE_RESPONSE_NOT_FOUND` | No questionnaire response was found for the provided access request UUID. |
351+
| 404 | `QUESTIONNAIRE_RESPONSE_NOT_FOUND` | No questionnaire response was found for the provided access request ID. |
352352
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
353353
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
354354
| 408 | `TIMEOUT` | Request timed out. |

0 commit comments

Comments
 (0)