<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ReportBedOccupancy" />
  <url value="https://demis.rki.de/fhir/StructureDefinition/ReportBedOccupancy" />
  <version value="1.0.0" />
  <name value="ReportBedOccupancy" />
  <title value="Bericht zur Krankenhausbettenbelegung" />
  <status value="active" />
  <date value="2022-06-30" />
  <description value="Bericht zur Krankenhausbettenbelegung" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="https://demis.rki.de/fhir/StructureDefinition/Report" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition.category.coding">
      <path value="Composition.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.category.coding.system">
      <path value="Composition.category.coding.system" />
      <min value="1" />
      <fixedUri value="https://demis.rki.de/fhir/CodeSystem/reportCategory" />
    </element>
    <element id="Composition.category.coding.code">
      <path value="Composition.category.coding.code" />
      <min value="1" />
      <fixedCode value="bedOccupancyReport" />
    </element>
    <element id="Composition.category.coding.display">
      <path value="Composition.category.coding.display" />
      <min value="1" />
      <fixedString value="Bettenbelegungsstatistik" />
    </element>
    <element id="Composition.subject">
      <path value="Composition.subject" />
      <short value="Logischer Verweis auf einen spezifischen Krankenhausstandort" />
      <definition value="Über die Standort-Id wird der Krankenhausstandort referenziert, auf den sich dieser Bericht bezieht." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.subject.reference">
      <path value="Composition.subject.reference" />
      <max value="0" />
    </element>
    <element id="Composition.subject.type">
      <path value="Composition.subject.type" />
      <max value="0" />
    </element>
    <element id="Composition.subject.identifier">
      <path value="Composition.subject.identifier" />
      <min value="1" />
    </element>
    <element id="Composition.subject.identifier.system">
      <path value="Composition.subject.identifier.system" />
      <min value="1" />
      <fixedUri value="https://demis.rki.de/fhir/NamingSystem/InekStandortId" />
    </element>
    <element id="Composition.subject.identifier.value">
      <path value="Composition.subject.identifier.value" />
      <short value="Standort-Id gemäß Krankenhausstandortverzeichnis" />
      <min value="1" />
    </element>
    <element id="Composition.subject.display">
      <path value="Composition.subject.display" />
      <max value="0" />
    </element>
    <element id="Composition.encounter">
      <path value="Composition.encounter" />
      <max value="0" />
    </element>
    <element id="Composition.relatesTo">
      <path value="Composition.relatesTo" />
      <max value="0" />
    </element>
    <element id="Composition.section">
      <path value="Composition.section" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding.code" />
        </discriminator>
        <ordered value="false" />
        <rules value="closed" />
      </slicing>
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy">
      <path value="Composition.section" />
      <sliceName value="statisticInformationBedOccupancy" />
      <short value="Enthält einen Verweis auf eine spezifische QuestionnaireResponse (für die Krankenhausbettenbelegungsstatistik)" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.code">
      <path value="Composition.section.code" />
      <min value="1" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.code.coding">
      <path value="Composition.section.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.code.coding.system">
      <path value="Composition.section.code.coding.system" />
      <min value="1" />
      <fixedUri value="https://demis.rki.de/fhir/CodeSystem/reportSection" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.code.coding.code">
      <path value="Composition.section.code.coding.code" />
      <min value="1" />
      <fixedCode value="statisticInformationBedOccupancySection" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.code.coding.display">
      <path value="Composition.section.code.coding.display" />
      <min value="1" />
      <fixedString value="Abschnitt 'Statistische Informationen zur Krankenhausbettenbelegung'" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.author">
      <path value="Composition.section.author" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.focus">
      <path value="Composition.section.focus" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.text">
      <path value="Composition.section.text" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.mode">
      <path value="Composition.section.mode" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.orderedBy">
      <path value="Composition.section.orderedBy" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.entry">
      <path value="Composition.section.entry" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://demis.rki.de/fhir/StructureDefinition/StatisticInformationBedOccupancy" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.entry.reference">
      <path value="Composition.section.entry.reference" />
      <min value="1" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.emptyReason">
      <path value="Composition.section.emptyReason" />
      <max value="0" />
    </element>
    <element id="Composition.section:statisticInformationBedOccupancy.section">
      <path value="Composition.section.section" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>