<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="3bb3dbac-7bd0-42a6-8a02-829a99ed2cd2" />
  <meta>
    <lastUpdated value="2020-01-10T15:39:29.518+00:00" />
  </meta>
  <url value="http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpass" />
  <name value="DigenNotfallpass" />
  <status value="draft" />
  <date value="2020-01-10T15:39:28.6994113+00:00" />
  <fhirVersion value="3.0.1" />
  <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.subject">
      <path value="Composition.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Composition.author">
      <path value="Composition.author" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Composition.section:medicationSection">
      <path value="Composition.section" />
      <sliceName value="medicationSection" />
    </element>
    <element id="Composition.section:medicationSection.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenDocumentReferenceNFP" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </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. In this section the document will be referenced as documentReference. If a section has no entry the element text must be present." />
    </element>
    <element id="Composition.section:diseaseSection">
      <path value="Composition.section" />
      <sliceName value="diseaseSection" />
    </element>
    <element id="Composition.section:diseaseSection.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAbrechnung" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAlphaID" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionText" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Composition.section:emergencyDocumentSection">
      <path value="Composition.section" />
      <sliceName value="emergencyDocumentSection" />
    </element>
    <element id="Composition.section:emergencyDocumentSection.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenDocumentReferenceNFP" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </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 documentswith the emergency pass, the emptyReason is being removed and the documents will be put in an emergency folder. In this section the document will be referenced as documentReference. If a section has no entry the element text must be present." />
    </element>
    <element id="Composition.section:allergySection">
      <path value="Composition.section" />
      <sliceName value="allergySection" />
    </element>
    <element id="Composition.section:allergySection.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAbrechnung" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAlphaID" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://digen.nublar.de/fhir/StructureDefinition/DigenConditionText" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Composition.section:primaryCareProviderSection">
      <path value="Composition.section" />
      <sliceName value="primaryCareProviderSection" />
    </element>
    <element id="Composition.section:primaryCareProviderSection.entry">
      <path value="Composition.section.entry" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <aggregation value="bundled" />
        <aggregation value="referenced" />
      </type>
    </element>
  </differential>
</StructureDefinition>