Skip to content

Commit 606dbe7

Browse files
authored
Merge pull request #175 from NHSDigital/dev/NPA-4610_Status_Reason
NPA-4610 Add Status Reason to example and Path enums
2 parents 7384eae + 7103505 commit 606dbe7

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
StatusUpdate:
2+
summary: Update consent status
3+
description: Example status change to inactive. Along with reason for the status change.
4+
value:
5+
- op: replace
6+
path: /status
7+
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/validated-relationships-service-api.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -752,13 +752,7 @@ paths:
752752
$ref: "#/components/schemas/PatchOperation"
753753
examples:
754754
statusUpdate:
755-
summary: Update consent status
756-
description: |
757-
Example status change to inactive.
758-
value:
759-
- op: replace
760-
path: /status
761-
value: inactive
755+
$ref: "./examples/requests/PATCH_Consent/replace_status.yaml#/StatusUpdate"
762756
updateProvision:
763757
summary: Set an end date for a role
764758
description: |
@@ -2271,8 +2265,17 @@ components:
22712265
enum: [add, remove, replace]
22722266
path:
22732267
type: string
2268+
enum:
2269+
- /status
2270+
- /provision/period/end
2271+
- /provision/actor
2272+
- /extension
22742273
value:
2275-
type: object
2274+
oneOf:
2275+
- type: string
2276+
- type: array
2277+
items:
2278+
type: object
22762279

22772280
parameters:
22782281
RelatedPersonIdentifier:

0 commit comments

Comments
 (0)