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
Copy file name to clipboardExpand all lines: specification/validated-relationships-service-api.yaml
+48-2Lines changed: 48 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2056,7 +2056,9 @@ components:
2056
2056
type: string
2057
2057
description: The canonical URL of the resource in the entry
2058
2058
resource:
2059
-
$ref: "#/components/schemas/Consent"
2059
+
oneOf:
2060
+
- $ref: "#/components/schemas/Consent"
2061
+
- $ref: "#/components/schemas/ProposedConsent"
2060
2062
search:
2061
2063
type: object
2062
2064
properties:
@@ -2218,7 +2220,6 @@ components:
2218
2220
description: "The status of the consent, following the ConsentStateCodes value set."
2219
2221
enum:
2220
2222
- draft
2221
-
- proposed
2222
2223
- active
2223
2224
- rejected
2224
2225
- inactive
@@ -2252,6 +2253,51 @@ components:
2252
2253
items:
2253
2254
$ref: "#/components/schemas/Extension"
2254
2255
2256
+
ProposedConsent:
2257
+
type: object
2258
+
required:
2259
+
- id
2260
+
- status
2261
+
- patient
2262
+
- dateTime
2263
+
- performer
2264
+
description: The details of the proposed consent including who the patient and care "performer" are, status of the relationship and whether consent was given by a patient with capacity.
2265
+
properties:
2266
+
resourceType:
2267
+
type: string
2268
+
description: FHIR resource type.
2269
+
enum:
2270
+
- Consent
2271
+
default: Consent
2272
+
id:
2273
+
type: string
2274
+
description: Unique identifier of the Consent resource
2275
+
status:
2276
+
type: string
2277
+
description: "The status of the consent, following the ConsentStateCodes value set."
2278
+
enum:
2279
+
- proposed
2280
+
patient:
2281
+
$ref: "#/components/schemas/Reference"
2282
+
description: "The patient who is the subject of the consent."
2283
+
dateTime:
2284
+
type: string
2285
+
format: date-time
2286
+
description: "Date and time when the consent was created."
2287
+
performer:
2288
+
type: array
2289
+
maxItems: 1
2290
+
items:
2291
+
$ref: "#/components/schemas/Reference"
2292
+
description: "Individuals or organizations that agreed to the consent."
0 commit comments