## Profile Comparison between http://fhir.hl7.nl/zorgviewer/StructureDefinition/ToestemmingConsent vs http://fhir.hl7.nl/zorgviewer/StructureDefinition/ToestemmingConsent

Left: | ToestemmingConsent (http://fhir.hl7.nl/zorgviewer/StructureDefinition/ToestemmingConsent)
Right: | ToestemmingConsent (http://fhir.hl7.nl/zorgviewer/StructureDefinition/ToestemmingConsent)

### Messages

Error | Consent.patient | Type Mismatch: Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Patient]]) vs Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Patient]])
Error | Consent.organization | Type Mismatch: Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Organization]]) vs Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Organization]])

### Metadata

Name | Value | Comments
--- | --- | ---
abstract | false |
baseDefinition | http://hl7.org/fhir/StructureDefinition/Consent |
copyright |  |
description | De registatie (Consent) dat de patient de RIVO-Noord policy voor toestemming van gegevensuitwisseling heeft geaccepteerd |
experimental |  |
fhirVersion | 3.0.2 |
jurisdiction |  |
jurisdiction[0] | urn:iso:std:iso:3166#NL |
kind | resource |
name | ToestemmingConsent |
publisher | RIVO-NN HL7NL |
purpose |  |
status | active |
title | ToestemmingConsent |
type | Consent |
url | http://fhir.hl7.nl/zorgviewer/StructureDefinition/ToestemmingConsent |

### Structure

Name | L Flags | L Card. | L Type | L Description & Constraints | R Flags | R Card. | R Type | R Description & Constraints | Comments
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Consent | C | 0..* | Consent | A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time | C | 0..* | Consent | A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time |
id | Σ | 0..1 | id | Logical id of this artifact | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language |  | 0..1 | code | Language of the resource content Binding: ?? (extensible): A human language.
Additional Bindings | Purpose
?? | Max Binding
|  | 0..1 | code | Language of the resource content Binding: ?? (extensible): A human language.
Additional Bindings | Purpose
?? | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements |
contained |  | 0..* | Resource | Contained, inline Resources |  | 0..* | Resource | Contained, inline Resources |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..1 | Identifier | Identifier for this record (external references) Example General: {"system":"urn:ietf:rfc:3986","value":"Local eCMS identifier"} | Σ | 0..1 | Identifier | Identifier for this record (external references) Example General: {"system":"urn:ietf:rfc:3986","value":"Local eCMS identifier"} |
status | ?!S Σ | 1..1 | code | draft | proposed | active | rejected | inactive | entered-in-error Binding: ?? (required): Indicates the state of the consent | ?!S Σ | 1..1 | code | draft | proposed | active | rejected | inactive | entered-in-error Binding: ?? (required): Indicates the state of the consent |
category | Σ | 0..* | CodeableConcept | Classification of the consent statement - for indexing/retrieval Binding: ?? (example): A classification of the type of consents found in a consent statement | Σ | 0..* | CodeableConcept | Classification of the consent statement - for indexing/retrieval Binding: ?? (example): A classification of the type of consents found in a consent statement |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
coding | Σ | 0..* | Coding | Code defined by a terminology system | Σ | 0..* | Coding | Code defined by a terminology system |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url |
system | Σ | 0..1 | uri | Identity of the terminology system | Σ | 0..1 | uri | Identity of the terminology system |
version | Σ | 0..1 | string | Version of the system - if relevant | Σ | 0..1 | string | Version of the system - if relevant |
code | S Σ | 0..1 | code | Symbol in syntax defined by the system Fixed Value: Doss. delen? | S Σ | 0..1 | code | Symbol in syntax defined by the system Fixed Value: Doss. delen? |
display | Σ | 0..1 | string | Representation defined by the system | Σ | 0..1 | string | Representation defined by the system |
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user | Σ | 0..1 | boolean | If this coding was chosen directly by the user |
text | Σ | 0..1 | string | Plain text representation of the concept | Σ | 0..1 | string | Plain text representation of the concept |
patient | S Σ | 1..1 | Reference(Patient) | Who the consent applies to | S Σ | 1..1 | Reference(Patient) | Who the consent applies to | Type Mismatch: Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Patient]]) vs Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Patient]])
period | S Σ | 0..1 | Period | Period that this consent applies | S Σ | 0..1 | Period | Period that this consent applies |
dateTime | Σ | 0..1 | dateTime | When this Consent was created or indexed | Σ | 0..1 | dateTime | When this Consent was created or indexed |
consentingParty | Σ | 0..* | Reference(Organization | Patient | Practitioner | RelatedPerson) | Who is agreeing to the policy and exceptions | Σ | 0..* | Reference(Organization | Patient | Practitioner | RelatedPerson) | Who is agreeing to the policy and exceptions |
actor | Σ | 0..* | BackboneElement | Who|what controlled by this consent (or group, by role) | Σ | 0..* | BackboneElement | Who|what controlled by this consent (or group, by role) |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
role |  | 1..1 | CodeableConcept | How the actor is involved Binding: ?? (extensible): How an actor is involved in the consent considerations |  | 1..1 | CodeableConcept | How the actor is involved Binding: ?? (extensible): How an actor is involved in the consent considerations |
reference |  | 1..1 | Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson) | Resource for the actor (or group, by role) |  | 1..1 | Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson) | Resource for the actor (or group, by role) |
action | Σ | 0..* | CodeableConcept | Actions controlled by this consent Binding: ?? (example): Detailed codes for the consent action. | Σ | 0..* | CodeableConcept | Actions controlled by this consent Binding: ?? (example): Detailed codes for the consent action. |
organization | S Σ | 0..* | Reference(Organization) | Custodian of the consent | S Σ | 0..* | Reference(Organization) | Custodian of the consent | Type Mismatch: Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Organization]]) vs Reference([CanonicalType[http://fhir.hl7.nl/zorgviewer/StructureDefinition/Organization]])
source[x] | Σ | 0..1 | Attachment, Identifier, Reference(Consent | DocumentReference | Contract | QuestionnaireResponse) | Source from which this consent is taken | Σ | 0..1 | Attachment, Identifier, Reference(Consent | DocumentReference | Contract | QuestionnaireResponse) | Source from which this consent is taken |
policy | S | 0..* | BackboneElement | Policies covered by this consent | S | 0..* | BackboneElement | Policies covered by this consent |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
authority | C | 0..1 | uri | Enforcement source for policy | C | 0..1 | uri | Enforcement source for policy |
uri | S C | 0..1 | uri | Specific policy covered by this consent Fixed Value: https://rivo-noord.nl/zorgviewer/toestemming | S C | 0..1 | uri | Specific policy covered by this consent Fixed Value: https://rivo-noord.nl/zorgviewer/toestemming |
policyRule | Σ C | 0..1 | uri | Policy that this consents to | Σ C | 0..1 | uri | Policy that this consents to |
securityLabel | Σ | 0..* | Coding | Security Labels that define affected resources Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | Σ | 0..* | Coding | Security Labels that define affected resources Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |
purpose | Σ | 0..* | Coding | Context of activities for which the agreement is made Binding: ?? (extensible): What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels | Σ | 0..* | Coding | Context of activities for which the agreement is made Binding: ?? (extensible): What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels |
dataPeriod | Σ | 0..1 | Period | Timeframe for data controlled by this consent | Σ | 0..1 | Period | Timeframe for data controlled by this consent |
data | Σ | 0..* | BackboneElement | Data controlled by this consent | Σ | 0..* | BackboneElement | Data controlled by this consent |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
meaning | Σ | 1..1 | code | instance | related | dependents | authoredby Binding: ?? (required): How a resource reference is interpreted when testing consent restrictions | Σ | 1..1 | code | instance | related | dependents | authoredby Binding: ?? (required): How a resource reference is interpreted when testing consent restrictions |
reference | Σ | 1..1 | Reference(Resource) | The actual data reference | Σ | 1..1 | Reference(Resource) | The actual data reference |
except | Σ | 0..* | BackboneElement | Additional rule - addition or removal of permissions | Σ | 0..* | BackboneElement | Additional rule - addition or removal of permissions |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | Σ | 1..1 | code | deny | permit Binding: ?? (required): How an exception statement is applied, such as adding additional consent or removing consent | Σ | 1..1 | code | deny | permit Binding: ?? (required): How an exception statement is applied, such as adding additional consent or removing consent |
period | Σ | 0..1 | Period | Timeframe for this exception | Σ | 0..1 | Period | Timeframe for this exception |
actor | Σ | 0..* | BackboneElement | Who|what controlled by this exception (or group, by role) | Σ | 0..* | BackboneElement | Who|what controlled by this exception (or group, by role) |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
role |  | 1..1 | CodeableConcept | How the actor is involved Binding: ?? (extensible): How an actor is involved in the consent considerations |  | 1..1 | CodeableConcept | How the actor is involved Binding: ?? (extensible): How an actor is involved in the consent considerations |
reference |  | 1..1 | Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson) | Resource for the actor (or group, by role) |  | 1..1 | Reference(Device | Group | CareTeam | Organization | Patient | Practitioner | RelatedPerson) | Resource for the actor (or group, by role) |
action | Σ | 0..* | CodeableConcept | Actions controlled by this exception Binding: ?? (example): Detailed codes for the consent action. | Σ | 0..* | CodeableConcept | Actions controlled by this exception Binding: ?? (example): Detailed codes for the consent action. |
securityLabel | Σ | 0..* | Coding | Security Labels that define affected resources Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | Σ | 0..* | Coding | Security Labels that define affected resources Binding: ?? (extensible): Security Labels from the Healthcare Privacy and Security Classification System. |
purpose | Σ | 0..* | Coding | Context of activities covered by this exception Binding: ?? (extensible): What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels | Σ | 0..* | Coding | Context of activities covered by this exception Binding: ?? (extensible): What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels |
class | Σ | 0..* | Coding | e.g. Resource Type, Profile, or CDA etc Binding: ?? (extensible): The class (type) of information a consent rule covers | Σ | 0..* | Coding | e.g. Resource Type, Profile, or CDA etc Binding: ?? (extensible): The class (type) of information a consent rule covers |
code | Σ | 0..* | Coding | e.g. LOINC or SNOMED CT code, etc in the content Binding: ?? (example): If this code is found in an instance, then the exception applies | Σ | 0..* | Coding | e.g. LOINC or SNOMED CT code, etc in the content Binding: ?? (example): If this code is found in an instance, then the exception applies |
dataPeriod | Σ | 0..1 | Period | Timeframe for data controlled by this exception | Σ | 0..1 | Period | Timeframe for data controlled by this exception |
data | Σ | 0..* | BackboneElement | Data controlled by this exception | Σ | 0..* | BackboneElement | Data controlled by this exception |
id |  | 0..1 | string | xml:id (or equivalent in JSON) |  | 0..1 | string | xml:id (or equivalent in JSON) |
extension |  | 0..* | Extension | Additional Content defined by implementations |  | 0..* | Extension | Additional Content defined by implementations |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
meaning | Σ | 1..1 | code | instance | related | dependents | authoredby Binding: ?? (required): How a resource reference is interpreted when testing consent restrictions | Σ | 1..1 | code | instance | related | dependents | authoredby Binding: ?? (required): How a resource reference is interpreted when testing consent restrictions |
reference | Σ | 1..1 | Reference(Resource) | The actual data reference | Σ | 1..1 | Reference(Resource) | The actual data reference |
Documentation for this format