<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="bd201925-ea9f-4694-afa1-0c2e87eb61b8" />
  <meta>
    <lastUpdated value="2020-04-03T12:21:43.955+00:00" />
  </meta>
  <url value="http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpassInbound" />
  <name value="DigenNotfallpassInbound" />
  <status value="draft" />
  <date value="2020-04-03T12:21:42.2951215+00:00" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpassAbstract" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition.section:medicationSection">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Section" />
      </extension>
      <path value="Composition.section" />
      <sliceName value="medicationSection" />
    </element>
    <element id="Composition.section:medicationSection.text">
      <path value="Composition.section.text" />
      <min value="1" />
    </element>
    <element id="Composition.section:medicationSection.entry">
      <path value="Composition.section.entry" />
      <max value="0" />
    </element>
    <element id="Composition.section:medicationSection.emptyReason">
      <path value="Composition.section.emptyReason" />
      <comment value="When the emergency pass is being created for the first time, all the sections are emtpy (without entry) and the emptyReason = notasked. Depending on the swipes of the user the entryReason changes. In case the user is choosing to connect the active medication with the emergency pass, the emptyReason is being removed and a medication document will be put in an emergency folder. This section won't have an entries even though it's filled. If a section has no entry the element text must be present." />
    </element>
    <element id="Composition.section:emergencyDocumentSection">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Section" />
      </extension>
      <path value="Composition.section" />
      <sliceName value="emergencyDocumentSection" />
    </element>
    <element id="Composition.section:emergencyDocumentSection.text">
      <path value="Composition.section.text" />
      <min value="1" />
    </element>
    <element id="Composition.section:emergencyDocumentSection.entry">
      <path value="Composition.section.entry" />
      <max value="0" />
    </element>
    <element id="Composition.section:emergencyDocumentSection.emptyReason">
      <path value="Composition.section.emptyReason" />
      <comment value="When the emergency pass is being created for the first time, all the sections are emtpy (without entry) and the emptyReason = notasked. Depending on the swipes of the user the entryReason changes. In case the user is choosing to connect documents with the emergency pass, the emptyReason is being removed and the documents will be put in an emergency folder. This section won't have an entries even though it's filled. If a section has no entry the element text must be present." />
    </element>
    <element id="Composition.section:primaryCareProviderSection">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Section" />
      </extension>
      <path value="Composition.section" />
      <sliceName value="primaryCareProviderSection" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry">
      <path value="Composition.section.entry" />
      <max value="1" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.reference">
      <path value="Composition.section.entry.reference" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier">
      <path value="Composition.section.entry.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer">
      <path value="Composition.section.entry.identifier" />
      <sliceName value="betriebsstaettennummer" />
      <example>
        <label value="Example BSNR" />
        <valueIdentifier>
          <system value="http://fhir.de/NamingSystem/kbv/bsnr" />
          <value value="123456789" />
        </valueIdentifier>
      </example>
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.use">
      <path value="Composition.section.entry.identifier.use" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.type">
      <path value="Composition.section.entry.identifier.type" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.system">
      <path value="Composition.section.entry.identifier.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.276.0.76.4.17" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.value">
      <path value="Composition.section.entry.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.period">
      <path value="Composition.section.entry.identifier.period" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.assigner">
      <path value="Composition.section.entry.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen">
      <path value="Composition.section.entry.identifier" />
      <sliceName value="institutionskennzeichen" />
      <example>
        <label value="Example IK Nummer" />
        <valueIdentifier>
          <system value="http://fhir.de/NamingSystem/arge-ik/iknr" />
          <value value="160819895" />
        </valueIdentifier>
      </example>
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.use">
      <path value="Composition.section.entry.identifier.use" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.type">
      <path value="Composition.section.entry.identifier.type" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.system">
      <path value="Composition.section.entry.identifier.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.276.0.76.4.5" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.value">
      <path value="Composition.section.entry.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.period">
      <path value="Composition.section.entry.identifier.period" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.assigner">
      <path value="Composition.section.entry.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Composition.section.entry.display" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>