Skip to content

Commit b4f99c6

Browse files
committed
NPA-5305: Add ProposedConsent Component
1 parent 3bf5643 commit b4f99c6

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,9 @@ components:
20562056
type: string
20572057
description: The canonical URL of the resource in the entry
20582058
resource:
2059-
$ref: "#/components/schemas/Consent"
2059+
oneOf:
2060+
- $ref: "#/components/schemas/Consent"
2061+
- $ref: "#/components/schemas/ProposedConsent"
20602062
search:
20612063
type: object
20622064
properties:
@@ -2218,7 +2220,6 @@ components:
22182220
description: "The status of the consent, following the ConsentStateCodes value set."
22192221
enum:
22202222
- draft
2221-
- proposed
22222223
- active
22232224
- rejected
22242225
- inactive
@@ -2252,6 +2253,51 @@ components:
22522253
items:
22532254
$ref: "#/components/schemas/Extension"
22542255

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."
2293+
provision:
2294+
$ref: "#/components/schemas/Provision"
2295+
extension:
2296+
type: array
2297+
description: Model the status reason.
2298+
items:
2299+
$ref: "#/components/schemas/Extension"
2300+
22552301
Provision:
22562302
type: object
22572303
properties:

0 commit comments

Comments
 (0)