<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="InterneLeistungen" />
  <url value="https://tiplu.de/fhir/StructureDefinition/InterneLeistungen" />
  <version value="2.0.2" />
  <name value="InterneLeistungen" />
  <title value="ChargeItem für interne Leistungen" />
  <status value="active" />
  <date value="2026-04-02" />
  <publisher value="Tiplu GmbH" />
  <contact>
    <name value="Tiplu GmbH" />
    <telecom>
      <system value="email" />
      <value value="fhir@tiplu.de" />
    </telecom>
  </contact>
  <description value="Leistungen des Krankenhauses, die nicht über den Einheitlichen Bewertungsmaßstab (EBM) abgerechnet werden." />
  <copyright value="Tiplu GmbH" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ChargeItem" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ChargeItem" />
  <derivation value="constraint" />
  <differential>
    <element id="ChargeItem.code">
      <path value="ChargeItem.code" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItem.code.coding">
      <path value="ChargeItem.code.coding" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://fhir.krankenhaus.de/CodeSystem/kundencodes-leistungen-ambulant" />
      </binding>
    </element>
    <element id="ChargeItem.context">
      <path value="ChargeItem.context" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://tiplu.de/fhir/StructureDefinition/AmbulanterBesuch" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItem.occurrence[x]">
      <path value="ChargeItem.occurrence[x]" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItem.quantity">
      <path value="ChargeItem.quantity" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItem.account">
      <path value="ChargeItem.account" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://tiplu.de/fhir/StructureDefinition/AmbulanterSchein" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Account" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>