Skip to content

Commit 67f099d

Browse files
committed
NPA-5136: formatting issue
1 parent c8f3dd6 commit 67f099d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

specification/examples/responses/GET_Consent/ID/errors/invalid-id.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ConsentInvalidIDError:
22
summary: Invalid ID
3-
description: Error raised due to an invalid ID request path being specified.
3+
description: 400 error raised due to an invalid ID request path being specified.
44
value:
55
issue:
66
- code: invalid
7-
diagnostics: "Invalid request with error - ID must be a valid UUID."
7+
diagnostics: "Invalid request with error - X-Request-ID header invalid"
88
details:
99
coding:
10-
- code: "INVALID_ID_VALUE"
11-
display: "Required parameter(s) are invalid."
10+
- code: "INVALID_VALUE"
11+
display: "Required header parameter(s) are invalid."
1212
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1313
version: "1"
1414
severity: error
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
PostConsentInvalidStatusError:
22
summary: Invalid Status Error
3-
description: Error response for invalid status
3+
description: 400 error response for invalid status
44
value:
55
issue:
66
- code: invalid
77
details:
88
coding:
9-
- code: INVALID_STATUS
10-
display: Invalid status.
9+
- code: INVALID_PARAMETER
10+
display: Required parameter(s) are invalid.
1111
system: https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode
1212
version: "1"
13-
diagnostics: Status is invalid
13+
diagnostics: Invalid request with error - status parameter is invalid.
1414
expression: status
1515
severity: error
1616
resourceType: OperationOutcome

specification/validated-relationships-service-api.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,8 @@ paths:
537537
| A single proxy relationship between consenting adults including details | `performer:identifier`=`9000000010` and/or `patient:identifier`=`9000000005` and `_include` = `Consent:patient` and `_include` = `Consent:proxy` | HTTP Status 200 Bundle containing a single proxy relationship including performer and patient details |
538538
| A single proxy relationship between a mother and child | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` | HTTP Status 200 Bundle containing a single proxy relationship |
539539
| A single proxy relationship between a mother and child including details | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `_include` = `Consent:patient` and `_include` = `Consent:proxy` | HTTP Status 200 Bundle containing a single proxy relationship including performer and patient details |
540-
| Invalid status parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `status` = `test` | HTTP Status 422 and INVALID_PARAMETER error response |
541-
| Invalid include parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `_include` = `test` | HTTP Status 422 and INVALID_PARAMETER error response |
542-
| Missing identifier | `patient:identifier`=`9000000009` | HTTP Status 400 and MISSING_IDENTIFIER_VALUE error response |
540+
| Invalid status parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `status` = `test` | HTTP Status 400 and INVALID_PARAMETER error response |
541+
| Invalid include parameter | `performer:identifier`=`9000000019` and/or `patient:identifier`=`9000000009` and `_include` = `test` | HTTP Status 422 and INVALID_PARAMETER error response | | Missing identifier | `patient:identifier`=`9000000009` | HTTP Status 400 and MISSING_IDENTIFIER_VALUE error response |
543542
| Invalid identifier | `identifier`=`900000000` Note: This identifier is 9 characters long, too short to be NHS Number | HTTP Status 422 and INVALID_IDENTIFIER_VALUE error response |
544543
| Invalid identifier system | `identifier`=`https://fhir.nhs.uk/Id/nhs-number/9730675929` | HTTP Status 422 and INVALID_IDENTIFIER_SYSTEM error response |
545544
| No performer record found | `identifier`=`9000000999` | HTTP Status 404 and INVALIDATED_RESOURCE error response |
@@ -601,6 +600,7 @@ paths:
601600
| ----------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
602601
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
603602
| 400 | `INVALID_VALUE` | Invalid header. For details, see the `diagnostics` field. |
603+
| 400 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
604604
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer:identifier or patient:identifier value. |
605605
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
606606
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
@@ -611,7 +611,6 @@ paths:
611611
| 408 | `TIMEOUT` | Request timed out. |
612612
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid performer:identifier or patient:identifier identifier system. |
613613
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer:identifier or patient:identifier NHS number. |
614-
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
615614
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
616615
617616
content:
@@ -724,6 +723,7 @@ paths:
724723
| 400 | `MISSING_SCOPE` | Missing scope. |
725724
| 400 | `MISSING_CATEGORY` | Missing category. |
726725
| 400 | `MISSING_DATETIME` | Missing datetime. |
726+
| 400 | `INVALID_PARAMETER` | Invalid status parameter. |
727727
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
728728
| 403 | `FORBIDDEN` | Access denied to resource. |
729729
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
@@ -852,13 +852,13 @@ paths:
852852
| ----------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
853853
| 400 | `BAD_REQUEST` | Missing header or parameter. For details, see the `diagnostics` field. |
854854
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
855+
| 400 | `INVALID_VALUE` | Invalid request id. |
856+
| 400 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
855857
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
856858
| 403 | `FORBIDDEN` | Access denied to resource. |
857859
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
858860
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
859861
| 408 | `TIMEOUT` | Request timed out. |
860-
| 422 | `INVALID_ID_VALUE` | Invalid id. |
861-
| 422 | `INVALID_PARAMETER` | Invalid parameter. For details, see the `diagnostics` field. |
862862
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
863863
864864
content:

0 commit comments

Comments
 (0)