<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Bundle" />
  <url value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Bundle/v1" />
  <version value="1.0" />
  <name value="Bundle" />
  <status value="active" />
  <date value="2024-01-12T12:29:40.7446861+00:00" />
  <description value="Bundle is used at two different times:&#xD;&#xA;&#xD;&#xA;1. When the recipient changes from one region to another, the new recipient region will receive a Bundle containing the latest version of the instances registered until the recipient change related to a specific journal. This also includes &quot;deleted&quot; instances, see Section 11 regarding deletions.&#xD;&#xA;&#xD;&#xA;2. When a customer region performs a search, the response returned will often be a Bundle unless the search is a lookup. In that case, the individual instance will be sent back. See Section 1.3 where the concept of lookup and search is described and Section 13 where searches are further elaborated." />
  <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.id">
      <path value="Bundle.id" />
      <max value="0" />
    </element>
    <element id="Bundle.meta">
      <path value="Bundle.meta" />
    </element>
    <element id="Bundle.meta.id">
      <path value="Bundle.meta.id" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.versionId">
      <path value="Bundle.meta.versionId" />
      <min value="1" />
    </element>
    <element id="Bundle.meta.lastUpdated">
      <path value="Bundle.meta.lastUpdated" />
      <min value="1" />
    </element>
    <element id="Bundle.meta.source">
      <path value="Bundle.meta.source" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.profile">
      <path value="Bundle.meta.profile" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.security">
      <path value="Bundle.meta.security" />
      <max value="0" />
    </element>
    <element id="Bundle.meta.tag">
      <path value="Bundle.meta.tag" />
      <max value="0" />
    </element>
    <element id="Bundle.implicitRules">
      <path value="Bundle.implicitRules" />
      <max value="0" />
    </element>
    <element id="Bundle.language">
      <path value="Bundle.language" />
      <max value="0" />
    </element>
    <element id="Bundle.identifier">
      <path value="Bundle.identifier" />
      <max value="0" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <definition value="Bundle type.&#xD;&#xA;&#xD;&#xA;Uses ‘searchset’ and ‘transaction.&#xD;&#xA;&#xD;&#xA;transaction: The bundle is a transaction – intended to be processed by a server as an atomic commit.&#xD;&#xA;&#xD;&#xA;It is used for bundles sent after a change of recipient. It can be used to update a FHIR compliant server.&#xD;&#xA;&#xD;&#xA;searchset: The bundle is a list of resources returned as a result of a search/query interaction." />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <max value="0" />
    </element>
    <element id="Bundle.total">
      <path value="Bundle.total" />
      <definition value="The number of entries in the bundle with Bundle.entry.search.mode = ‘match’.&#xD;&#xA;&#xD;&#xA;E.g. when searching for all resources related to a specific Encounter, Bundle.total will be 1, since only the Encounter in the returned Bundle will have Bundle.entry.search.mode = ‘match’." />
    </element>
    <element id="Bundle.link">
      <path value="Bundle.link" />
      <definition value="For search results the link holds the GET request used for a search." />
    </element>
    <element id="Bundle.link.id">
      <path value="Bundle.link.id" />
      <max value="0" />
    </element>
    <element id="Bundle.link.relation">
      <path value="Bundle.link.relation" />
      <definition value="Type of relation between Bundle and link." />
      <fixedString value="self." />
    </element>
    <element id="Bundle.entry.id">
      <path value="Bundle.entry.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.link">
      <path value="Bundle.entry.link" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.fullUrl">
      <path value="Bundle.entry.fullUrl" />
      <definition value="URI for a resource." />
    </element>
    <element id="Bundle.entry.resource">
      <path value="Bundle.entry.resource" />
      <definition value="A resource in the bundle." />
    </element>
    <element id="Bundle.entry.resource.id">
      <path value="Bundle.entry.resource.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.resource.meta">
      <path value="Bundle.entry.resource.meta" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.resource.implicitRules">
      <path value="Bundle.entry.resource.implicitRules" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.resource.language">
      <path value="Bundle.entry.resource.language" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.search.id">
      <path value="Bundle.entry.search.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.search.mode">
      <path value="Bundle.entry.search.mode" />
      <definition value="A code specifying why this resource is in the Bundle.&#xD;&#xA;&#xD;&#xA;match: the resource matched the search specification.&#xD;&#xA;&#xD;&#xA;include: the resource is in the Bundle because it is referred to from another resource in the search set." />
    </element>
    <element id="Bundle.entry.search.score">
      <path value="Bundle.entry.search.score" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.request">
      <path value="Bundle.entry.request" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response">
      <path value="Bundle.entry.response" />
      <definition value="Results of execution. Only used for type = searchset." />
    </element>
    <element id="Bundle.entry.response.id">
      <path value="Bundle.entry.response.id" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response.status">
      <path value="Bundle.entry.response.status" />
      <definition value="Status response code. It represents the latest status of the resource." />
    </element>
    <element id="Bundle.entry.response.location">
      <path value="Bundle.entry.response.location" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response.etag">
      <path value="Bundle.entry.response.etag" />
      <definition value="The Etag for the resource.&#xD;&#xA;&#xD;&#xA;Can be used to determine whether a resource has changed or not." />
    </element>
    <element id="Bundle.entry.response.lastModified">
      <path value="Bundle.entry.response.lastModified" />
      <max value="0" />
    </element>
    <element id="Bundle.entry.response.outcome">
      <path value="Bundle.entry.response.outcome" />
      <max value="0" />
    </element>
    <element id="Bundle.signature">
      <path value="Bundle.signature" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>