<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NotificationBundleSequence" />
  <url value="https://demis.rki.de/fhir/igs/StructureDefinition/NotificationBundleSequence" />
  <version value="2.0.2" />
  <name value="NotificationBundleSequence" />
  <title value="Sequenzmeldevorgang" />
  <status value="active" />
  <date value="2025-11-04" />
  <publisher value="Robert Koch-Institut" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="demis-support@rki.de" />
    </telecom>
  </contact>
  <description value="Der Sequenzmeldevorgang ist vom Meldevorgang abgeleitet und bildet den Container für eine Sequenzmeldung (Sequenzübermittlung) und die darin referenzierten Ressourcen." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <version value="ALPHA-2" />
      <code value="DE" />
    </coding>
  </jurisdiction>
  <copyright value="Copyright (C) 2021-2025 Robert Koch-Institut" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="https://demis.rki.de/fhir/StructureDefinition/NotificationBundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <constraint>
        <key value="exactlyOneSequence" />
        <severity value="error" />
        <human value="Im NotificationBundle muss genau eine Sequenz enthalten sein." />
        <expression value="entry.where(resource.meta.profile='https://demis.rki.de/fhir/igs/StructureDefinition/Sequence').count()=1" />
      </constraint>
    </element>
    <element id="Bundle.meta">
      <path value="Bundle.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <min value="1" />
      <max value="1" />
      <patternCanonical value="https://demis.rki.de/fhir/igs/StructureDefinition/NotificationBundleSequence" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:notification">
      <path value="Bundle.entry" />
      <sliceName value="notification" />
      <definition value="Enthaltene Meldungen. In einem Sequenzmeldevorgang muss genau eine Sequenzmeldung enthalten sein." />
    </element>
    <element id="Bundle.entry:notification.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Composition" />
        <profile value="https://demis.rki.de/fhir/igs/StructureDefinition/NotificationSequence" />
      </type>
    </element>
  </differential>
</StructureDefinition>