Skip to content

Commit a7726f4

Browse files
committed
NPA-4474 Add proposal for new GET /Consent status codes
1 parent 7fe091d commit a7726f4

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,17 @@ paths:
435435
| HTTP status | Error code | Description |
436436
| ----------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
437437
| 400 | `MISSING_VALUE` | Missing header parameter. For details, see the `diagnostics` field. |
438-
| 400 | `INVALID_VALUE` | Invalid header parameter. For details, see the `diagnostics` field. |
439-
| 400 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
440438
| 400 | `MISSING_IDENTIFIER_VALUE` | Missing performer NHS number. |
441-
| 400 | `INVALID_IDENTIFIER_VALUE` | Malformed performer NHS number. |
442439
| 400 | `NOT_SUPPORTED` | The request is not currently supported. |
443440
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
444441
| 403 | `FORBIDDEN` | Access denied to resource. |
445442
| 404 | `INVALIDATED_RESOURCE` | Resource that has been marked as invalid was requested - invalid resources cannot be retrieved |
443+
| 404 | `GP_PRACTICE_NOT_FOUND` | GP Practice not found |
446444
| 405 | `METHOD_NOT_ALLOWED` | The method is not allowed. |
447445
| 408 | `TIMEOUT` | Request timed out. |
446+
| 422 | `INVALID_VALUE` | Invalid header parameter. For details, see the `diagnostics` field. |
447+
| 422 | `INVALID_IDENTIFIER_SYSTEM` | Invalid identifier system. |
448+
| 422 | `INVALID_IDENTIFIER_VALUE` | Malformed performer NHS number. |
448449
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
449450
450451
content:
@@ -466,8 +467,15 @@ paths:
466467
$ref: "./examples/responses/GET_Consent/errors/invalid-status-parameter.yaml#/ConsentInvalidStatusParameterError"
467468
InvalidIncludeParameterError:
468469
$ref: "./examples/responses/errors/invalid-include-parameter.yaml#/InvalidIncludeParameterError"
469-
"500":
470-
description: Internal server error
470+
"5XX":
471+
description: |
472+
Errors will be returned for the first error encountered in the request. An error occurred as follows:
473+
474+
| HTTP status | Error code | Description |
475+
| ----------- | ---------------------------------- | ------------------------------------------------------------ |
476+
| 500 | `SERVER_ERROR` | An unexpected internal server error has occurred. |
477+
| 503 | `DOWNSTREAM_SERVICE_ERROR` | A downsteam service has failed, request cannot be completed. |
478+
471479
content:
472480
application/fhir+json:
473481
schema:
@@ -545,7 +553,7 @@ paths:
545553
extension:
546554
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
547555
valueCodeableConcept:
548-
coding:
556+
coding:
549557
- system: http://terminology.hl7.org/CodeSystem/consent-reason
550558
code: TBC
551559
display: TBC
@@ -594,7 +602,7 @@ paths:
594602
extension:
595603
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
596604
valueCodeableConcept:
597-
coding:
605+
coding:
598606
- system: http://terminology.hl7.org/CodeSystem/consent-reason
599607
code: TBC
600608
display: TBC
@@ -620,7 +628,7 @@ paths:
620628
application/fhir+json:
621629
schema:
622630
$ref: "#/components/schemas/OperationOutcome"
623-
examples:
631+
examples:
624632
postConsentInvalidPerformerIdentifier:
625633
$ref: "./examples/responses/POST_Consent/error.yaml#/PostConsentInvalidPerformerIdentifierError"
626634
postConsentInvalidAccessLevel:
@@ -2001,7 +2009,7 @@ components:
20012009
description: Model the status reason.
20022010
items:
20032011
$ref: "#/components/schemas/Extension"
2004-
2012+
20052013
Extension:
20062014
type: object
20072015
properties:

0 commit comments

Comments
 (0)