{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_Consent_Statement",
  "version": "1.0.0",
  "name": "KBV_PR_MIO_ULB_Consent_Statement",
  "title": "KBV_PR_MIO_ULB_Consent_Statement",
  "status": "active",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Dieses Profil bildet eine persönliche Erklärung ab.",
  "copyright": "Im folgenden Profil können Codes aus den Code-Systemen SNOMED CT®, LOINC, Ucum, ATC, ICD-10-GM, ICD-10-WHO, OPS, Alpha-ID/Alpha-ID-SE und ICF enthalten sein, die dem folgenden Urheberrecht unterliegen: This material includes SNOMED CT® Clinical Terms® (SNOMED CT® CT®) which is used by permission of SNOMED CT® International. All rights reserved. SNOMED CT® CT®, was originally created by The College of American Pathologists. SNOMED CT® and SNOMED CT® CT are registered trademarks of SNOMED CT® International. Implementers of these artefacts must have the appropriate SNOMED CT® CT Affiliate license. This material contains content from LOINC (http://LOINC.org). LOINC is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://LOINC.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc. This product includes all or a portion of the UCUM table, UCUM codes, and UCUM definitions or is derived from it, subject to a license from Regenstrief Institute, Inc. and The UCUM Organization. Your use of the UCUM table, UCUM codes, UCUM definitions also is subject to this license, a copy of which is available at ​http://unitsofmeasure.org. The current complete UCUM table, UCUM Specification are available for download at ​http://unitsofmeasure.org. The UCUM table and UCUM codes are copyright © 1995-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures (UCUM) Organization. All rights reserved. THE UCUM TABLE (IN ALL FORMATS), UCUM DEFINITIONS, AND SPECIFICATION ARE PROVIDED 'AS IS.' ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Dieses Material enthält Inhalte aus ATC. Die Erstellung erfolgte unter Verwendung der Datenträger der amtlichen Fassung der ATC-Klassifikation mit DDD des Bundesinstituts für Arzneimittel und Medizinprodukte (BfArM). Dieses Material enthält Inhalte aus ICD-10-GM, ICD-10-WHO, OPS Alpha-ID ans Alpha-ID-SE. Die Erstellung erfolgt unter Verwendung der maschinenlesbaren Fassung des Bundesinstituts für Arzneimittel und Medizinprodukte (BfArM). Dieses Material enthält Inhalte aus ICF. Die Erstellung erfolgt unter Verwendung der maschinenlesbaren Fassung des Deutschen Instituts für Medizinische Dokumentation und Information (DIMDI). ICF-Kodes, -Begriffe und -Texte © Weltgesundheitsorganisation, übersetzt und herausgegeben durch das Deutsche Institut für Medizinische Dokumentation und Information von der International classification of functioning, disability and health – ICF, herausgegeben durch die Weltgesundheitsorganisation.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "definition": "Dieses Profil bildet eine persönliche Erklärung ab."
      },
      {
        "id": "Consent.meta",
        "path": "Consent.meta",
        "min": 1
      },
      {
        "id": "Consent.meta.versionId",
        "path": "Consent.meta.versionId",
        "max": "0"
      },
      {
        "id": "Consent.meta.lastUpdated",
        "path": "Consent.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Consent.meta.source",
        "path": "Consent.meta.source",
        "max": "0"
      },
      {
        "id": "Consent.meta.profile",
        "path": "Consent.meta.profile",
        "min": 1,
        "max": "1",
        "patternCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_Consent_Statement|1.0.0"
      },
      {
        "id": "Consent.meta.security",
        "path": "Consent.meta.security",
        "max": "0"
      },
      {
        "id": "Consent.meta.tag",
        "path": "Consent.meta.tag",
        "max": "0"
      },
      {
        "id": "Consent.implicitRules",
        "path": "Consent.implicitRules",
        "max": "0"
      },
      {
        "id": "Consent.language",
        "path": "Consent.language",
        "max": "0"
      },
      {
        "id": "Consent.text",
        "path": "Consent.text"
      },
      {
        "id": "Consent.text.status",
        "path": "Consent.text.status",
        "patternCode": "extensions"
      },
      {
        "id": "Consent.contained",
        "path": "Consent.contained",
        "max": "0"
      },
      {
        "id": "Consent.extension",
        "path": "Consent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Consent.extension:beschreibung",
        "path": "Consent.extension",
        "sliceName": "beschreibung",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_EX_MIO_ULB_Consent_Description"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.extension:beschreibung.value[x]",
        "path": "Consent.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.extension:beschreibung.value[x]:valueString",
        "path": "Consent.extension.value[x]",
        "sliceName": "valueString",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "max": "0"
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "patternCode": "active"
      },
      {
        "id": "Consent.scope",
        "path": "Consent.scope",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/consent-scope|4.0.1"
        }
      },
      {
        "id": "Consent.scope.coding",
        "path": "Consent.scope.coding",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://terminology.hl7.org/CodeSystem/consentscope",
          "version": "4.0.1",
          "code": "adr",
          "display": "Advanced Care Directive"
        }
      },
      {
        "id": "Consent.scope.coding.system",
        "path": "Consent.scope.coding.system",
        "min": 1
      },
      {
        "id": "Consent.scope.coding.version",
        "path": "Consent.scope.coding.version",
        "min": 1
      },
      {
        "id": "Consent.scope.coding.code",
        "path": "Consent.scope.coding.code",
        "min": 1
      },
      {
        "id": "Consent.scope.coding.display",
        "path": "Consent.scope.coding.display",
        "min": 1
      },
      {
        "id": "Consent.scope.coding.userSelected",
        "path": "Consent.scope.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.scope.text",
        "path": "Consent.scope.text",
        "max": "0"
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "max": "1"
      },
      {
        "id": "Consent.category.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://loinc.org",
          "version": "2.72",
          "code": "59284-0",
          "display": "Patient Consent"
        }
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1
      },
      {
        "id": "Consent.category.coding.version",
        "path": "Consent.category.coding.version",
        "min": 1
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "min": 1
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "min": 1
      },
      {
        "id": "Consent.category.coding.userSelected",
        "path": "Consent.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.category.text",
        "path": "Consent.category.text",
        "max": "0"
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_Patient|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.patient.reference",
        "path": "Consent.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.patient.type",
        "path": "Consent.patient.type",
        "max": "0"
      },
      {
        "id": "Consent.patient.identifier",
        "path": "Consent.patient.identifier",
        "max": "0"
      },
      {
        "id": "Consent.patient.display",
        "path": "Consent.patient.display",
        "max": "0"
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "mustSupport": true
      },
      {
        "id": "Consent.performer",
        "path": "Consent.performer",
        "max": "0"
      },
      {
        "id": "Consent.organization",
        "path": "Consent.organization",
        "max": "0"
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference",
        "path": "Consent.source[x]",
        "sliceName": "sourceReference",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.reference",
        "path": "Consent.source[x].reference",
        "max": "0"
      },
      {
        "id": "Consent.source[x]:sourceReference.type",
        "path": "Consent.source[x].type",
        "max": "0"
      },
      {
        "id": "Consent.source[x]:sourceReference.identifier",
        "path": "Consent.source[x].identifier",
        "max": "0"
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension",
        "path": "Consent.source[x].display.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort",
        "path": "Consent.source[x].display.extension",
        "sliceName": "ablageort",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_EX_MIO_ULB_Consent_File_Location"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]",
        "path": "Consent.source[x].display.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress",
        "path": "Consent.source[x].display.extension.value[x]",
        "sliceName": "valueAddress",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.extension",
        "path": "Consent.source[x].display.extension.value[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.extension:Stadtteil",
        "path": "Consent.source[x].display.extension.value[x].extension",
        "sliceName": "Stadtteil",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.extension:Stadtteil.value[x]",
        "path": "Consent.source[x].display.extension.value[x].extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.extension:Stadtteil.value[x]:valueString",
        "path": "Consent.source[x].display.extension.value[x].extension.value[x]",
        "sliceName": "valueString",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line",
        "path": "Consent.source[x].display.extension.value[x].line",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension",
        "path": "Consent.source[x].display.extension.value[x].line.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Strasse",
        "path": "Consent.source[x].display.extension.value[x].line.extension",
        "sliceName": "Strasse",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Strasse.value[x]",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Strasse.value[x]:valueString",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "sliceName": "valueString",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Hausnummer",
        "path": "Consent.source[x].display.extension.value[x].line.extension",
        "sliceName": "Hausnummer",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Hausnummer.value[x]",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Hausnummer.value[x]:valueString",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "sliceName": "valueString",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Adresszusatz",
        "path": "Consent.source[x].display.extension.value[x].line.extension",
        "sliceName": "Adresszusatz",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Adresszusatz.value[x]",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.line.extension:Adresszusatz.value[x]:valueString",
        "path": "Consent.source[x].display.extension.value[x].line.extension.value[x]",
        "sliceName": "valueString",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.city",
        "path": "Consent.source[x].display.extension.value[x].city",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.postalCode",
        "path": "Consent.source[x].display.extension.value[x].postalCode",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference.display.extension:ablageort.value[x]:valueAddress.country",
        "path": "Consent.source[x].display.extension.value[x].country",
        "mustSupport": true
      },
      {
        "id": "Consent.policy",
        "path": "Consent.policy",
        "max": "0"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_MIO_ULB_Health_Care_Proxy_Type|1.0.0"
        }
      },
      {
        "id": "Consent.policyRule.coding",
        "path": "Consent.policyRule.coding",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Consent.policyRule.coding.system",
        "path": "Consent.policyRule.coding.system",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.version",
        "path": "Consent.policyRule.coding.version",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.code",
        "path": "Consent.policyRule.coding.code",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.display",
        "path": "Consent.policyRule.coding.display",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.userSelected",
        "path": "Consent.policyRule.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.policyRule.text",
        "path": "Consent.policyRule.text",
        "mustSupport": true
      },
      {
        "id": "Consent.verification",
        "path": "Consent.verification",
        "max": "0"
      },
      {
        "id": "Consent.provision",
        "path": "Consent.provision",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.period",
        "path": "Consent.provision.period",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor",
        "path": "Consent.provision.actor",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role",
        "path": "Consent.provision.actor.role",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding",
        "path": "Consent.provision.actor.role.coding",
        "min": 1,
        "max": "1",
        "patternCoding": {
          "system": "http://snomed.info/sct",
          "version": "http://snomed.info/sct/900000000000207008/version/20220331",
          "code": "54056000",
          "display": "Trustee (person)"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding.system",
        "path": "Consent.provision.actor.role.coding.system",
        "min": 1
      },
      {
        "id": "Consent.provision.actor.role.coding.version",
        "path": "Consent.provision.actor.role.coding.version",
        "min": 1
      },
      {
        "id": "Consent.provision.actor.role.coding.code",
        "path": "Consent.provision.actor.role.coding.code",
        "min": 1
      },
      {
        "id": "Consent.provision.actor.role.coding.display",
        "path": "Consent.provision.actor.role.coding.display",
        "min": 1
      },
      {
        "id": "Consent.provision.actor.role.coding.userSelected",
        "path": "Consent.provision.actor.role.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor.role.text",
        "path": "Consent.provision.actor.role.text",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor.reference",
        "path": "Consent.provision.actor.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_MIO_ULB_RelatedPerson_Contact_Person|1.0.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.reference.reference",
        "path": "Consent.provision.actor.reference.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.reference.type",
        "path": "Consent.provision.actor.reference.type",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor.reference.identifier",
        "path": "Consent.provision.actor.reference.identifier",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor.reference.display",
        "path": "Consent.provision.actor.reference.display",
        "max": "0"
      },
      {
        "id": "Consent.provision.action",
        "path": "Consent.provision.action",
        "max": "0"
      },
      {
        "id": "Consent.provision.securityLabel",
        "path": "Consent.provision.securityLabel",
        "max": "0"
      },
      {
        "id": "Consent.provision.purpose",
        "path": "Consent.provision.purpose",
        "max": "0"
      },
      {
        "id": "Consent.provision.class",
        "path": "Consent.provision.class",
        "max": "0"
      },
      {
        "id": "Consent.provision.code",
        "path": "Consent.provision.code",
        "max": "0"
      },
      {
        "id": "Consent.provision.dataPeriod",
        "path": "Consent.provision.dataPeriod",
        "max": "0"
      },
      {
        "id": "Consent.provision.data",
        "path": "Consent.provision.data",
        "max": "0"
      },
      {
        "id": "Consent.provision.provision",
        "path": "Consent.provision.provision",
        "max": "0"
      }
    ]
  }
}