{
  "resourceType": "StructureDefinition",
  "id": "Profile-nNGM-Consent-Einwilligungserklaerung-Local",
  "url": "http://uk-koeln.de/fhir/StructureDefinition/nNGM/Consent-Local",
  "version": "1.0.0",
  "name": "Profile_nNGM_Consent_Einwilligungserklaerung",
  "title": "Profile - nNGM - Consent - Einwilligungserklärung",
  "status": "active",
  "description": "Dieses Profil beschreibt die Einwilligungserklärung innerhalb des nNGM-Projektes.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "fixedCode": "active",
        "mustSupport": true
      },
      {
        "id": "Consent.scope",
        "path": "Consent.scope",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding",
        "path": "Consent.scope.coding",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding.system",
        "path": "Consent.scope.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/consentscope",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding.code",
        "path": "Consent.scope.coding.code",
        "fixedCode": "patient-privacy",
        "mustSupport": true
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "fixedUri": "http://loinc.org",
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "fixedCode": "59284-0",
        "mustSupport": true
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "label": "Patient",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.patient.reference",
        "path": "Consent.patient.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "label": "Datum der Unterschrift",
        "short": "Datum der Unterschrift",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision",
        "path": "Consent.provision",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "label": "Unterschrieben",
        "short": "Ob die Einwilligung durch die Unterschrift des Patienten gegeben wurde",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.extension:validityDuration",
        "path": "Consent.extension",
        "sliceName": "validityDuration",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://uk-koeln.de/fhir/StructureDefinition/Extension/nNGM/ValidityDuration"
            ]
          }
        ]
      },
      {
        "id": "Consent.extension:revokeDate",
        "path": "Consent.extension",
        "sliceName": "revokeDate",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://uk-koeln.de/fhir/StructureDefinition/Extension/nNGM/RevokeDate"
            ]
          }
        ]
      },
      {
        "id": "Consent.extension:localConsentName",
        "path": "Consent.extension",
        "sliceName": "localConsentName",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://uk-koeln.de/fhir/StructureDefinition/Extension/nNGM/LocalConsentName"
            ]
          }
        ]
      }
    ]
  }
}