Skip to content

Commit 57408c1

Browse files
NPA-5359: Revert updating post and patch
1 parent 53c9387 commit 57408c1

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
StatusUpdate:
22
summary: Update consent status
3-
description: Example status change to inactive.
3+
description: Example status change to inactive. Along with reason for the status change.
44
value:
55
- op: replace
66
path: /status
77
value: inactive
8+
- op: replace
9+
path: /extension
10+
value:
11+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
12+
valueCodeableConcept:
13+
coding:
14+
- system: http://terminology.hl7.org/CodeSystem/consent-reason
15+
code: TBC
16+
display: TBC
17+

specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ ConsentAdultToAdultGuardianRequest:
4040
identifier:
4141
system: https://fhir.nhs.uk/Id/nhs-number
4242
value: "9000000017"
43+
extension:
44+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
45+
valueCodeableConcept:
46+
coding:
47+
- system: http://terminology.hl7.org/CodeSystem/consent-reason
48+
code: TBC
49+
display: TBC

specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ ConsentParentChildProxyCreationRequest:
4141
identifier:
4242
system: https://fhir.nhs.uk/Id/nhs-number
4343
value: "9000000009"
44+
extension:
45+
- url: https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason
46+
valueCodeableConcept:
47+
coding:
48+
- system: http://terminology.hl7.org/CodeSystem/consent-reason
49+
code: TBC
50+
display: TBC

specification/validated-relationships-service-api.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ paths:
751751
| 422 | `INVALID_CATEGORY` | Invalid category. |
752752
| 422 | `INVALID_DATETIME` | Invalid datetime. |
753753
| 422 | `INVALID_PROVISION` | Invalid provision. |
754+
| 422 | `INVALID_EXTENSION` | Invalid extension. |
754755
| 422 | `INVALID_PARAMETER` | Invalid request parameter. For details, see the diagnostics field. |
755756
| 429 | `THROTTLED` | You have exceeded your application's [rate limit](https://digital.nhs.uk/developer/guides-and-documentation/reference-guide#rate-limits). |
756757
@@ -2266,6 +2267,8 @@ components:
22662267
$ref: "#/components/schemas/Policy"
22672268
provision:
22682269
$ref: "#/components/schemas/Provision"
2270+
extension:
2271+
$ref: "#/components/schemas/Extension"
22692272

22702273
Policy:
22712274
type: object
@@ -2306,6 +2309,15 @@ components:
23062309
role:
23072310
$ref: "#/components/schemas/CodeableConcept"
23082311
description: "Classification of the role of consent, bound to http://terminology.hl7.org/CodeSystem/v3-RoleCode"
2312+
2313+
Extension:
2314+
type: object
2315+
properties:
2316+
url:
2317+
type: string
2318+
valueCodeableConcept:
2319+
$ref: "#/components/schemas/CodeableConcept"
2320+
description: Classification of the status of consent, bound to http://terminology.hl7.org/CodeSystem/consent-reason.
23092321

23102322
OperationOutcome:
23112323
type: object
@@ -2457,6 +2469,7 @@ components:
24572469
- /status
24582470
- /provision/period/end
24592471
- /provision/actor
2472+
- /extension
24602473
value:
24612474
oneOf:
24622475
- type: string

0 commit comments

Comments
 (0)