PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.nl.zorgviewer@1.8.0
    http://hl7.nl/fhir/zorgviewer/StructureDefinition/TreatmentDirective
{
  "description": "Advanced Care Planning (ACP) Behandelaanwijzingen (Consent)",
  "_filename": "StructureDefinition-TreatmentDirective.json",
  "package_name": "hl7.fhir.nl.zorgviewer",
  "date": "2024-11-25T09:42:12+00:00",
  "derivation": "constraint",
  "publisher": "RIVO-NN HL7NL",
  "fhirVersion": "3.0.2",
  "jurisdiction": [ {
    "coding": [ {
      "code": "NL",
      "system": "urn:iso:std:iso:3166"
    } ]
  } ],
  "name": "TreatmentDirective",
  "mapping": [ {
    "uri": "https://zibs.nl/wiki/TreatmentDirective-v3.1(2017EN)",
    "name": "HCIM TreatmentDirective-v3.1(2017EN)",
    "identity": "hcim-treatmentdirective-v3.1-2017EN"
  }, {
    "uri": "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)",
    "name": "HCIM BasicElements-v1.0(2017EN)",
    "identity": "hcim-basicelements-v1.0-2017EN"
  }, {
    "uri": "https://zibs.nl/wiki/TreatmentDirective-v3.0(2016EN)",
    "name": "HCIM TreatmentDirective-v3.0(2016EN)",
    "identity": "hcim-treatmentdirective-v3.0-2016EN"
  }, {
    "uri": "https://zibs.nl/wiki/TreatmentDirective-v1.0.1(2015EN)",
    "name": "HCIM TreatmentDirective-v1.0.1(2015EN)",
    "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/w5",
    "name": "W5 Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "Consent",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "TreatmentDirective",
  "package_version": "1.8.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.text.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
        "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      }, {
        "key": "ppc-1",
        "human": "Either a Policy or PolicyRule",
        "xpath": "exists(f:policy) or exists(f:policyRule)",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent",
        "severity": "error",
        "expression": "policy.exists() or policyRule.exists()"
      }, {
        "key": "hcim-treatmentdirective-1",
        "human": "extension.additionalSources may only be used for AdvanceDirective references in addition to first reference in .source[x]",
        "source": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective",
        "severity": "error",
        "expression": "extension.where(url = 'http://nictiz.nl/fhir/StructureDefinition/consent-additionalSources').empty() or source.exists()"
      } ],
      "path": "Consent",
      "min": 0,
      "definition": "A record of a healthcare consumer’s policy choices, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time.",
      "short": "TreatmentDirective",
      "mapping": [ {
        "map": "NL-CM:2.1.1",
        "comment": "TreatmentInstruction",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.1",
        "comment": "TreatmentInstruction",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.1",
        "comment": "TreatmentDirective",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      }, {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "FinancialConsent",
        "identity": "rim"
      }, {
        "map": "infrastructure.information",
        "identity": "w5"
      } ],
      "alias": [ "BehandelAanwijzing" ],
      "max": "*",
      "id": "Consent",
      "comment": "Broadly, there are 3 key areas of consent for patients: Consent around sharing information (aka Privacy Consent Directive - Authorization to Collect, Use, or Disclose information), consent for specific treatment, or kinds of treatment, and general advance care directives.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent"
      }
    }, {
      "path": "Consent.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Consent.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "Consent.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Consent.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "Consent.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "Consent.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "http://hl7.org/fhir/ValueSet/all-languages"
          }
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "A human language.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "Consent.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      }
    }, {
      "path": "Consent.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Consent.text",
      "condition": [ "dom-1" ],
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "Consent.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Consent.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "Consent.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "Container of the Verification concept. This container contains all data elements of the Verification concept.",
      "isModifier": false,
      "short": "Verification",
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-Verification"
      } ],
      "mustSupport": true,
      "sliceName": "verification",
      "alias": [ "Verificatie" ],
      "max": "1",
      "id": "Consent.extension:verification",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "Consent.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 1,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.extension:verification.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 1,
      "definition": "An Extension",
      "short": "Verified",
      "mapping": [ {
        "map": "NL-CM:2.1.9",
        "comment": "Verified",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.9",
        "comment": "Verified",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.9",
        "comment": "Verified",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "Verified",
      "alias": [ "Geverifieerd" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:Verified",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:Verified.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.extension:verification.extension:Verified.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "Verified",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:Verified.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Consent.extension:verification.extension:Verified.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Indication of the fact that the treatment instruction has been verified with the patient, the patient’s family and/or the patient's authorized representative.",
      "short": "Verified",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "sliceName": "valueBoolean",
      "alias": [ "Geverifieerd" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:Verified.value[x]:valueBoolean",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": true,
      "sliceName": "VerifiedWith",
      "max": "1",
      "id": "Consent.extension:verification.extension:VerifiedWith",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerifiedWith.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.extension:verification.extension:VerifiedWith.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "VerifiedWith",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerifiedWith.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerifiedWith.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "sliceName": "valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "The person with whom the treatment instruction was discussed and verified.",
        "valueSetReference": {
          "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.2.1.4--20171231000000"
        }
      },
      "max": "1",
      "id": "Consent.extension:verification.extension:VerifiedWith.value[x]:valueCodeableConcept",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "VerificationDate",
      "mapping": [ {
        "map": "NL-CM:2.1.10",
        "comment": "VerificationDate",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.10",
        "comment": "VerificationDate",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.10",
        "comment": "VerificationDate",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "sliceName": "VerificationDate",
      "alias": [ "VerificatieDatum" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerificationDate",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerificationDate.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.extension:verification.extension:VerificationDate.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "VerificationDate",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerificationDate.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerificationDate.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.extension.value[x]",
      "min": 0,
      "definition": "Date on which the verification with the patient, the patient’s family and/or the patient's authorized representative took place.",
      "short": "VerificationDate",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "sliceName": "valueDateTime",
      "alias": [ "VerificatieDatum" ],
      "max": "1",
      "id": "Consent.extension:verification.extension:VerificationDate.value[x]:valueDateTime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-Verification",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:verification.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "base64Binary"
      }, {
        "code": "boolean"
      }, {
        "code": "code"
      }, {
        "code": "date"
      }, {
        "code": "dateTime"
      }, {
        "code": "decimal"
      }, {
        "code": "id"
      }, {
        "code": "instant"
      }, {
        "code": "integer"
      }, {
        "code": "markdown"
      }, {
        "code": "oid"
      }, {
        "code": "positiveInt"
      }, {
        "code": "string"
      }, {
        "code": "time"
      }, {
        "code": "unsignedInt"
      }, {
        "code": "uri"
      }, {
        "code": "Address"
      }, {
        "code": "Age"
      }, {
        "code": "Annotation"
      }, {
        "code": "Attachment"
      }, {
        "code": "CodeableConcept"
      }, {
        "code": "Coding"
      }, {
        "code": "ContactPoint"
      }, {
        "code": "Count"
      }, {
        "code": "Distance"
      }, {
        "code": "Duration"
      }, {
        "code": "HumanName"
      }, {
        "code": "Identifier"
      }, {
        "code": "Money"
      }, {
        "code": "Period"
      }, {
        "code": "Quantity"
      }, {
        "code": "Range"
      }, {
        "code": "Ratio"
      }, {
        "code": "Reference"
      }, {
        "code": "SampledData"
      }, {
        "code": "Signature"
      }, {
        "code": "Timing"
      }, {
        "code": "Meta"
      } ],
      "max": "0",
      "id": "Consent.extension:verification.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "Comments on the treatment instruction such as a written description of an end date which can be indicated as a date (“until discharge from hospital”).",
      "short": "Comment",
      "mapping": [ {
        "map": "NL-CM:2.1.15",
        "comment": "Explanation",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.15",
        "comment": "Explanation",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.15",
        "comment": "Comment",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/Comment"
      } ],
      "sliceName": "comment",
      "alias": [ "Toelichting" ],
      "max": "1",
      "id": "Consent.extension:comment",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-Treatment"
      } ],
      "mustSupport": true,
      "sliceName": "treatment",
      "max": "1",
      "id": "Consent.extension:treatment",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "Consent.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:treatment.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.extension:treatment.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-Treatment",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:treatment.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Consent.extension:treatment.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "The medical treatment to which the treatment instruction applies.",
      "short": "Treatment",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "sliceName": "valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "The medical treatment to which the treatment instruction applies.",
        "valueSetReference": {
          "reference": "http://hl7.nl/fhir/zorgviewer/ValueSet/ACPTreatmentCodelist"
        }
      },
      "alias": [ "Behandeling" ],
      "max": "1",
      "id": "Consent.extension:treatment.value[x]:valueCodeableConcept",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/consent-additionalSources"
      } ],
      "sliceName": "additionalSources",
      "max": "*",
      "id": "Consent.extension:additionalSources",
      "condition": [ "ele-1" ],
      "comment": "The cardinality of the source element does not comply with the cardinality of the AdvanceDirective concept (NL-CM:2.1.14) specified in the HCIM TreatmentDirective. Additional AdvanceDirective references can be added using this extension.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "Consent.extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:additionalSources.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.extension:additionalSources.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/consent-additionalSources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:additionalSources.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "A (written) statement in which a person indicates wishes concerning future medical action, in the event that this person is at that point no longer (deemed) capable of taking decisions on the matter.",
      "short": "AdvanceDirective",
      "mapping": [ {
        "map": "NL-CM:2.1.14",
        "comment": "LivingWill - additional to .source",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.14",
        "comment": "LivingWill - additional to .source",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.14",
        "comment": "AdvanceDirective - additional to .source",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Attachment"
      }, {
        "code": "Identifier"
      }, {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
      } ],
      "max": "1",
      "id": "Consent.extension:additionalSources.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.modifierExtension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": true,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.modifierExtension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.modifierExtension",
      "min": 1,
      "definition": "An Extension",
      "isModifier": true,
      "short": "Extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-TreatmentPermitted"
      } ],
      "mustSupport": true,
      "sliceName": "treatmentPermitted",
      "max": "1",
      "id": "Consent.modifierExtension:treatmentPermitted",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "path": "Consent.modifierExtension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.modifierExtension:treatmentPermitted.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.modifierExtension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.modifierExtension:treatmentPermitted.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.modifierExtension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-TreatmentPermitted",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.modifierExtension:treatmentPermitted.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "Consent.modifierExtension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "max": "1",
      "id": "Consent.modifierExtension:treatmentPermitted.value[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.modifierExtension.value[x]",
      "min": 0,
      "definition": "Indication of permission for the treatment, no permission for the treatment, or permission for the treatment with constraints.",
      "short": "TreatmentPermitted",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "Indication of permission for the treatment, no permission for the treatment, or permission for the treatment with constraints.",
        "valueSetReference": {
          "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.2.1.2--20171231000000"
        }
      },
      "alias": [ "BehandelingToegestaan" ],
      "max": "1",
      "id": "Consent.modifierExtension:treatmentPermitted.value[x]:valueCodeableConcept",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "path": "Consent.identifier",
      "min": 0,
      "definition": "Unique identifier for this copy of the Consent Statement.",
      "short": "Identifier for this record (external references)",
      "mapping": [ {
        "map": "NL-CM:0.0.6",
        "comment": "IdentificationNumber",
        "identity": "hcim-basicelements-v1.0-2017EN"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Consent.identifier",
      "comment": "This identifier is identifies this copy of the consent. Where this identifier is also used elsewhere as the identifier for a consent record (e.g. a CDA consent document) then the consent details are expected to be the same.",
      "example": [ {
        "label": "General",
        "valueIdentifier": {
          "value": "Local eCMS identifier",
          "system": "urn:ietf:rfc:3986"
        }
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.identifier"
      },
      "isSummary": true
    }, {
      "path": "Consent.status",
      "requirements": "The Consent Directive that is pointed to might be in various lifecycle states, e.g., a revoked Consent Directive.",
      "min": 1,
      "definition": "Indicates the current state of this consent.",
      "isModifier": true,
      "short": "draft | proposed | active | rejected | inactive | entered-in-error",
      "mapping": [ {
        "map": "HL7 Table 0498 - Consent Status",
        "identity": "v2"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentState"
        } ],
        "description": "Indicates the state of the consent",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-state-codes"
        }
      },
      "max": "1",
      "id": "Consent.status",
      "comment": "The HCIM treatmentDirective is not explicit on its intention. The expectation however is that any instantation of a TreatmentDirective is \"active\" unless stated otherwise.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.status"
      },
      "isSummary": true
    }, {
      "path": "Consent.category",
      "min": 1,
      "definition": "A classification of the type of consents found in the statement. This element supports indexing and retrieval of consent statements.",
      "short": "Classification of the consent statement - for indexing/retrieval",
      "mapping": [ {
        "map": "CNTRCT",
        "identity": "rim"
      }, {
        "map": "class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentCategory"
        } ],
        "description": "A classification of the type of consents found in a consent statement",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-category"
        }
      },
      "max": "*",
      "id": "Consent.category",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.category"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.category.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.category.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.category.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.category.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 1,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Consent.category.coding",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 1,
      "definition": "Category SNOMED code used for indexing/retrieval of the HCIM TreatmentDirective.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "sliceName": "treatmentDirective",
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.category.coding.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.category.coding:treatmentDirective.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.category.coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 1,
      "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
      "short": "Identity of the terminology system",
      "fixedUri": "http://snomed.info/sct",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.system",
      "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding.code",
      "fixedCode": "11291000146105",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 1,
      "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
      "short": "Symbol in syntax defined by the system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).",
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Consent.category.coding:treatmentDirective.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "path": "Consent.category.text",
      "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
      "min": 0,
      "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Consent.category.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "path": "Consent.patient",
      "min": 1,
      "definition": "The patient/healthcare consumer to whom this consent applies.",
      "short": "Who the consent applies to",
      "mapping": [ {
        "map": "NL-CM:0.0.11",
        "comment": "Subject",
        "identity": "hcim-basicelements-v1.0-2017EN"
      }, {
        "map": "Role",
        "identity": "rim"
      }, {
        "map": "who.focus",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      } ],
      "max": "1",
      "id": "Consent.patient",
      "comment": "Commonly, the patient the consent pertains to is the author, but for young and old people, it may be some other person.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.patient"
      },
      "isSummary": true
    }, {
      "path": "Consent.period",
      "min": 0,
      "definition": "Relevant time or time-period when this Consent is applicable.",
      "short": "Period that this consent applies",
      "mapping": [ {
        "map": "FinancialConsent activityTime",
        "identity": "rim"
      }, {
        "map": "when.done",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "mustSupport": true,
      "meaningWhenMissing": "all date ranges included",
      "max": "1",
      "id": "Consent.period",
      "comment": "This can be a subset of the period of the original statement.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.period"
      },
      "isSummary": true
    }, {
      "path": "Consent.period.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.period.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.period.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.period.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.period.start",
      "min": 0,
      "definition": "Date on which the treatment instruction went into effect. A ‘vague’ date, such as only the year, is permitted.",
      "short": "StartDate",
      "mapping": [ {
        "map": "NL-CM:2.1.6",
        "comment": "StartDate",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.6",
        "comment": "StartDate",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.6",
        "comment": "StartDate",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      }, {
        "map": "DR.1",
        "identity": "v2"
      }, {
        "map": "./low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "alias": [ "BeginDatum" ],
      "max": "1",
      "id": "Consent.period.start",
      "condition": [ "per-1" ],
      "comment": "If the low element is missing, the meaning is that the low boundary is not known.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Period.start"
      },
      "isSummary": true
    }, {
      "path": "Consent.period.end",
      "min": 0,
      "definition": "Date on which the treatment instruction ends. A ‘vague’ date, such as only the year, is permitted.",
      "short": "EndDate",
      "mapping": [ {
        "map": "NL-CM:2.1.7",
        "comment": "EndDate",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.7",
        "comment": "EndDate",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.7",
        "comment": "EndDate",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      }, {
        "map": "DR.2",
        "identity": "v2"
      }, {
        "map": "./high",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing",
      "alias": [ "EindDatum" ],
      "max": "1",
      "id": "Consent.period.end",
      "condition": [ "per-1" ],
      "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Period.end"
      },
      "isSummary": true
    }, {
      "path": "Consent.dateTime",
      "min": 0,
      "definition": "When this  Consent was issued / created / indexed.",
      "short": "When this Consent was created or indexed",
      "mapping": [ {
        "map": "NL-CM:0.0.14",
        "comment": "DateTime",
        "identity": "hcim-basicelements-v1.0-2017EN"
      }, {
        "map": "FinancialConsent effectiveTime",
        "identity": "rim"
      }, {
        "map": "when.recorded",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Consent.dateTime",
      "comment": "This is not the time of the original consent, but the time that this statement was made or derived.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.dateTime"
      },
      "isSummary": true
    }, {
      "path": "Consent.consentingParty",
      "min": 0,
      "definition": "Either the Grantor, which is the entity responsible for granting the rights listed in a Consent Directive or the Grantee, which is the entity responsible for complying with the Consent Directive, including any obligations or limitations on authorizations and enforcement of prohibitions.",
      "short": "Who is agreeing to the policy and exceptions",
      "mapping": [ {
        "map": "NL-CM:0.0.7",
        "comment": "Author",
        "identity": "hcim-basicelements-v1.0-2017EN"
      }, {
        "map": "who.actor",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
      } ],
      "alias": [ "consentor" ],
      "max": "*",
      "id": "Consent.consentingParty",
      "comment": "Commonly, the patient the consent pertains to is the consentor, but particularly for young and old people, it may be some other person - e.g. a legal guardian.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.consentingParty"
      },
      "isSummary": true
    }, {
      "path": "Consent.consentingParty.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.consentingParty.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.consentingParty.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.consentingParty.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.consentingParty.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
      } ],
      "sliceName": "practitionerRole",
      "max": "1",
      "id": "Consent.consentingParty.extension:practitionerRole",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.consentingParty.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Consent.consentingParty.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "path": "Consent.consentingParty.identifier",
      "min": 0,
      "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Consent.consentingParty.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "path": "Consent.consentingParty.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Consent.consentingParty.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.actor",
      "min": 0,
      "definition": "Who or what is controlled by this consent. Use group to identify a set of actors by some property they share (e.g. 'admitting officers').",
      "short": "Who|what controlled by this consent (or group, by role)",
      "mapping": [ {
        "map": "who.actor",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "There is no specific actor associated with the consent",
      "max": "*",
      "id": "Consent.actor",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.actor"
      },
      "isSummary": true
    }, {
      "path": "Consent.actor.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.actor.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.actor.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.actor.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.actor.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.actor.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.actor.role",
      "min": 1,
      "definition": "How the individual is involved in the resources content that is described in the consent.",
      "short": "How the actor is involved",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentActorRole"
        } ],
        "description": "How an actor is involved in the consent considerations",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/security-role-type"
        }
      },
      "max": "1",
      "id": "Consent.actor.role",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.actor.role"
      }
    }, {
      "id": "Consent.actor.reference",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.actor.reference"
      },
      "path": "Consent.actor.reference",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/CareTeam"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
      } ],
      "short": "Resource for the actor (or group, by role)",
      "definition": "The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')."
    }, {
      "path": "Consent.actor.reference.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.actor.reference.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.actor.reference.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.actor.reference.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.actor.reference.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
      } ],
      "sliceName": "practitionerRole",
      "max": "1",
      "id": "Consent.actor.reference.extension:practitionerRole",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.actor.reference.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Consent.actor.reference.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "path": "Consent.actor.reference.identifier",
      "min": 0,
      "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Consent.actor.reference.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "path": "Consent.actor.reference.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Consent.actor.reference.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "path": "Consent.action",
      "min": 0,
      "definition": "Actions controlled by this consent.",
      "short": "Actions controlled by this consent",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "meaningWhenMissing": "all actions",
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentAction"
        } ],
        "description": "Detailed codes for the consent action.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-action"
        }
      },
      "max": "*",
      "id": "Consent.action",
      "comment": "Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.action"
      },
      "isSummary": true
    }, {
      "path": "Consent.organization",
      "min": 0,
      "definition": "The organization that manages the consent, and the framework within which it is executed.",
      "short": "Custodian of the consent",
      "mapping": [ {
        "map": "who.witness",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      } ],
      "alias": [ "custodian" ],
      "max": "*",
      "id": "Consent.organization",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.organization"
      },
      "isSummary": true
    }, {
      "path": "Consent.source[x]",
      "min": 0,
      "definition": "A (written) statement in which a person indicates wishes concerning future medical action, in the event that this person is at that point no longer (deemed) capable of taking decisions on the matter.",
      "short": "AdvanceDirective",
      "mapping": [ {
        "map": "NL-CM:2.1.14",
        "comment": "LivingWill",
        "identity": "hcim-treatmentdirective-v1.0.1-2015EN"
      }, {
        "map": "NL-CM:2.1.14",
        "comment": "LivingWill",
        "identity": "hcim-treatmentdirective-v3.0-2016EN"
      }, {
        "map": "NL-CM:2.1.14",
        "comment": "AdvanceDirective",
        "identity": "hcim-treatmentdirective-v3.1-2017EN"
      } ],
      "type": [ {
        "code": "Attachment"
      }, {
        "code": "Identifier"
      }, {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdvanceDirective"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Contract"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
      } ],
      "alias": [ "Wilsverklaring" ],
      "max": "1",
      "id": "Consent.source[x]",
      "comment": "The cardinality of the source element does not comply with the cardinality of the AdvanceDirective concept (NL-CM:2.1.14) specified in the HCIM TreatmentDirective. Additional AdvanceDirective references can be added using the additionalSources extension.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.source[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.policy",
      "min": 0,
      "definition": "The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law.",
      "short": "Policies covered by this consent",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Consent.policy",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.policy"
      }
    }, {
      "path": "Consent.policy.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.policy.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.policy.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.policy.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.policy.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.policy.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.policy.authority",
      "min": 0,
      "definition": "Entity or Organization having regulatory jurisdiction or accountability for  enforcing policies pertaining to Consent Directives.",
      "short": "Enforcement source for policy",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.policy.authority",
      "condition": [ "ppc-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policy.authority"
      }
    }, {
      "path": "Consent.policy.uri",
      "min": 0,
      "definition": "The references to the policies that are included in this consent scope. Policies may be organizational, but are often defined jurisdictionally, or in law.",
      "short": "Specific policy covered by this consent",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.policy.uri",
      "condition": [ "ppc-1" ],
      "comment": "Either `.policy` or `.policyRule` should exist following core constraint ppc-1. If no explicit value is recorded, a fallback is to populate `.policy.uri` with  if the treatment directive is recorded following Dutch law and regulations.",
      "example": [ {
        "label": "General Dutch Law",
        "valueUri": "http://wetten.overheid.nl/"
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policy.uri"
      }
    }, {
      "path": "Consent.policyRule",
      "requirements": "Might be a unique identifier of a policy set in XACML, or other rules engine.",
      "min": 0,
      "definition": "A referece to the specific computable policy.",
      "short": "Policy that this consents to",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.policyRule",
      "condition": [ "ppc-1" ],
      "comment": "If the policy reference is not known, the resource cannot be processed. Where the reference is absent, there is no particular policy other than what is expressed directly in the consent resource.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policyRule"
      },
      "isSummary": true
    }, {
      "path": "Consent.securityLabel",
      "min": 0,
      "definition": "A set of security labels that define which resources are controlled by this consent. If more than one label is specified, all resources must have all the specified labels.",
      "short": "Security Labels that define affected resources",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SecurityLabels"
        } ],
        "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/security-labels"
        }
      },
      "max": "*",
      "id": "Consent.securityLabel",
      "comment": "If the consent specifies a security label of \"R\" then it applies to all resources that are labeled \"R\" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.securityLabel"
      },
      "isSummary": true
    }, {
      "path": "Consent.purpose",
      "min": 0,
      "definition": "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent.",
      "short": "Context of activities for which the agreement is made",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PurposeOfUse"
        } ],
        "description": "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
        }
      },
      "max": "*",
      "id": "Consent.purpose",
      "comment": "This element is for discoverability / documentation, and does not modify or qualify the policy (e.g. the policy itself describes the purposes for which it applies).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.purpose"
      },
      "isSummary": true
    }, {
      "path": "Consent.dataPeriod",
      "min": 0,
      "definition": "Clinical or Operational Relevant period of time that bounds the data controlled by this consent.",
      "short": "Timeframe for data controlled by this consent",
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Consent.dataPeriod",
      "comment": "This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.dataPeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.data",
      "min": 0,
      "definition": "The resources controlled by this consent, if specific resources are referenced.",
      "short": "Data controlled by this consent",
      "mapping": [ {
        "map": "Role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "all data",
      "max": "*",
      "id": "Consent.data",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.data"
      },
      "isSummary": true
    }, {
      "path": "Consent.data.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.data.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.data.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.data.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.data.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.data.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.data.meaning",
      "min": 1,
      "definition": "How the resource reference is interpreted when testing consent restrictions.",
      "short": "instance | related | dependents | authoredby",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentDataMeaning"
        } ],
        "description": "How a resource reference is interpreted when testing consent restrictions",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-data-meaning"
        }
      },
      "max": "1",
      "id": "Consent.data.meaning",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.data.meaning"
      },
      "isSummary": true
    }, {
      "path": "Consent.data.reference",
      "min": 1,
      "definition": "A reference to a specific resource that defines which resources are covered by this consent.",
      "short": "The actual data reference",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
      } ],
      "max": "1",
      "id": "Consent.data.reference",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.data.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.except",
      "min": 0,
      "definition": "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.",
      "short": "Additional rule -  addition or removal of permissions",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Consent.except",
      "comment": "If a Consent.except is used in accordance with the HCIM TreatmentDirective, then the only time an except is in order, is when the value of the element NL-CM:2.1.4 TreatmentPermitted is YES_BUT/JA_MAAR.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.except.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.except.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.except.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.except.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective-Restrictions"
      } ],
      "mustSupport": true,
      "sliceName": "restrictions",
      "max": "1",
      "id": "Consent.except.extension:restrictions",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.except.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.except.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.type",
      "min": 1,
      "definition": "Action  to take - permit or deny - when the exception conditions are met.",
      "short": "deny | permit",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentExceptType"
        } ],
        "description": "How an exception statement is applied, such as adding additional consent or removing consent",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-except-type"
        }
      },
      "max": "1",
      "id": "Consent.except.type",
      "comment": "If a Consent.except is used in accordance with the HCIM TreatmentDirective and the value of the element NL-CM:2.1.4 TreatmentPermitted is YES_BUT/JA_MAAR, then the value of this element SHALL be \"deny\"",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.except.type"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.period",
      "min": 0,
      "definition": "The timeframe in this exception is valid.",
      "short": "Timeframe for this exception",
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Consent.except.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.except.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.except.actor",
      "min": 0,
      "definition": "Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. 'admitting officers').",
      "short": "Who|what controlled by this exception (or group, by role)",
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "There is no specific actor associated with the exception",
      "max": "*",
      "id": "Consent.except.actor",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.actor"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.actor.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.except.actor.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.except.actor.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.except.actor.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.except.actor.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.except.actor.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.actor.role",
      "min": 1,
      "definition": "How the individual is involved in the resources content that is described in the exception.",
      "short": "How the actor is involved",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentActorRole"
        } ],
        "description": "How an actor is involved in the consent considerations",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/security-role-type"
        }
      },
      "max": "1",
      "id": "Consent.except.actor.role",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.except.actor.role"
      }
    }, {
      "id": "Consent.except.actor.reference",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.except.actor.reference"
      },
      "path": "Consent.except.actor.reference",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/CareTeam"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
      } ],
      "short": "Resource for the actor (or group, by role)",
      "definition": "The resource that identifies the actor. To identify a actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers')."
    }, {
      "path": "Consent.except.actor.reference.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.except.actor.reference.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.except.actor.reference.extension",
      "min": 0,
      "definition": "An Extension",
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Consent.except.actor.reference.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.except.actor.reference.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
      } ],
      "sliceName": "practitionerRole",
      "max": "1",
      "id": "Consent.except.actor.reference.extension:practitionerRole",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.except.actor.reference.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Consent.except.actor.reference.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.actor.reference.identifier",
      "min": 0,
      "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Consent.except.actor.reference.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.actor.reference.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Consent.except.actor.reference.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.action",
      "min": 0,
      "definition": "Actions controlled by this Exception.",
      "short": "Actions controlled by this exception",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "meaningWhenMissing": "all actions",
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentAction"
        } ],
        "description": "Detailed codes for the consent action.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-action"
        }
      },
      "max": "*",
      "id": "Consent.except.action",
      "comment": "Note that this is the direct action (not the grounds for the action covered in the purpose element). At present, the only action in the understood and tested scope of this resource is 'read'.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.action"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.securityLabel",
      "min": 0,
      "definition": "A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels.",
      "short": "Security Labels that define affected resources",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SecurityLabels"
        } ],
        "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/security-labels"
        }
      },
      "max": "*",
      "id": "Consent.except.securityLabel",
      "comment": "If the consent specifies a security label of \"R\" then it applies to all resources that are labeled \"R\" or lower. E.g. for Confidentiality, it's a high water mark. For other kinds of security labels, subsumption logic applies. Not all of the security labels make sense for use in this element (may define a narrower value set?).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.securityLabel"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.purpose",
      "min": 0,
      "definition": "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception.",
      "short": "Context of activities covered by this exception",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "PurposeOfUse"
        } ],
        "description": "What purposes of use are controlled by this exception. If more than one label is specified, operations must have all the specified labels",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse"
        }
      },
      "max": "*",
      "id": "Consent.except.purpose",
      "comment": "E.g. if the purpose is 'research', then the operational context must be research, in order for the consent to apply. Not all of the security labels make sense for use in this element (may define a narrower value set?).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.purpose"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.class",
      "min": 0,
      "definition": "The class of information covered by this exception. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to.",
      "short": "e.g. Resource Type, Profile, or CDA etc",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentContentClass"
        } ],
        "description": "The class (type) of information a consent rule covers",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-content-class"
        }
      },
      "max": "*",
      "id": "Consent.except.class",
      "comment": "Multiple types are or'ed together. The intention of the contentType element is that the codes refer to profiles or document types defined in a standard or an implementation guide somewhere.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.class"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.code",
      "min": 0,
      "definition": "If this code is found in an instance, then the exception applies.",
      "short": "e.g. LOINC or SNOMED CT code, etc in the content",
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentContentCode"
        } ],
        "description": "If this code is found in an instance, then the exception applies",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-content-code"
        }
      },
      "max": "*",
      "id": "Consent.except.code",
      "comment": "Typical use of this is a Document code with class = CDA.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.code"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.dataPeriod",
      "min": 0,
      "definition": "Clinical or Operational Relevant period of time that bounds the data controlled by this exception.",
      "short": "Timeframe for data controlled by this exception",
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Consent.except.dataPeriod",
      "comment": "This has a different sense to the Consent.period - that is when the consent agreement holds. This is the time period of the data that is controlled by the agreement.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.except.dataPeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Consent.except.data",
      "min": 0,
      "definition": "The resources controlled by this exception, if specific resources are referenced.",
      "short": "Data controlled by this exception",
      "mapping": [ {
        "map": "Role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "all data",
      "max": "*",
      "id": "Consent.except.data",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.except.data"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.data.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.except.data.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Consent.except.data.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Consent.except.data.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.except.data.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.except.data.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.data.meaning",
      "min": 1,
      "definition": "How the resource reference is interpreted when testing consent restrictions.",
      "short": "instance | related | dependents | authoredby",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentDataMeaning"
        } ],
        "description": "How a resource reference is interpreted when testing consent restrictions",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/consent-data-meaning"
        }
      },
      "max": "1",
      "id": "Consent.except.data.meaning",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.except.data.meaning"
      },
      "isSummary": true
    }, {
      "path": "Consent.except.data.reference",
      "min": 1,
      "definition": "A reference to a specific resource that defines which resources are covered by this consent.",
      "short": "The actual data reference",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
      } ],
      "max": "1",
      "id": "Consent.except.data.reference",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.except.data.reference"
      },
      "isSummary": true
    } ]
  },
  "status": "active",
  "id": "600c2a8f-5be1-4246-8f28-9539eec1be35",
  "kind": "resource",
  "url": "http://hl7.nl/fhir/zorgviewer/StructureDefinition/TreatmentDirective",
  "version": "1.8.0",
  "differential": {
    "element": [ {
      "id": "Consent",
      "path": "Consent"
    }, {
      "id": "Consent.extension:verification",
      "max": "1",
      "path": "Consent.extension",
      "sliceName": "verification",
      "mustSupport": true
    }, {
      "id": "Consent.extension:verification.extension:VerifiedWith",
      "max": "1",
      "path": "Consent.extension.extension",
      "sliceName": "VerifiedWith",
      "mustSupport": true
    }, {
      "id": "Consent.extension:verification.extension:VerifiedWith.valueCodeableConcept:valueCodeableConcept",
      "path": "Consent.extension.extension.valueCodeableConcept",
      "sliceName": "valueCodeableConcept",
      "mustSupport": true
    }, {
      "id": "Consent.extension:treatment",
      "max": "1",
      "path": "Consent.extension",
      "sliceName": "treatment",
      "mustSupport": true
    }, {
      "id": "Consent.extension:treatment.valueCodeableConcept:valueCodeableConcept",
      "path": "Consent.extension.valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "The medical treatment to which the treatment instruction applies.",
        "valueSetReference": {
          "reference": "http://hl7.nl/fhir/zorgviewer/ValueSet/ACPTreatmentCodelist"
        }
      },
      "sliceName": "valueCodeableConcept",
      "mustSupport": true
    }, {
      "id": "Consent.modifierExtension:treatmentPermitted",
      "path": "Consent.modifierExtension",
      "sliceName": "treatmentPermitted",
      "mustSupport": true
    }, {
      "id": "Consent.period",
      "path": "Consent.period",
      "mustSupport": true
    }, {
      "id": "Consent.period.start",
      "path": "Consent.period.start",
      "mustSupport": true
    }, {
      "id": "Consent.except.extension:restrictions",
      "max": "1",
      "path": "Consent.except.extension",
      "sliceName": "restrictions",
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "name": "RIVO-NN",
    "telecom": [ {
      "value": "https://rivo-noord.nl",
      "system": "url"
    } ]
  }, {
    "name": "HL7NL",
    "telecom": [ {
      "value": "https://hl7.nl",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective"
}