Skip to content

Commit ee284bb

Browse files
NPA-4575: Expanded out the errors
1 parent 1a0704c commit ee284bb

File tree

6 files changed

+76
-76
lines changed

6 files changed

+76
-76
lines changed

specification/examples/responses/PATCH_Consent/error.yaml

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PatchConsentInvalidPatchFormatError:
2+
summary: Bad request format is invalid
3+
description: 400 error response bundle for a malformed JSON patch document
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Malformed JSON patch document."
8+
details:
9+
coding:
10+
- code: "INVALID_PATCH_FORMAT"
11+
display: "Request format is invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PatchConsentInvalidPathError:
2+
summary: Bad request path is invalid
3+
description: 400 error response bundle for patch targeting non-existent element
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Patch targeting non-existent element."
8+
details:
9+
coding:
10+
- code: "INVALID_PATCH_PATH"
11+
display: "Patch target is invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PatchConsentInvalidStateTransitionError:
2+
summary: Bad request invalid state transition
3+
description: 422 error response bundle for a request with an invalid state transition
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Patch attempting invalid status change."
8+
details:
9+
coding:
10+
- code: "INVALID_STATE_TRANSITION"
11+
display: "Status change is invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PatchConsentInvalidStatusCodeError:
2+
summary: Bad request invalid status code
3+
description: 422 error response bundle for a request with an invalid status code
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Invalid status code."
8+
details:
9+
coding:
10+
- code: "INVALID_STATUS_CODE"
11+
display: "Status code is invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PatchConsentRelationshipNotFoundError:
2+
summary: Bad request for proxy role that ais not found
3+
description: 404 error response bundle for proxy role that is not found
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Proxy role not found."
8+
details:
9+
coding:
10+
- code: "RESOURCE_NOT_FOUND"
11+
display: "Request must be for a existing proxy role."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
16+

0 commit comments

Comments
 (0)