{
  "resourceType": "StructureDefinition",
  "id": "Bundle",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Bundle/v1",
  "version": "1.0",
  "name": "Bundle",
  "status": "active",
  "date": "2024-01-12T12:29:40.7446861+00:00",
  "description": "Bundle is used at two different times:\r\n\r\n1. 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 \"deleted\" instances, see Section 11 regarding deletions.\r\n\r\n2. 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": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "max": "0"
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta"
      },
      {
        "id": "Bundle.meta.id",
        "path": "Bundle.meta.id",
        "max": "0"
      },
      {
        "id": "Bundle.meta.versionId",
        "path": "Bundle.meta.versionId",
        "min": 1
      },
      {
        "id": "Bundle.meta.lastUpdated",
        "path": "Bundle.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Bundle.meta.source",
        "path": "Bundle.meta.source",
        "max": "0"
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "max": "0"
      },
      {
        "id": "Bundle.meta.security",
        "path": "Bundle.meta.security",
        "max": "0"
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "max": "0"
      },
      {
        "id": "Bundle.implicitRules",
        "path": "Bundle.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.language",
        "path": "Bundle.language",
        "max": "0"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "max": "0"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "definition": "Bundle type.\r\n\r\nUses ‘searchset’ and ‘transaction.\r\n\r\ntransaction: The bundle is a transaction – intended to be processed by a server as an atomic commit.\r\n\r\nIt is used for bundles sent after a change of recipient. It can be used to update a FHIR compliant server.\r\n\r\nsearchset: The bundle is a list of resources returned as a result of a search/query interaction."
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "max": "0"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "definition": "The number of entries in the bundle with Bundle.entry.search.mode = ‘match’.\r\n\r\nE.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’."
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "definition": "For search results the link holds the GET request used for a search."
      },
      {
        "id": "Bundle.link.id",
        "path": "Bundle.link.id",
        "max": "0"
      },
      {
        "id": "Bundle.link.relation",
        "path": "Bundle.link.relation",
        "definition": "Type of relation between Bundle and link.",
        "fixedString": "self."
      },
      {
        "id": "Bundle.entry.id",
        "path": "Bundle.entry.id",
        "max": "0"
      },
      {
        "id": "Bundle.entry.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "definition": "URI for a resource."
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "definition": "A resource in the bundle."
      },
      {
        "id": "Bundle.entry.resource.id",
        "path": "Bundle.entry.resource.id",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource.meta",
        "path": "Bundle.entry.resource.meta",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource.implicitRules",
        "path": "Bundle.entry.resource.implicitRules",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource.language",
        "path": "Bundle.entry.resource.language",
        "max": "0"
      },
      {
        "id": "Bundle.entry.search.id",
        "path": "Bundle.entry.search.id",
        "max": "0"
      },
      {
        "id": "Bundle.entry.search.mode",
        "path": "Bundle.entry.search.mode",
        "definition": "A code specifying why this resource is in the Bundle.\r\n\r\nmatch: the resource matched the search specification.\r\n\r\ninclude: the resource is in the Bundle because it is referred to from another resource in the search set."
      },
      {
        "id": "Bundle.entry.search.score",
        "path": "Bundle.entry.search.score",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "definition": "Results of execution. Only used for type = searchset."
      },
      {
        "id": "Bundle.entry.response.id",
        "path": "Bundle.entry.response.id",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response.status",
        "path": "Bundle.entry.response.status",
        "definition": "Status response code. It represents the latest status of the resource."
      },
      {
        "id": "Bundle.entry.response.location",
        "path": "Bundle.entry.response.location",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response.etag",
        "path": "Bundle.entry.response.etag",
        "definition": "The Etag for the resource.\r\n\r\nCan be used to determine whether a resource has changed or not."
      },
      {
        "id": "Bundle.entry.response.lastModified",
        "path": "Bundle.entry.response.lastModified",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response.outcome",
        "path": "Bundle.entry.response.outcome",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}