You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The proxy role must exist and be identified by a valid ID
990
990
* JSON Patch operations must be valid according to RFC 6902
991
991
* Status changes must use valid status codes from <http://hl7.org/fhir/consent-state-codes>
992
+
* Each patch operation in the request body is validated according to its `path`. The allowed `op` values and shape of `value` depend on which `path` is being patched - see the `PatchOperation` schema for the full set of supported per-path operations.
992
993
993
994
### IMPORTANT: Business Rule Enforcement for `/status` updates
994
995
@@ -2692,30 +2693,160 @@ components:
2692
2693
description: "A human-readable representation of the code."
2693
2694
2694
2695
PatchOperation:
2696
+
description: |
2697
+
A single JSON Patch (RFC 6902) operation to apply to a Consent resource.
2698
+
2699
+
This is a discriminated union, keyed on `path`. The set of allowed `op` values, and the shape of `value`, is
2700
+
specific to each `path` - see each per-path schema below for details. Providing an `op` that isn't listed for
2701
+
a given `path` (e.g. `remove` on `/status`) will be rejected as invalid.
2702
+
2703
+
Supported paths are:
2704
+
- `/status` - update the status of the proxy role. Must be paired with a `/extension/-` operation in the same
2705
+
patch array to supply the `statusReason`.
2706
+
- `/extension/-` - append an extension (e.g. `statusReason` or `grantor`) to the Consent resource.
2707
+
- `/policyRule` - update the legal basis for the proxy role.
2708
+
- `/provision/period/end` - add, replace or remove the end date of the proxy role, for time-bound access.
2709
+
- `/provision/actor` - deprecated and not supported for update; any request including this path is rejected.
0 commit comments