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