<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="E-Rezept-Validator-Bundle" />
  <url value="https://example.org/fhir/StructureDefinition/E_Rezept_Validator_Bundle" />
  <version value="0.3.10" />
  <name value="E_Rezept_Validator_Bundle" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://example.org/fhir/StructureDefinition/E_Rezept_Validator_Bundle" />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <max value="0" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <fixedCode value="collection" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <max value="0" />
    </element>
    <element id="Bundle.total">
      <path value="Bundle.total" />
      <max value="0" />
    </element>
    <element id="Bundle.link">
      <path value="Bundle.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="resource.meta.profile" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="2" />
    </element>
    <element id="Bundle.entry.extension">
      <path value="Bundle.entry.extension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.modifierExtension">
      <path value="Bundle.entry.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Bundle.entry:MedicationRequestEntry">
      <path value="Bundle.entry" />
      <sliceName value="MedicationRequestEntry" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:MedicationRequestEntry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:MedicationRequestEntry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="MedicationRequest" />
        <profile value="https://example.org/fhir/StructureDefinition/E_Rezept_Validator_MedicationRequest" />
      </type>
    </element>
    <element id="Bundle.entry:PatientEntry">
      <path value="Bundle.entry" />
      <sliceName value="PatientEntry" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Bundle.entry:PatientEntry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:PatientEntry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Patient" />
        <profile value="https://example.org/fhir/StructureDefinition/E_Rezept_Validator_Patient" />
      </type>
    </element>
    <element id="Bundle.entry:AllergyIntoleranceEntry">
      <path value="Bundle.entry" />
      <sliceName value="AllergyIntoleranceEntry" />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Bundle.entry:AllergyIntoleranceEntry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <min value="1" />
    </element>
    <element id="Bundle.entry:AllergyIntoleranceEntry.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="AllergyIntolerance" />
        <profile value="https://example.org/fhir/StructureDefinition/E_Rezept_Validator_AllergyIntolerance" />
      </type>
    </element>
    <element id="Bundle.signature">
      <path value="Bundle.signature" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>