Skip to content

Commit 89efb9c

Browse files
NPA-7384: Add new error codes
1 parent 05a2118 commit 89efb9c

3 files changed

Lines changed: 11 additions & 20 deletions

File tree

specification/examples/requests/PATCH_Consent/multiple_updates.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ MultipleUpdates:
2020
- op: add
2121
path: /provision/period/end
2222
value: "2026-12-31T23:59:59Z"
23+
- op: add
24+
path: /policyRule
25+
value:
26+
coding:
27+
- system: "https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis"
28+
code: parental-responsibility
29+
display: Parental responsibility

specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
145145
policy:
146146
- authority: 'https://www.england.nhs.uk'
147147
uri: 'https://digital.nhs.uk/data-and-information/information-standards/governance/latest-activity/standards-and-collections/dapb3051-identity-verification-and-authentication-standard-for-digital-health-and-care-services'
148-
policyRule:
149-
coding:
150-
- system: "https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis"
151-
code: parental-responsibility
152-
display: Parental responsibility
153148
provision:
154149
type: permit
155150
period:
@@ -164,11 +159,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
164159
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
165160
code: APPLICATION_SUBMITTED
166161
display: Application submitted online
167-
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantor
168-
valueReference:
169-
identifier:
170-
system: https://fhir.nhs.uk/Id/ods-organization-code
171-
value: "G8101234"
172162
search:
173163
mode: match
174164

@@ -199,11 +189,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
199189
policy:
200190
- authority: 'https://www.england.nhs.uk'
201191
uri: 'https://digital.nhs.uk/data-and-information/information-standards/governance/latest-activity/standards-and-collections/dapb3051-identity-verification-and-authentication-standard-for-digital-health-and-care-services'
202-
policyRule:
203-
coding:
204-
- system: "https://fhir.nhs.uk/England/CodeSystem/England-NHSProxyLegalBasis"
205-
code: parental-responsibility
206-
display: Parental responsibility
207192
provision:
208193
type: permit
209194
period:
@@ -218,10 +203,5 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
218203
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
219204
code: APPLICATION_SUBMITTED
220205
display: Application submitted online
221-
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantor
222-
valueReference:
223-
identifier:
224-
system: https://fhir.nhs.uk/Id/ods-organization-code
225-
value: "G8101234"
226206
search:
227207
mode: match

specification/validated-relationships-service-api.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ paths:
783783
| 400 | `MISSING_SCOPE` | Missing scope. |
784784
| 400 | `MISSING_CATEGORY` | Missing category. |
785785
| 400 | `MISSING_DATETIME` | Missing datetime. |
786+
| 400 | `MISSING_POLICY_RULE` | Policy Rule is required when creating or activating an active proxy role. |
786787
| 400 | `BAD_REQUEST` | Invalid request. For details, see the `diagnostics` field. |
787788
| 401 | `ACCESS_DENIED` | Missing or invalid OAuth 2.0 bearer token in request. |
788789
| 403 | `FORBIDDEN` | Access denied to resource. |
@@ -798,6 +799,7 @@ paths:
798799
| 422 | `INVALID_CATEGORY` | Invalid category. |
799800
| 422 | `INVALID_DATETIME` | Invalid datetime. |
800801
| 422 | `INVALID_PROVISION` | Invalid provision. |
802+
| 422 | `INVALID_POLICY_RULE` | Invalid policy rule. |
801803
| 422 | `INVALID_EXTENSION` | Invalid extension. |
802804
| 422 | `INVALID_GRANTOR_VALUE` | Grantor ODS code is missing, empty, whitespace-only or invalid format. |
803805
| 422 | `INVALID_PERFORMER` | Invalid performer. |
@@ -1075,6 +1077,7 @@ paths:
10751077
| ----------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
10761078
| 400 | `MISSING_VALUE` | Missing header or parameter. For details, see the `diagnostics` field. |
10771079
| 400 | `MISSING_GRANTOR` | Grantor extension is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
1080+
| 400 | `MISSING_POLICY_RULE` | Policy Rule is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
10781081
| 400 | `MISSING_GRANTOR_REFERENCE` | Grantor extension reference is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
10791082
| 400 | `MISSING_GRANTOR_IDENTIFIER`| Grantor extension identifier is required when creating or activating a consent with status "active". For details, see the `diagnostics` field. |
10801083
| 400 | `INVALID_PATCH` | Invalid patch. |
@@ -1094,6 +1097,7 @@ paths:
10941097
| 422 | `INVALID_END_DATE` | End date is invalid. |
10951098
| 422 | `INVALID_GRANTOR_VALUE` | Invalid grantor identifier value. For details, see the `diagnostics` field. |
10961099
| 422 | `INVALID_GRANTOR_SYSTEM` | Invalid grantor system value. For details, see the `diagnostics` field. |
1100+
| 422 | `INVALID_POLICY_RULE` | Invalid policy rule value. For details, see the `diagnostics` field. |
10971101
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
10981102
10991103
content:

0 commit comments

Comments
 (0)