{
  "resourceType": "StructureDefinition",
  "id": "Profile-nNGM-Consent-Einwilligungserklaerung-V4",
  "url": "http://uk-koeln.de/fhir/StructureDefinition/nNGM/ConsentV4",
  "version": "1.0.0",
  "name": "Profile_nNGM_Consent_Einwilligungserklaerung_V4",
  "title": "Profile - nNGM - Consent - Einwilligungserklärung - V4",
  "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.policyRule",
        "path": "Consent.policyRule",
        "label": "Name der Einwilligungserklärung",
        "short": "Name der Einwilligungserklärung, die unterschrieben wird",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://uk-koeln.de/fhir/ValueSet/nNGM/nngm-consent-policy-v4"
        }
      },
      {
        "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.provision.provision",
        "path": "Consent.provision.provision",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Consent#Consent.provision"
      }
    ]
  }
}