Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 49 additions & 3 deletions specification/validated-relationships-service-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ info:
* only covers a limited set of scenarios
* is open access, so does not allow you to test authorisation

[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/46399153-73a3846c-092a-44a1-940f-18736fb1f411?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D46399153-73a3846c-092a-44a1-940f-18736fb1f411%26entityType%3Dcollection%26workspaceId%3D34c06bc9-c5de-4206-b931-9ee51c810dbb))
[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/46399153-73a3846c-092a-44a1-940f-18736fb1f411?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D46399153-73a3846c-092a-44a1-940f-18736fb1f411%26entityType%3Dcollection%26workspaceId%3D34c06bc9-c5de-4206-b931-9ee51c810dbb)

### Integration testing

Expand Down Expand Up @@ -2056,7 +2056,9 @@ components:
type: string
description: The canonical URL of the resource in the entry
resource:
$ref: "#/components/schemas/Consent"
oneOf:
- $ref: "#/components/schemas/Consent"
- $ref: "#/components/schemas/ProposedConsent"
search:
type: object
properties:
Expand Down Expand Up @@ -2218,7 +2220,6 @@ components:
description: "The status of the consent, following the ConsentStateCodes value set."
enum:
- draft
- proposed
- active
- rejected
- inactive
Expand Down Expand Up @@ -2252,6 +2253,51 @@ components:
items:
$ref: "#/components/schemas/Extension"

ProposedConsent:
type: object
required:
- id
- status
- patient
- dateTime
- performer
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.
properties:
resourceType:
type: string
description: FHIR resource type.
enum:
- Consent
default: Consent
id:
type: string
description: Unique identifier of the Consent resource
status:
type: string
description: "The status of the consent, following the ConsentStateCodes value set."
enum:
- proposed
patient:
$ref: "#/components/schemas/Reference"
description: "The patient who is the subject of the consent."
dateTime:
type: string
format: date-time
description: "Date and time when the consent was created."
performer:
type: array
maxItems: 1
items:
$ref: "#/components/schemas/Reference"
description: "Individuals or organizations that agreed to the consent."
provision:
$ref: "#/components/schemas/Provision"
extension:
type: array
description: Model the status reason.
items:
$ref: "#/components/schemas/Extension"

Provision:
type: object
properties:
Expand Down