PackagesCanonicalsLogsProblems
    Packages
    iknl.fhir.r4.pzp@1.0.0-rc1
    https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective
{
  "description": "A joint decision between a health professional (for example a general practitioner) and a patient or his representative(s) about the desirability of performing a certain treatment, such as resuscitation, before this treatment becomes (acute) necessary. Based on nl-core-TreatmentDirective2 and HCIM TreatmentDirective2.",
  "_filename": "StructureDefinition-ACP-TreatmentDirective.json",
  "package_name": "iknl.fhir.r4.pzp",
  "date": "2025-10-30T18:55:05+01:00",
  "derivation": "constraint",
  "publisher": "IKNL",
  "fhirVersion": "4.0.1",
  "name": "ACPTreatmentDirective",
  "mapping": [ {
    "uri": "https://decor.nictiz.nl/exist/apps/api/dataset/2.16.840.1.113883.2.4.3.11.60.117.1.1/2020-07-29T10%3A37%3A48/$view?language=nl-NL&ui=nl-NL&format=html&hidecolumns=3456gh&release=2025-10-29T13%3A09%3A23",
    "name": "ACP dataset",
    "identity": "pall-izppz-zib2020v2025-03-11"
  }, {
    "uri": "https://zibs.nl/wiki/TreatmentDirective2-v1.0(2020EN)",
    "name": "zib TreatmentDirective2-v1.0(2020EN)",
    "identity": "zib-treatmentdirective2-v1.0-2020EN"
  } ],
  "abstract": false,
  "copyright": "Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise.",
  "type": "Consent",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "TreatmentDirective",
  "package_version": "1.0.0-rc1",
  "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|4.0.1",
        "severity": "error",
        "expression": "contained.contained.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|4.0.1",
        "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 or SHALL refer to the containing resource",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource|4.0.1",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "ppc-4",
        "human": "IF Scope=adr, there must be a patient",
        "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='adr'])))",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1",
        "severity": "error",
        "expression": "patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()"
      }, {
        "key": "ppc-5",
        "human": "IF Scope=treatment, there must be a patient",
        "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='treatment'])))",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1",
        "severity": "error",
        "expression": "patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()"
      }, {
        "key": "ppc-2",
        "human": "IF Scope=privacy, there must be a patient",
        "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='patient-privacy'])))",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1",
        "severity": "error",
        "expression": "patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()"
      }, {
        "key": "ppc-3",
        "human": "IF Scope=research, there must be a patient",
        "xpath": "exists(f:patient) or not(exists(f:scope/f:coding[f:system/@value='something' and f:code/@value='research'])))",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1",
        "severity": "error",
        "expression": "patient.exists() or scope.coding.where(system='something' and code='research').exists().not()"
      }, {
        "key": "ppc-1",
        "human": "Either a Policy or PolicyRule",
        "xpath": "exists(f:policy) or exists(f:policyRule)",
        "source": "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1",
        "severity": "error",
        "expression": "policy.exists() or policyRule.exists()"
      }, {
        "key": "zib-TreatmentDirective2-1",
        "human": "`extension.additionalAdvanceDirective` may only be used for AdvanceDirective references in addition to first reference in `.source[x]`.",
        "source": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective2",
        "severity": "error",
        "expression": "extension.where(url = 'http://nictiz.nl/fhir/StructureDefinition/ext-TreatmentDirective2.AdvanceDirective').empty() or source.exists()"
      }, {
        "key": "zib-TreatmentDirective2-2",
        "human": "If the specificationOther extension is used, `.provision.type` MUST be absent and vice versa",
        "source": "http://nictiz.nl/fhir/StructureDefinition/zib-TreatmentDirective2",
        "severity": "error",
        "expression": "(extension.where(url = 'http://nictiz.nl/fhir/StructureDefinition/ext-TreatmentDirective2.SpecificitionOther').exists() and provision.type.exists()).not()"
      } ],
      "path": "Consent",
      "min": 0,
      "definition": "A record of a healthcare consumer’s  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": "602",
        "comment": "Behandelgrens (BehandelAanwijzing)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "637",
        "comment": "Afspraak uitzetten ICD (BehandelAanwijzing)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "CON",
        "identity": "v2"
      }, {
        "map": "FinancialConsent",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.1",
        "comment": "TreatmentDirective",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "alias": [ "BehandelAanwijzing", "nl-core-TreatmentDirective2" ],
      "max": "*",
      "id": "Consent",
      "comment": "A straightforward and accurate mapping of zib TreatmentDirective2 to FHIR is not possible. The main consideration is to choose between the Consent and CarePlan resource. Unfortunately, the Consent resource does not have full support for treatment directives yet as its main focus is to model Patient's privacy consents. Regardless, it seems to be the best match to represent the intention of the zib, as both the resource and the zib cover a mutual agreement about treatments and not per se the resulting actions or policy for treatments, which would better be handled using the CarePlan resource. Future migration to a later version of FHIR or the zib will result in the reevaluation of the mapping.",
      "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": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "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
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Consent.meta",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.implicitRules",
      "condition": [ "ele-1" ],
      "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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages|4.0.1"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "Consent.language",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can 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": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Consent.text",
      "condition": [ "ele-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 information 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": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "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. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can 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"
      }, {
        "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",
      "condition": [ "ele-1" ],
      "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": "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "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/ext-Comment" ]
      } ],
      "sliceName": "comment",
      "max": "1",
      "id": "Consent.extension:comment",
      "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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:comment.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension.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": "0",
      "id": "Consent.extension:comment.extension",
      "condition": [ "ele-1" ],
      "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/ext-Comment",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:comment.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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "The comment may include further information such as the reason why a treatment directive has been drawn up, persons who assisted the patient in agreeing the treatment directive but who are not otherwise involved in the agreement as a representative, etc.",
      "short": "Comment",
      "mapping": [ {
        "map": "618",
        "comment": "Toelichting",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "653",
        "comment": "Toelichting",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.13",
        "comment": "Comment",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "alias": [ "Toelichting" ],
      "max": "1",
      "id": "Consent.extension:comment.value[x]",
      "condition": [ "ele-1" ],
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "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/ext-TreatmentDirective2.AdvanceDirective" ]
      } ],
      "sliceName": "additionalAdvanceDirective",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "*",
      "id": "Consent.extension:additionalAdvanceDirective",
      "condition": [ "ele-1", "zib-TreatmentDirective2-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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:additionalAdvanceDirective.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension.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": "0",
      "id": "Consent.extension:additionalAdvanceDirective.extension",
      "condition": [ "ele-1" ],
      "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/ext-TreatmentDirective2.AdvanceDirective",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:additionalAdvanceDirective.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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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": "644",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.8",
        "comment": "AdvanceDirective",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-AdvanceDirective|1.0.0-rc1" ]
      } ],
      "alias": [ "Wilsverklaring" ],
      "max": "1",
      "id": "Consent.extension:additionalAdvanceDirective.value[x]",
      "condition": [ "ele-1", "zib-TreatmentDirective2-1" ],
      "comment": "`Consent.source:sourceReference` is the primary target for referencing zib AdvanceDirective (zib concept NL-CM:2.2.8). However, the cardinality of `Consent.source[x]` is restricted to `0..1`. If more than one AdvanceDirective needs to be referenced, the _additional_ references can be communicated using this extension. If this extension is used, `Consent.source:sourceReference` SHALL be populated and it SHALL not contain the same reference as this extension.",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension",
      "min": 0,
      "definition": "An extension to link the Encounter during which the Consent, Goal or DeviceUseStatement was created or to which the creation is tightly associated.",
      "short": "ext Encounter Reference",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ext-EncounterReference|1.0.0-rc1" ]
      } ],
      "sliceName": "encounter",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "1",
      "id": "Consent.extension:encounter",
      "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.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:encounter.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.extension.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Consent.extension:encounter.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Consent.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ext-EncounterReference",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.extension:encounter.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"
      },
      "isSummary": false
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.extension.value[x]",
      "min": 0,
      "definition": "The Encounter during which this resource was created or to which the creation is tightly associated.",
      "isModifier": false,
      "short": "Encounter",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Encounter|1.0.0-rc1" ]
      } ],
      "max": "1",
      "id": "Consent.extension:encounter.value[x]",
      "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. completing the administrative registration after the encounter).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "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",
      "condition": [ "ele-1" ],
      "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": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.modifierExtension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "isModifier": true,
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://nictiz.nl/fhir/StructureDefinition/ext-TreatmentDirective2.SpecificationOther" ]
      } ],
      "sliceName": "specificationOther",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "1",
      "id": "Consent.modifierExtension:specificationOther",
      "condition": [ "ele-1", "zib-TreatmentDirective2-2" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "This extension extends the options of _deny_ and _permit_ of `Consent.provision.type` with the opportunity to provide free text. The `Consent.provision` cannot be safely interpreted if the free text in this extension is omitted, hence the reason for labeling this extension as a modifier."
    }, {
      "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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.modifierExtension:specificationOther.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "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. 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 can 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"
      }, {
        "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:specificationOther.extension",
      "condition": [ "ele-1" ],
      "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/ext-TreatmentDirective2.SpecificationOther",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.modifierExtension:specificationOther.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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.modifierExtension.value[x]",
      "min": 0,
      "definition": "Specification of the treatment decision when the decision is 'Other'.",
      "short": "SpecificationOther",
      "mapping": [ {
        "map": "605",
        "comment": "SpecificatieAnders",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "638",
        "comment": "Afspraak uitzetten ICD (BehandelBesluit)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.4",
        "comment": "SpecificationOther",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "SpecificatieAnders" ],
      "max": "1",
      "id": "Consent.modifierExtension:specificationOther.value[x]",
      "condition": [ "ele-1", "zib-TreatmentDirective2-2" ],
      "comment": "In addition to the default zib/nl-core guidance, this extension is used to communicate further details about agreements concerning ICD.",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.identifier",
      "min": 0,
      "definition": "Unique identifier for this copy of the Consent Statement.",
      "short": "Identifier for this record (external references)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)",
        "identity": "v2"
      }, {
        "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]",
        "identity": "rim"
      }, {
        "map": "Identifier",
        "identity": "servd"
      }, {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "Consent.identifier",
      "condition": [ "ele-1" ],
      "comment": "This identifier 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": "*",
        "min": 0,
        "path": "Consent.identifier"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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": "n/a",
        "identity": "rim"
      }, {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "HL7 Table 0498 - Consent Status",
        "identity": "v2"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.5",
        "comment": "MostRecentReviewDate (implicit, main mapping is on `Consent.dateTime`)",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      }, {
        "map": "NL-CM:2.2.6",
        "comment": "DateExpired (implicit, main mapping is on `Consent.provision.period.end`)",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentState"
        } ],
        "description": "Indicates the state of the consent."
      },
      "max": "1",
      "id": "Consent.status",
      "condition": [ "ele-1" ],
      "comment": "This element is implicitly mapped to the zib concepts NL-CM:2.2.5 (MostRecentReviewDate) and NL-CM:2.2.6 (DateExpired). Unless the status is explicitly recorded, the following guidance applies:\r\n\r\n* When MostRecentReviewDate is in the past and DateExpired is absent or in the future, `.status` will usually be set to _active_.\r\n* When DateExpired is in the past, `.status` will usually be set to _inactive_.\r\n* When MostRecentReviewDate is absent or in the future,  which is not possible following the zib, `.status` will usually be set to _draft_.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.status"
      },
      "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.scope",
      "min": 1,
      "definition": "A selector of the type of consent being presented: ADR, Privacy, Treatment, Research.  This list is now extensible.",
      "isModifier": true,
      "short": "Which of the four areas this resource covers (extensible)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-scope|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentScope"
        } ],
        "description": "The four anticipated uses for the Consent Resource."
      },
      "max": "1",
      "id": "Consent.scope",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "treatment",
          "system": "http://terminology.hl7.org/CodeSystem/consentscope"
        } ]
      },
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.scope"
      },
      "isModifierReason": "Allows changes to codes based on scope selection",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      }, {
        "map": "Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "HL7 Table 0497 - Consent Type",
        "identity": "v2"
      }, {
        "map": "CNTRCT",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "$this",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-category|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentCategory"
        } ],
        "description": "A classification of the type of consents found in a consent statement."
      },
      "max": "*",
      "id": "Consent.category",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "base": {
        "max": "*",
        "min": 1,
        "path": "Consent.category"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      }, {
        "map": "Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "HL7 Table 0497 - Consent Type",
        "identity": "v2"
      }, {
        "map": "CNTRCT",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "treatmentDirectiveCode",
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-category|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentCategory"
        } ],
        "description": "A classification of the type of consents found in a consent statement."
      },
      "max": "1",
      "id": "Consent.category:treatmentDirectiveCode",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "129125009",
          "system": "http://snomed.info/sct"
        } ]
      },
      "base": {
        "max": "*",
        "min": 1,
        "path": "Consent.category"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.patient",
      "min": 0,
      "definition": "The patient/healthcare consumer to whom this consent applies.",
      "short": "Who the consent applies to",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      }, {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "Role",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Patient|1.0.0-rc1" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "1",
      "id": "Consent.patient",
      "condition": [ "ele-1" ],
      "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": 0,
        "path": "Consent.patient"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.dateTime",
      "min": 0,
      "definition": "The date on which the treatment directive has been agreed with the patient and / or his representative (s). This can be the first time that the treatment directive have been discussed, but an existing treatment directive may also have been discussed again. The content of the treatment directive may have changed or remained the same.",
      "short": "MostRecentReviewDate",
      "mapping": [ {
        "map": "606",
        "comment": "MeestRecenteBespreekdatum",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "641",
        "comment": "MeestRecenteBespreekdatum",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": "Field 13/ Consent Decision Date",
        "identity": "v2"
      }, {
        "map": "FinancialConsent effectiveTime",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.5",
        "comment": "MostRecentReviewDate",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "alias": [ "MeestRecenteBespreekdatum" ],
      "max": "1",
      "id": "Consent.dateTime",
      "condition": [ "ele-1" ],
      "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
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.performer",
      "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 rules",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      }, {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.actor",
        "identity": "w5"
      }, {
        "map": "Field 24/ ConsenterID",
        "identity": "v2"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ]
      } ],
      "alias": [ "consentor" ],
      "max": "*",
      "id": "Consent.performer",
      "condition": [ "ele-1" ],
      "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.performer"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "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": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      }, {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.witness",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ]
      } ],
      "alias": [ "custodian" ],
      "max": "*",
      "id": "Consent.organization",
      "condition": [ "ele-1" ],
      "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.organization"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.source[x]",
      "min": 0,
      "definition": "The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document.",
      "short": "Source from which this consent is taken",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "Field 19 Informational Material Supplied Indicator",
        "identity": "v2"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "Attachment"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Consent|4.0.1", "http://hl7.org/fhir/StructureDefinition/DocumentReference|4.0.1", "http://hl7.org/fhir/StructureDefinition/Contract|4.0.1", "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse|4.0.1" ]
      } ],
      "max": "1",
      "id": "Consent.source[x]",
      "condition": [ "ele-1", "zib-TreatmentDirective2-1" ],
      "comment": "The source can be contained inline (Attachment), referenced directly (Consent), referenced in a consent repository (DocumentReference), or simply by an identifier (Identifier), e.g. a CDA document id.",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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": "609",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "644",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "Field 19 Informational Material Supplied Indicator",
        "identity": "v2"
      }, {
        "map": "NL-CM:2.2.8",
        "comment": "AdvanceDirective",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-AdvanceDirective|1.0.0-rc1" ]
      } ],
      "sliceName": "sourceReference",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "alias": [ "Wilsverklaring" ],
      "max": "1",
      "id": "Consent.source[x]:sourceReference",
      "condition": [ "ele-1", "zib-TreatmentDirective2-1" ],
      "comment": "The cardinality of this `Consent.source[x]` element is restricted to `0..1`, which is narrower than the AdvanceDirective concept (NL-CM:2.2.8) specified in the HCIM TreatmentDirective2. If additional AdvanceDirective references are needed, the additionalAdvanceDirective extension can be used _in addition to_ this element. If the additionalAdvanceDirective extension is used, this element SHALL be populated and it SHALL not contain a reference that is also present in the 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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Consent.policy",
      "condition": [ "ele-1" ],
      "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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.policy.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "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. 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 can 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"
      }, {
        "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.policy.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.policy.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.policy.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.policy.authority",
      "condition": [ "ele-1", "ppc-1" ],
      "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policy.authority"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Consent.policy.uri",
      "condition": [ "ele-1", "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policy.uri"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.policyRule",
      "requirements": "Might be a unique identifier of a policy set in XACML, or other rules engine.",
      "min": 0,
      "definition": "A reference to the specific base computable regulation or policy.",
      "short": "Regulation that this consents to",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-policy|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentPolicyRule"
        } ],
        "description": "Regulatory policy examples."
      },
      "max": "1",
      "id": "Consent.policyRule",
      "condition": [ "ele-1", "ppc-1" ],
      "comment": "If the policyRule is absent, computable consent would need to be constructed from the elements of the Consent resource.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.policyRule"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.verification",
      "min": 0,
      "definition": "Whether a treatment instruction (e.g. artificial respiration yes or no) was verified with the patient, his/her family or another authorized person.",
      "short": "Consent Verified by patient or family",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Consent.verification",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.verification"
      },
      "isSummary": true
    }, {
      "path": "Consent.verification.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.verification.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.verification.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.verification.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.verification.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.verification.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.verification.verified",
      "min": 1,
      "definition": "Has the instruction been verified.",
      "short": "Has been verified",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "Consent.verification.verified",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.verification.verified"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.verification.verifiedWith",
      "min": 0,
      "definition": "Who verified the instruction (Patient, Relative or other Authorized Person).",
      "short": "Person who verified",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1" ]
      } ],
      "max": "1",
      "id": "Consent.verification.verifiedWith",
      "condition": [ "ele-1" ],
      "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.verification.verifiedWith"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.verification.verificationDate",
      "min": 0,
      "definition": "Date verification was collected.",
      "short": "When consent verified",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Consent.verification.verificationDate",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.verification.verificationDate"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision",
      "min": 0,
      "definition": "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.",
      "short": "Constraints to the base Consent.policyRule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "Consent.provision",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.provision"
      },
      "isSummary": true
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "643",
        "comment": "RedenBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://nictiz.nl/fhir/StructureDefinition/ext-TreatmentDirective2.ReasonForEnding" ]
      } ],
      "sliceName": "reasonForEnding",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "1",
      "id": "Consent.provision.extension:reasonForEnding",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.extension:reasonForEnding.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.extension:reasonForEnding.extension",
      "condition": [ "ele-1" ],
      "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.provision.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/ext-TreatmentDirective2.ReasonForEnding",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "uri"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.extension:reasonForEnding.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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.extension.value[x]",
      "min": 0,
      "definition": "Reason why the agreement on a treatment directive no longer applies.",
      "short": "ReasonForEnding",
      "mapping": [ {
        "map": "608",
        "comment": "RedenBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.7",
        "comment": "ReasonForEnding",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "RedenBeeindigd" ],
      "max": "1",
      "id": "Consent.provision.extension:reasonForEnding.value[x]",
      "condition": [ "ele-1" ],
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.provision.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.type",
      "min": 0,
      "definition": "The joint decision taken with regard to the desirability of performing the indicated treatment. If the agreement is 'Other', 'Specification Other' shall contain the instructions for whether or not to carry out the treatment. Implementers SHALL support the specificationOther modifier extension for this.",
      "short": "TreatmentDecision",
      "mapping": [ {
        "map": "603",
        "comment": "BehandelBesluit",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "638",
        "comment": "Afspraak uitzetten ICD (BehandelBesluit)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.2",
        "comment": "TreatmentDecision",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-provision-type|4.0.1",
        "_valueSet": {
          "extension": [ {
            "url": "http://hl7.org/fhir/StructureDefinition/11179-permitted-value-conceptmap",
            "valueCanonical": "http://nictiz.nl/fhir/ConceptMap/TreatmentDecisionCodelist-to-ConsentProvisionType"
          } ]
        },
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentProvisionType"
        } ],
        "description": "Use ConceptMap TreatmentDecisionCodelist-to-ConsentProvisionType to translate terminology from the functional model to profile terminology in ValueSet ConsentProvisionType."
      },
      "alias": [ "BehandelBesluit" ],
      "max": "1",
      "id": "Consent.provision.type",
      "condition": [ "ele-1", "zib-TreatmentDirective2-2" ],
      "comment": "Additional terminology mapping guidance, in addition to the default zib/nl-core guidance: \r\n- BehandelBesluit (dataset id 603) values: \r\n    - _Wel uitvoeren_ -> _permit_\r\n    - _Niet uitvoeren_ -> _deny_\r\n    - _Anders_ or _Onbekend_ -> do not set a value. Instead, communicate this via the `modifierExtension[specificationOther].value[x]` element.\r\n- Afspraak uitzetten ICD (dataset id 638) values: \r\n    - _Wel uitvoeren_ -> _permit_ \r\n    - No value is mapped to _deny_\r\n    - _Nee, nog geen besluit genomen_ or _Niet besproken_ -> do not set a value. Instead, communicate this via the `modifierExtension[specificationOther].value[x]` element.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.provision.type"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "per-1",
        "human": "If present, start SHALL have a lower value than end",
        "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
        "source": "http://hl7.org/fhir/StructureDefinition/Period|4.0.1",
        "severity": "error",
        "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)"
      } ],
      "path": "Consent.provision.period",
      "min": 0,
      "definition": "The timeframe in this rule is valid.",
      "short": "Timeframe for this rule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR",
        "identity": "v2"
      }, {
        "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Consent.provision.period",
      "condition": [ "ele-1" ],
      "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Consent.provision.period"
      },
      "isSummary": true
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.period.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.period.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.period.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.period.start",
      "min": 0,
      "definition": "The start of the period. The boundary is inclusive.",
      "short": "Starting time with inclusive boundary",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR.1",
        "identity": "v2"
      }, {
        "map": "./low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Consent.provision.period.start",
      "condition": [ "ele-1", "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
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.period.end",
      "min": 0,
      "definition": "The date on which the treatment directive has been withdrawn and therefore no longer applies. An explicit decision must be taken about the 'date expired', in consultation between the responsible care provider and the patient or his representative(s).Any future termination can only be entered as a condition. Often this will be linked to 1 or more events.",
      "short": "DateExpired",
      "mapping": [ {
        "map": "607",
        "comment": "DatumBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "642",
        "comment": "DatumBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR.2",
        "identity": "v2"
      }, {
        "map": "./high",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.6",
        "comment": "DateExpired",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "alias": [ "DatumBeeindigd" ],
      "max": "1",
      "id": "Consent.provision.period.end",
      "condition": [ "ele-1", "per-1" ],
      "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Period.end"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.actor",
      "min": 0,
      "definition": "Who or what is controlled by this rule. Use group to identify a set of actors by some property they share (e.g. 'admitting officers').",
      "short": "Who|what controlled by this rule (or group, by role)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "role",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "There is no specific actor associated with the exception",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "provisionActor"
      } ],
      "max": "*",
      "id": "Consent.provision.actor",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.actor"
      }
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.actor.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.actor.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.actor.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.actor.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.provision.actor.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentActorRole"
        } ],
        "description": "How an actor is involved in the consent considerations."
      },
      "max": "1",
      "id": "Consent.provision.actor.role",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.actor.role"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.provision.actor.reference",
      "min": 1,
      "definition": "The resource that identifies the actor. To identify actors by type, use group to identify a set of actors by some property they share (e.g. 'admitting officers').",
      "short": "Resource for the actor (or group, by role)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device|4.0.1", "http://hl7.org/fhir/StructureDefinition/Group|4.0.1", "http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1", "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1" ]
      } ],
      "max": "1",
      "id": "Consent.provision.actor.reference",
      "condition": [ "ele-1" ],
      "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.actor.reference"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.actor",
      "min": 0,
      "definition": "Who or what is controlled by this rule. Use group to identify a set of actors by some property they share (e.g. 'admitting officers').",
      "short": "AgreementParty",
      "mapping": [ {
        "map": "611",
        "comment": "AfspraakPartij",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "646",
        "comment": "AfspraakPartij",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.9",
        "comment": "AgreementParty",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "sliceName": "agreementParty",
      "meaningWhenMissing": "There is no specific actor associated with the exception",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "provisionActor"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "alias": [ "AfspraakPartij" ],
      "max": "*",
      "id": "Consent.provision.actor:agreementParty",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.actor"
      }
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.actor:agreementParty.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.actor.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.actor:agreementParty.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.actor.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.provision.actor:agreementParty.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/security-role-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentActorRole"
        } ],
        "description": "How an actor is involved in the consent considerations."
      },
      "max": "1",
      "id": "Consent.provision.actor:agreementParty.role",
      "condition": [ "ele-1" ],
      "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "CONSENTER",
          "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode"
        } ]
      },
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.actor.role"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.provision.actor.reference",
      "min": 1,
      "definition": "* Patient as the person with whom the agreement was made.\r\n* Person who represents the patient in health care matters and with whom the agreement has been made (too).\r\n* HealthProfessional who has made the agreement regarding the treatment directive.",
      "short": "Patient / Representative / HealthProfessional",
      "mapping": [ {
        "map": "612",
        "comment": "Patient",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "614",
        "comment": "Vertegenwoordiger",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "616",
        "comment": "Zorgverlener",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "647",
        "comment": "Patient",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "649",
        "comment": "Vertegenwoordiger",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "651",
        "comment": "Zorgverlener",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      }, {
        "map": "NL-CM:2.2.10",
        "comment": "Patient",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      }, {
        "map": "NL-CM:2.2.11",
        "comment": "Representative",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      }, {
        "map": "NL-CM:2.2.12",
        "comment": "HealthProfessional",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Patient|1.0.0-rc1", "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-HealthProfessional-PractitionerRole|1.0.0-rc1", "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-ContactPerson|1.0.0-rc1" ]
      } ],
      "alias": [ "Patient", "Vertegenwoordiger", "Zorgverlener" ],
      "max": "1",
      "id": "Consent.provision.actor:agreementParty.reference",
      "condition": [ "ele-1" ],
      "comment": "Each occurrence of the zib HealthProfessional is normally represented by _two_ FHIR resources: a PractitionerRole resource (instance of [nl-core-HealthProfessional-PractitionerRole](http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole)) and a Practitioner resource (instance of [nl-core-HealthProfessional-Practitioner](http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-Practitioner)). The Practitioner resource is referenced from the PractitionerRole instance. For this reason, sending systems should fill the reference to the PractitionerRole instance here, and not the Practitioner resource. Receiving systems can then retrieve the reference to the Practitioner resource from that PractitionerRole instance.\r\n\r\nIn rare circumstances, there is only a Practitioner instance, in which case it is that instance which will be referenced here. However, since this should be the exception, the nl-core-HealthProfessional-Practitioner profile is not explicitly mentioned as a target profile.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.actor.reference"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.action",
      "min": 0,
      "definition": "Actions controlled by this Rule.",
      "short": "Actions controlled by this rule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "meaningWhenMissing": "all actions",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-action|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentAction"
        } ],
        "description": "Detailed codes for the consent action."
      },
      "max": "*",
      "id": "Consent.provision.action",
      "condition": [ "ele-1" ],
      "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.provision.action"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.securityLabel",
      "min": 0,
      "definition": "A security label, comprised of 0..* security label fields (Privacy tags), which define which resources are controlled by this exception.",
      "short": "Security Labels that define affected resources",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/security-labels|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SecurityLabels"
        } ],
        "description": "Security Labels from the Healthcare Privacy and Security Classification System."
      },
      "max": "*",
      "id": "Consent.provision.securityLabel",
      "condition": [ "ele-1" ],
      "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. When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.securityLabel"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.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 rule.",
      "short": "Context of activities covered by this rule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse|3.1.0",
        "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."
      },
      "max": "*",
      "id": "Consent.provision.purpose",
      "condition": [ "ele-1" ],
      "comment": "When the purpose of use tag is on the data, access request purpose of use shall not conflict.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.purpose"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.class",
      "min": 0,
      "definition": "The class of information covered by this rule. 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, CDA, etc.",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6",
        "identity": "v2"
      }, {
        "map": "CV",
        "identity": "rim"
      }, {
        "map": "fhir:Coding rdfs:subClassOf dt:CDCoding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-content-class|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentContentClass"
        } ],
        "description": "The class (type) of information a consent rule covers."
      },
      "max": "*",
      "id": "Consent.provision.class",
      "condition": [ "ele-1" ],
      "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.provision.class"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.code",
      "min": 0,
      "definition": "The medical treatment to which the treatment instruction applies.",
      "short": "Treatment",
      "mapping": [ {
        "map": "604",
        "comment": "Behandeling",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "CE/CNE/CWE",
        "identity": "v2"
      }, {
        "map": "CD",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD",
        "identity": "orim"
      }, {
        "map": "NL-CM:2.2.3",
        "comment": "Treatment",
        "identity": "zib-treatmentdirective2-v1.0-2020EN"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.2.2.1--20200901000000|2020-09-01T00:00:00",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentContentCode"
        } ],
        "description": "If this code is found in an instance, then the exception applies."
      },
      "alias": [ "Behandeling" ],
      "max": "1",
      "id": "Consent.provision.code",
      "condition": [ "ele-1" ],
      "comment": "Typical use of this is a Document code with class = CDA.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.code"
      },
      "isSummary": true
    }, {
      "path": "Consent.provision.code.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.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.code.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.code.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "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.provision.code.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"
      },
      "isSummary": false
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.code.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "isModifier": false,
      "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"
      } ],
      "max": "*",
      "id": "Consent.provision.code.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
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.code.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.",
      "isModifier": false,
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "639",
        "comment": "Behandeling van ICD (Behandeling)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "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
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        }, {
          "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective|1.0.0-rc1"
        } ]
      } ],
      "max": "1",
      "id": "Consent.provision.code.text",
      "comment": "`.provision.type` has a required binding. Therefore, only codes in the bound ValueSet are permitted. For concepts not present in the ValueSet, such as SNOMED CT code 400231000146108 (Uitzetten van cardioverter-defibrillator in laatste levensfase), use the `.text` field as per FHIR guidance.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "per-1",
        "human": "If present, start SHALL have a lower value than end",
        "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
        "source": "http://hl7.org/fhir/StructureDefinition/Period|4.0.1",
        "severity": "error",
        "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)"
      } ],
      "path": "Consent.provision.dataPeriod",
      "min": 0,
      "definition": "Clinical or Operational Relevant period of time that bounds the data controlled by this rule.",
      "short": "Timeframe for data controlled by this rule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "DR",
        "identity": "v2"
      }, {
        "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Consent.provision.dataPeriod",
      "condition": [ "ele-1" ],
      "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.provision.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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.data",
      "min": 0,
      "definition": "The resources controlled by this rule if specific resources are referenced.",
      "short": "Data controlled by this rule",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "Role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "meaningWhenMissing": "all data",
      "max": "*",
      "id": "Consent.provision.data",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.data"
      },
      "isSummary": true
    }, {
      "path": "Consent.provision.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": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Consent.provision.data.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.data.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. 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 can 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"
      }, {
        "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.provision.data.extension",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (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|4.0.1",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Consent.provision.data.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Consent.provision.data.modifierExtension",
      "condition": [ "ele-1" ],
      "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"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Consent.provision.data.meaning",
      "min": 1,
      "definition": "How the resource reference is interpreted when testing consent restrictions.",
      "short": "instance | related | dependents | authoredby",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/consent-data-meaning|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "ConsentDataMeaning"
        } ],
        "description": "How a resource reference is interpreted when testing consent restrictions."
      },
      "max": "1",
      "id": "Consent.provision.data.meaning",
      "condition": [ "ele-1" ],
      "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.data.meaning"
      },
      "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|4.0.1",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ref-1",
        "human": "SHALL have a contained resource if a local reference is provided",
        "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Reference|4.0.1",
        "severity": "error",
        "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"
      } ],
      "path": "Consent.provision.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",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" ]
      } ],
      "max": "1",
      "id": "Consent.provision.data.reference",
      "condition": [ "ele-1" ],
      "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Consent.provision.data.reference"
      },
      "isSummary": true
    }, {
      "id": "Consent.provision.provision",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Consent.provision.provision"
      },
      "path": "Consent.provision.provision",
      "short": "Nested Exception Rules",
      "definition": "Rules which provide exceptions to the base rule or subrules.",
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Consent#Consent.provision"
    } ]
  },
  "status": "draft",
  "id": "3dcabc51-73d4-49fa-afac-f627eabeb140",
  "kind": "resource",
  "url": "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-TreatmentDirective",
  "version": "1.0.0-rc1",
  "differential": {
    "element": [ {
      "id": "Consent",
      "path": "Consent",
      "mapping": [ {
        "map": "602",
        "comment": "Behandelgrens (BehandelAanwijzing)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "637",
        "comment": "Afspraak uitzetten ICD (BehandelAanwijzing)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.extension:comment",
      "path": "Consent.extension",
      "sliceName": "comment"
    }, {
      "id": "Consent.extension:comment.extension",
      "max": "0",
      "path": "Consent.extension.extension"
    }, {
      "id": "Consent.extension:comment.value[x]",
      "path": "Consent.extension.value[x]",
      "mapping": [ {
        "map": "618",
        "comment": "Toelichting",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "653",
        "comment": "Toelichting",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    }, {
      "id": "Consent.extension:additionalAdvanceDirective",
      "path": "Consent.extension",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "additionalAdvanceDirective"
    }, {
      "id": "Consent.extension:additionalAdvanceDirective.extension",
      "max": "0",
      "path": "Consent.extension.extension"
    }, {
      "id": "Consent.extension:additionalAdvanceDirective.value[x]",
      "path": "Consent.extension.value[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-AdvanceDirective|1.0.0-rc1" ]
      } ],
      "mapping": [ {
        "map": "644",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.extension:encounter",
      "max": "1",
      "min": 0,
      "path": "Consent.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ext-EncounterReference|1.0.0-rc1" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "encounter"
    }, {
      "id": "Consent.extension:encounter.value[x]",
      "path": "Consent.extension.value[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Encounter|1.0.0-rc1" ]
      } ]
    }, {
      "id": "Consent.modifierExtension:specificationOther",
      "path": "Consent.modifierExtension",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "specificationOther"
    }, {
      "id": "Consent.modifierExtension:specificationOther.value[x]",
      "path": "Consent.modifierExtension.value[x]",
      "comment": "In addition to the default zib/nl-core guidance, this extension is used to communicate further details about agreements concerning ICD.",
      "mapping": [ {
        "map": "605",
        "comment": "SpecificatieAnders",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "638",
        "comment": "Afspraak uitzetten ICD (BehandelBesluit)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.patient",
      "path": "Consent.patient",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Patient|1.0.0-rc1" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    }, {
      "id": "Consent.dateTime",
      "path": "Consent.dateTime",
      "mapping": [ {
        "map": "606",
        "comment": "MeestRecenteBespreekdatum",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "641",
        "comment": "MeestRecenteBespreekdatum",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    }, {
      "id": "Consent.source[x]:sourceReference",
      "path": "Consent.source[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-AdvanceDirective|1.0.0-rc1" ]
      } ],
      "mapping": [ {
        "map": "609",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "644",
        "comment": "Wilsverklaring",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "sourceReference"
    }, {
      "id": "Consent.provision.extension:reasonForEnding",
      "path": "Consent.provision.extension",
      "mapping": [ {
        "map": "643",
        "comment": "RedenBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "reasonForEnding"
    }, {
      "id": "Consent.provision.extension:reasonForEnding.value[x]",
      "path": "Consent.provision.extension.value[x]",
      "mapping": [ {
        "map": "608",
        "comment": "RedenBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.provision.type",
      "path": "Consent.provision.type",
      "comment": "Additional terminology mapping guidance, in addition to the default zib/nl-core guidance: \r\n- BehandelBesluit (dataset id 603) values: \r\n    - _Wel uitvoeren_ -> _permit_\r\n    - _Niet uitvoeren_ -> _deny_\r\n    - _Anders_ or _Onbekend_ -> do not set a value. Instead, communicate this via the `modifierExtension[specificationOther].value[x]` element.\r\n- Afspraak uitzetten ICD (dataset id 638) values: \r\n    - _Wel uitvoeren_ -> _permit_ \r\n    - No value is mapped to _deny_\r\n    - _Nee, nog geen besluit genomen_ or _Niet besproken_ -> do not set a value. Instead, communicate this via the `modifierExtension[specificationOther].value[x]` element.",
      "mapping": [ {
        "map": "603",
        "comment": "BehandelBesluit",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "638",
        "comment": "Afspraak uitzetten ICD (BehandelBesluit)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    }, {
      "id": "Consent.provision.period.end",
      "path": "Consent.provision.period.end",
      "mapping": [ {
        "map": "607",
        "comment": "DatumBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "642",
        "comment": "DatumBeeindigd",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    }, {
      "id": "Consent.provision.actor:agreementParty",
      "path": "Consent.provision.actor",
      "mapping": [ {
        "map": "611",
        "comment": "AfspraakPartij",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "646",
        "comment": "AfspraakPartij",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "provisionActor"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ],
      "sliceName": "agreementParty"
    }, {
      "id": "Consent.provision.actor:agreementParty.reference",
      "path": "Consent.provision.actor.reference",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-Patient|1.0.0-rc1", "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-HealthProfessional-PractitionerRole|1.0.0-rc1", "https://api.iknl.nl/docs/pzp/r4/StructureDefinition/ACP-ContactPerson|1.0.0-rc1" ]
      } ],
      "mapping": [ {
        "map": "612",
        "comment": "Patient",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "614",
        "comment": "Vertegenwoordiger",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "616",
        "comment": "Zorgverlener",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "647",
        "comment": "Patient",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "649",
        "comment": "Vertegenwoordiger",
        "identity": "pall-izppz-zib2020v2025-03-11"
      }, {
        "map": "651",
        "comment": "Zorgverlener",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.provision.code",
      "path": "Consent.provision.code",
      "mapping": [ {
        "map": "604",
        "comment": "Behandeling",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ]
    }, {
      "id": "Consent.provision.code.text",
      "path": "Consent.provision.code.text",
      "comment": "`.provision.type` has a required binding. Therefore, only codes in the bound ValueSet are permitted. For concepts not present in the ValueSet, such as SNOMED CT code 400231000146108 (Uitzetten van cardioverter-defibrillator in laatste levensfase), use the `.text` field as per FHIR guidance.",
      "mapping": [ {
        "map": "639",
        "comment": "Behandeling van ICD (Behandeling)",
        "identity": "pall-izppz-zib2020v2025-03-11"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:populate-if-known"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorProvider|1.0.0-rc1"
        } ]
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/obligation",
        "extension": [ {
          "url": "code",
          "valueCode": "SHALL:no-error"
        }, {
          "url": "actor",
          "valueCanonical": "https://api.iknl.nl/docs/pzp/r4/ActorDefinition/ACPActorConsulter|1.0.0-rc1"
        } ]
      } ]
    } ]
  },
  "contact": [ {
    "name": "IKNL",
    "telecom": [ {
      "value": "https://iknl.nl/",
      "system": "url"
    }, {
      "value": "info@iknl.nl",
      "system": "email"
    } ]
  } ],
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/nl-core-TreatmentDirective2"
}