Skip to content

Commit 732d85f

Browse files
committed
fix: updated examples
1 parent 6a4392a commit 732d85f

13 files changed

+96
-98
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ConsentInvalidIdentifierSystemErrorBundle:
2+
summary: Bad request identifier system invalid
3+
description: 400 error response bundle for an invalid system of the identifier
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Invalid request with error - performer:identifier system parameter is invalid."
8+
details:
9+
coding:
10+
- code: "INVALID_IDENTIFIER_SYSTEM"
11+
display: "Required parameter(s) are 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+
ConsentInvalidIdentifierErrorBundle:
2+
summary: Bad request invalid identifier
3+
description: Error raised due to an invalid identifier request parameter being specified.
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: 'Invalid request with error - performer:identifier parameter is invalid.'
8+
details:
9+
coding:
10+
- code: "INVALID_IDENTIFIER_VALUE"
11+
display: "Required parameter(s) are invalid."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: '1'
14+
severity: error
15+
resourceType: "OperationOutcome"
16+
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
ConsentInvalidStatusParameterBundle:
1+
ConsentInvalidStatusParameterErrorBundle:
22
summary: Bad request status param invalid
33
description: 400 error response bundle for an invalid status parameter
44
value:
5-
resourceType: "OperationOutcome"
65
issue:
7-
- severity: error
8-
code: invalid
6+
- code: invalid
97
diagnostics: "Invalid request with error - status parameter is invalid."
108
details:
119
coding:
12-
- system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13-
version: "1"
14-
code: "INVALID_VALUE"
10+
- code: "INVALID_VALUE"
1511
display: "Required parameter(s) are 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+
ConsentIdentifierMissingErrorBundle:
2+
summary: Bad request identifier missing
3+
description: 400 error response bundle for a missing identifier
4+
value:
5+
issue:
6+
- code: invalid
7+
diagnostics: "Invalid request with error - performer:identifier parameter not found."
8+
details:
9+
coding:
10+
- code: "MISSING_IDENTIFIER_VALUE"
11+
display: "Required parameter(s) are missing."
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: "1"
14+
severity: error
15+
resourceType: "OperationOutcome"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
RelatedPersonInvalidIdentifierError:
1+
RelatedPersonInvalidIdentifierErrorBundle:
22
summary: Invalid RelatedPerson identifier
33
description: Error raised due to an invalid RelatedPerson identifier request parameter being specified.
44
value:
5-
resourceType: "OperationOutcome"
65
issue:
7-
- severity: error
8-
code: invalid
6+
- code: invalid
97
diagnostics: "Not a valid NHS Number provided for the 'identifier' parameter"
108
expression: "RelatedPerson.identifier"
119
details:
@@ -14,3 +12,5 @@ RelatedPersonInvalidIdentifierError:
1412
version: "1"
1513
code: "INVALID_IDENTIFIER_VALUE"
1614
display: "Provided value is invalid"
15+
severity: error
16+
resourceType: "OperationOutcome"
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
AccessDeniedError:
1+
AccessDeniedErrorBundle:
22
summary: Access Denied
3-
description: THe request was unsuccessful due to invalid authentication credentials being provided.
3+
description: The request was unsuccessful due to invalid authentication credentials being provided.
44
value:
5-
resourceType: "OperationOutcome"
65
issue:
7-
- severity: error
8-
code: invalid
6+
- code: invalid
97
details:
108
coding:
11-
- "system": "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
12-
version: "1"
13-
code: "ACCESS_DENIED"
9+
- code: "ACCESS_DENIED"
1410
display: "Missing or invalid OAuth 2.0 bearer token in request."
11+
"system": "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
12+
version: "1"
13+
severity: error
14+
resourceType: "OperationOutcome"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
InternalServerError:
1+
InternalServerErrorBundle:
22
summary: Internal Server Error
33
description: An unexpected condition was encountered preventing the server from fulfilling the request.
44
value:
5-
resourceType: "OperationOutcome"
65
issue:
7-
- severity: error
8-
code: invalid
6+
- code: invalid
97
diagnostics: "Internal Server Error - Failed to generate response is present in the response"
108
details:
119
coding:
12-
- system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13-
version: "1"
14-
code: "SERVER_ERROR"
10+
- code: "SERVER_ERROR"
1511
display: "Failed to generate response"
12+
system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
13+
version: "1"
14+
severity: error
15+
resourceType: "OperationOutcome"

specification/examples/responses/errors/invalid-identifier-system.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

specification/examples/responses/errors/invalid-identifier.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
InvalidIncludeParameterBundle:
1+
InvalidIncludeParameterErrorBundle:
22
summary: Bad request include param invalid
33
description: 400 error response bundle for an invalid include parameter
44
value:
55
resourceType: "OperationOutcome"
66
issue:
7-
- severity: error
8-
code: invalid
9-
diagnostics: "Invalid request with error - _include parameter is invalid."
7+
- code: invalid
108
details:
119
coding:
1210
- system: "https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode"
1311
version: "1"
1412
code: "INVALID_VALUE"
1513
display: "Required parameter(s) are invalid."
16-
14+
severity: error
15+
diagnostics: "Invalid request with error - _include parameter is invalid."

0 commit comments

Comments
 (0)