{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-Notfallbenachrichtigter",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Notfallbenachrichtigter",
  "version": "1.3.0",
  "name": "KBV_PR_AW_Notfallbenachrichtigter",
  "status": "draft",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "short": "Notfallbenachrichtigter",
        "definition": "Information über eine Person, die im Notfall zu benachrichtigen ist."
      },
      {
        "id": "Consent.id",
        "path": "Consent.id",
        "min": 1
      },
      {
        "id": "Consent.meta",
        "path": "Consent.meta",
        "min": 1
      },
      {
        "id": "Consent.meta.versionId",
        "path": "Consent.meta.versionId",
        "min": 1
      },
      {
        "id": "Consent.meta.lastUpdated",
        "path": "Consent.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Consent.meta.profile",
        "path": "Consent.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Notfallbenachrichtigter|1.3.0"
      },
      {
        "id": "Consent.text",
        "path": "Consent.text",
        "min": 1
      },
      {
        "id": "Consent.text.status",
        "path": "Consent.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "max": "0"
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "definition": "Der Status dieser Ressource ist immer aktiv (active).",
        "fixedCode": "active"
      },
      {
        "id": "Consent.scope.coding",
        "path": "Consent.scope.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.scope.coding.system",
        "path": "Consent.scope.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/consentscope"
      },
      {
        "id": "Consent.scope.coding.code",
        "path": "Consent.scope.coding.code",
        "min": 1,
        "fixedCode": "patient-privacy"
      },
      {
        "id": "Consent.scope.coding.userSelected",
        "path": "Consent.scope.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.scope.text",
        "path": "Consent.scope.text",
        "max": "0",
        "fixedString": "Notfallberechtigter"
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "short": "Klassifizierung der Ressource",
        "definition": "Dieses Attribut wird zur Klassifizierung dieser Ressource verwendet.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_AW_Ressourcentyp"
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "min": 1,
        "fixedCode": "Notfallberechtigter"
      },
      {
        "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",
        "short": "Patientenbezug",
        "definition": "Siehe Reason for inclusion and constrainment",
        "requirements": "Diese Referenz wurde aus technischen Gründen erzeugt, um dieser patientenbezogenen Ressource zu genügen. Aus informationstechnischer Sicht ist Diese jedoch nicht notwendig, da der Zusammenhang bereits über das Attribut related hergestellt worden ist.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Patient|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.patient.reference",
        "path": "Consent.patient.reference",
        "min": 1
      },
      {
        "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",
        "max": "0"
      },
      {
        "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"
        },
        "short": "Anlage",
        "definition": "Anlage des Dokuments",
        "mustSupport": true
      },
      {
        "id": "Consent.source[x]:sourceReference",
        "path": "Consent.source[x]",
        "sliceName": "sourceReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Anlage|1.3.0"
            ]
          }
        ]
      },
      {
        "id": "Consent.source[x]:sourceReference.reference",
        "path": "Consent.source[x].reference",
        "min": 1
      },
      {
        "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",
        "path": "Consent.source[x].display",
        "max": "0"
      },
      {
        "id": "Consent.policy",
        "path": "Consent.policy",
        "definition": "Eine Angabe einer Police im Element policy oder im Element policyRule wird notwendig, da ein Constraint das Vorhandensein eins der beiden Elemente überprüft.",
        "comment": "Die Angabe im Element policy wird der Angabe im Element policyRule vorgezogen, da die policyRule im technischen Format erfolgen sollte.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.policy.authority",
        "path": "Consent.policy.authority",
        "max": "0"
      },
      {
        "id": "Consent.policy.uri",
        "path": "Consent.policy.uri",
        "short": "Namensraum auf die spezifische Anforderung",
        "definition": "Namensraum verweist auf die Vorgaben zur Einhaltung der Sicherheit der exportierten Daten im Anforderungskatalog.",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/NamingSystem/KBV_NS_AW_Policy"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "max": "0"
      },
      {
        "id": "Consent.verification",
        "path": "Consent.verification",
        "max": "0"
      },
      {
        "id": "Consent.provision",
        "path": "Consent.provision",
        "definition": "An exception policy of to the base this consent. An exception can be an addition or removal of access permissions.",
        "min": 1
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "max": "0"
      },
      {
        "id": "Consent.provision.period",
        "path": "Consent.provision.period",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor",
        "path": "Consent.provision.actor",
        "min": 1
      },
      {
        "id": "Consent.provision.actor.role.coding",
        "path": "Consent.provision.actor.role.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.provision.actor.role.coding.system",
        "path": "Consent.provision.actor.role.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-RoleClass"
      },
      {
        "id": "Consent.provision.actor.role.coding.code",
        "path": "Consent.provision.actor.role.coding.code",
        "min": 1,
        "fixedCode": "ECON"
      },
      {
        "id": "Consent.provision.actor.role.coding.userSelected",
        "path": "Consent.provision.actor.role.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Consent.provision.actor.reference",
        "path": "Consent.provision.actor.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Organisation",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Bezugsperson"
            ]
          }
        ]
      },
      {
        "id": "Consent.provision.actor.reference.reference",
        "path": "Consent.provision.actor.reference.reference",
        "min": 1
      },
      {
        "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",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Consent#Consent.provision"
      }
    ]
  }
}