Skip to content

Commit c28dade

Browse files
NPA-5629: OperationOutcome IOPS update
1 parent 215c563 commit c28dade

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

specification/examples/responses/GET_Consent/errors/gp-practice-not-found.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GPPracticeNotFoundError:
44
value:
55
issue:
66
- code: processing
7+
diagnostics: "GP Practice could not be found"
78
details:
89
coding:
910
- system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"

specification/examples/responses/errors/access-denied.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ AccessDeniedError:
33
description: The request was unsuccessful due to invalid authentication credentials being provided.
44
value:
55
issue:
6-
- code: invalid
6+
- code: forbidden
77
details:
88
coding:
99
- code: "ACCESS_DENIED"
1010
display: "Missing or invalid OAuth 2.0 bearer token in request."
1111
"system": "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1212
version: "1"
13+
diagnostics: "Missing or invalid OAuth 2.0 bearer token in request"
1314
severity: error
1415
resourceType: "OperationOutcome"

specification/examples/responses/errors/downstream-service-error.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ DownstreamServiceError:
44
value:
55
issue:
66
- code: processing
7-
diagnostics: "Downstream Service Error - Failed to generate response is present in the response"
87
details:
98
coding:
109
- code: "DOWNSTREAM_SERVICE_ERROR"
1110
display: "Failed to generate response"
1211
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1312
version: "1"
13+
diagnostics: "Downstream Service Error - Failed to generate response is present in the response"
1414
severity: error
1515
resourceType: "OperationOutcome"

specification/examples/responses/errors/internal-server-error.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ InternalServerError:
33
description: An unexpected condition was encountered preventing the server from fulfilling the request.
44
value:
55
issue:
6-
- code: invalid
7-
diagnostics: "Internal Server Error - Failed to generate response is present in the response"
6+
- code: exception
87
details:
98
coding:
109
- code: "SERVER_ERROR"
1110
display: "Failed to generate response"
1211
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1312
version: "1"
13+
diagnostics: "Internal Server Error - Failed to generate response is present in the response"
1414
severity: error
1515
resourceType: "OperationOutcome"

specification/examples/responses/errors/invalid-include-parameter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ InvalidIncludeParameterError:
22
summary: Bad request include param invalid
33
description: 400 error response bundle for an invalid include parameter
44
value:
5-
resourceType: "OperationOutcome"
65
issue:
76
- code: invalid
87
details:
@@ -11,5 +10,6 @@ InvalidIncludeParameterError:
1110
version: "1"
1211
code: "INVALID_PARAMETER"
1312
display: "Required parameter(s) are invalid."
13+
diagnostics: "Invalid request with error - _include parameter is invalid."
1414
severity: error
15-
diagnostics: "Invalid request with error - _include parameter is invalid."
15+
resourceType: "OperationOutcome"

specification/examples/responses/errors/invalidated-resource.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ InvalidatedResourceError:
1010
version: "1"
1111
code: "INVALIDATED_RESOURCE"
1212
display: "Resource that has been marked as invalid was requested - invalid resources cannot be retrieved"
13+
diagnostics: "Resource that has been marked as invalid was requested - invalid resources cannot be retrieved"
1314
severity: error
1415
resourceType: "OperationOutcome"

0 commit comments

Comments
 (0)