{
  "resourceType": "StructureDefinition",
  "id": "profile-bundle-document",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-07-05T13:47:06.4753118+00:00"
  },
  "url": "http://telus.com/fhir/patientChart/StructureDefinition/profile-bundle-document",
  "name": "DocumentBundle",
  "title": "Document Bundle For Patient Chart",
  "status": "draft",
  "date": "2021-03-01T20:08:51.0359467+00:00",
  "description": "This profile is used for bundles of type document",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "mustSupport": true
      },
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "comment": "***\r\nadd extension for original version and reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.source",
        "path": "Bundle.meta.source",
        "comment": "Conformance Rule:   This must be supplied when known which is the vast majority of times\r\n\r\nIn the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://telus.com/fhir/patientChart/StructureDefinition/profile-bundle-document",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.tag:Version",
        "path": "Bundle.meta.tag",
        "sliceName": "Version",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "example",
          "valueSet": "http://telus.com/fhir/ValueSet/telus-version"
        }
      },
      {
        "id": "Bundle.meta.tag:Version.system",
        "path": "Bundle.meta.tag.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.tag:Version.code",
        "path": "Bundle.meta.tag.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "mustSupport": true
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "comment": "Usage Rule:  This profile is only used for documents, where the first entry must be a composition\r\nREVIEW - MAY COLLAPSE INTO A SINGLE BUNDLE PROFILE\r\n\r\nIt's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types.",
        "fixedCode": "document",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.link",
        "path": "Bundle.entry.link",
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Bundle#Bundle.link"
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "mustSupport": true
      }
    ]
  }
}