<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ISiKAbrechnungsfall" />
  <url value="https://gematik.de/fhir/isik/v3/Basismodul/StructureDefinition/ISiKAbrechnungsfall" />
  <version value="3.1.1" />
  <name value="ISiKAbrechnungsfall" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-12-01" />
  <publisher value="gematik GmbH" />
  <description value="Dieses Profil beschreibt die Gruppierung von medizinischen Leistungen in ISiK-Szenarien" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Account" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Account" />
  <derivation value="constraint" />
  <differential>
    <element id="Account.extension">
      <path value="Account.extension" />
      <mustSupport value="true" />
    </element>
    <element id="Account.extension:AbrechnungsDiagnoseProzedur">
      <path value="Account.extension" />
      <sliceName value="AbrechnungsDiagnoseProzedur" />
      <comment value="In dieser Extension SOLL das 'Use' Element nur einfach verwendet werden, um eine eindeutige Zuweisung (1 zu N) gegenüber dem Element 'Referenz' zu gewährleisten." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.de/StructureDefinition/ExtensionAbrechnungsDiagnoseProzedur" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Account.identifier">
      <path value="Account.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Account.identifier:Abrechnungsnummer">
      <path value="Account.identifier" />
      <sliceName value="Abrechnungsnummer" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://gematik.de/fhir/isik/v3/Basismodul/StructureDefinition/identifier-abrechnungsnummer" />
      </type>
      <patternIdentifier>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="AN" />
          </coding>
        </type>
      </patternIdentifier>
      <mustSupport value="true" />
    </element>
    <element id="Account.identifier:Abrechnungsnummer.type">
      <path value="Account.identifier.type" />
      <mustSupport value="true" />
    </element>
    <element id="Account.identifier:Abrechnungsnummer.system">
      <path value="Account.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Account.identifier:Abrechnungsnummer.value">
      <path value="Account.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="Account.status">
      <path value="Account.status" />
      <mustSupport value="true" />
    </element>
    <element id="Account.type">
      <path value="Account.type" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://gematik.de/fhir/isik/v3/Basismodul/ValueSet/ISiKAccountType" />
      </binding>
    </element>
    <element id="Account.subject">
      <path value="Account.subject" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Account.coverage">
      <path value="Account.coverage" />
      <mustSupport value="true" />
    </element>
    <element id="Account.coverage.extension">
      <path value="Account.coverage.extension" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Account.coverage.extension:Abrechnungsart">
      <path value="Account.coverage.extension" />
      <sliceName value="Abrechnungsart" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.de/StructureDefinition/ExtensionAbrechnungsart" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Account.coverage.coverage">
      <path value="Account.coverage.coverage" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>