<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="StfTodesursache" />
  <url value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfTodesursache" />
  <version value="1.0.2" />
  <name value="StfTodesursache" />
  <title value="STF Todesursache" />
  <status value="active" />
  <experimental value="false" />
  <date value="2026-03-30" />
  <publisher value="ELFA Maßnahme Interoperabilität" />
  <description value="Todesursache (kompatibel zu [MII PR Onkologie Tod](https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-tod) )" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfBasisObservation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding:SCT">
      <path value="Observation.code.coding" />
      <sliceName value="SCT" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="184305005" />
      </patternCoding>
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.effective[x]:effectiveDateTime">
      <path value="Observation.effective[x]" />
      <sliceName value="effectiveDateTime" />
      <comment value="Beginn der Krankheit" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <comment value="Referenz auf den oder die ausstellende Arztin" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.value[x].coding.system">
      <path value="Observation.value[x].coding.system" />
      <min value="1" />
      <patternUri value="http://hl7.org/fhir/sid/icd-10" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x].coding.version">
      <path value="Observation.value[x].coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x].coding.code">
      <path value="Observation.value[x].coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x].coding.display">
      <path value="Observation.value[x].coding.display" />
      <comment value="Im Display sind nur die offiziell in ICD-10 gelisteten Bezeichnungen zu verwenden. Freitexte sind im Text-Element zu hinterlegen." />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x].text">
      <path value="Observation.value[x].text" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <comment value="Todesart ungeklärt&#xA;Wenn Todesart = ungeklärt ODER&#xA;= schwebende Ermittlung&#xA;dann j&#xA;sonst n" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <comment value="Nähere Angaben zur Todesursache und zu Begleiterkrankung (Epikrise)" />
    </element>
    <element id="Observation.hasMember">
      <path value="Observation.hasMember" />
      <comment value="Verknüpfung von nachgelagerten Todesursachen. Alle weiteren Todesursachen, die zur Haupttodesursache geführt haben, werden über hasMember referenziert. Die weiteren Todesursachen selber dürfen keine hasMember Referenzen enthalten." />
    </element>
    <element id="Observation.hasMember.reference">
      <path value="Observation.hasMember.reference" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component.code">
      <path value="Observation.component.code" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://gematik.de/fhir/oegd/stf/ValueSet/StfObservationCodes" />
      </binding>
    </element>
    <element id="Observation.component.value[x]">
      <path value="Observation.component.value[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:Todesursachensequenz">
      <path value="Observation.component" />
      <sliceName value="Todesursachensequenz" />
      <comment value="Hier ist abgebildet, an welcher Stelle der Sequenz diese Todesursache kommt. (Ia, Ib, Ic, II)" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:Todesursachensequenz.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="82791-5" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:Todesursachensequenz.value[x]">
      <path value="Observation.component.value[x]" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.component:Todesursachensequenz.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.component:Todesursachensequenz.value[x]:valueCodeableConcept.coding">
      <path value="Observation.component.value[x].coding" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://gematik.de/fhir/oegd/stf/ValueSet/StfTodesursachensequenzVS" />
      </binding>
    </element>
    <element id="Observation.component:NichtNatuerlicherTod">
      <path value="Observation.component" />
      <sliceName value="NichtNatuerlicherTod" />
      <comment value="Anhaltspunkte für einen nicht-natürlichen Tod&#xA;&#xA;Wenn Todesart = natürlich, &#xA;dann 'ja' (Y)&#xA;&#xA;Wenn Todesart =  nicht natürlich ODER &#xA;= Tötung ODER &#xA;= Selbsttötung ODER &#xA;= Unfall ODER&#xA;= Komplikationen medizinischer Behandlungen ODER&#xA;= Ereignis, dessen nähere Umstände unbestimmt dann 'nein' (N) &#xA;&#xA;Wenn Todesart = leer, &#xA;dann unbekannt (unknown);" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:NichtNatuerlicherTod.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://gematik.de/fhir/oegd/stf/CodeSystem/StfObservationCodesErweiterungCS" />
          <code value="nichtNatuerlicherTod" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:NichtNatuerlicherTod.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.component:NichtNatuerlicherTod.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.component:NichtNatuerlicherTod.value[x]:valueCodeableConcept.coding">
      <path value="Observation.component.value[x].coding" />
      <binding>
        <strength value="required" />
        <valueSet value="http://gematik.de/fhir/oegd/stf/ValueSet/StfJaNeinUnbekanntVS" />
      </binding>
    </element>
    <element id="Observation.component:NichtNatuerlicherTod.value[x]:valueCodeableConcept.text">
      <path value="Observation.component.value[x].text" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben">
      <path value="Observation.component" />
      <sliceName value="WeitereAngaben" />
      <comment value="Weitere Angaben zur Klassifikation der Todesursache, z.B. bei Unfall, Vergiftung,  Gewalteinwirkung, Selbsttötung sowie bei Komplikationen medizinischer Behandlung Äußere Ursache der Schädigung (Angaben über den Hergang); bei Vergiftungen zusätzlich Angabe des Mittels" />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://gematik.de/fhir/oegd/stf/CodeSystem/StfObservationCodesErweiterungCS" />
          <code value="todesursacheKlassifikation" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.coding">
      <path value="Observation.component.value[x].coding" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.coding.system">
      <path value="Observation.component.value[x].coding.system" />
      <min value="1" />
      <patternUri value="http://hl7.org/fhir/sid/icd-10" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.coding.version">
      <path value="Observation.component.value[x].coding.version" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.coding.code">
      <path value="Observation.component.value[x].coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.coding.display">
      <path value="Observation.component.value[x].coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueCodeableConcept.text">
      <path value="Observation.component.value[x].text" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:WeitereAngaben.value[x]:valueString">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueString" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:ZeitdauerBeginnBisTod">
      <path value="Observation.component" />
      <sliceName value="ZeitdauerBeginnBisTod" />
      <comment value="Angabe der Zeitdauer von Beginn der Krankheit bis zum Tod in beliebiger Angabe" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.component:ZeitdauerBeginnBisTod.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://gematik.de/fhir/oegd/stf/CodeSystem/StfObservationCodesErweiterungCS" />
          <code value="zeitdauerBeginnBisTod" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:ZeitdauerBeginnBisTod.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Observation.component:ZeitdauerBeginnBisTod.value[x]:valueString">
      <path value="Observation.component.value[x]" />
      <sliceName value="valueString" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>