{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Bundle-ForMHD",
  "name": "Bundle-ForMHD",
  "title": "API Framework Bundle",
  "status": "active",
  "experimental": false,
  "description": "API Framework Profile for Bundles used in MHD transactions",
  "fhirVersion": "3.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",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "type": [
          {
            "code": "Meta",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Meta-ForCommonConformance"
          }
        ]
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "transaction",
        "constraint": [
          {
            "key": "supported-types",
            "severity": "error",
            "human": "Subset of bundle types supported by API Framework",
            "expression": "transaction|transaction-response|searchset"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:DocumentManifest",
        "path": "Bundle.entry",
        "sliceName": "DocumentManifest",
        "short": "DocumentManifest",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:DocumentManifest.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentManifest.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/DocumentManifest"
          }
        ]
      },
      {
        "id": "Bundle.entry:DocumentManifest.request",
        "path": "Bundle.entry.request",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentManifest.request.method",
        "path": "Bundle.entry.request.method",
        "fixedCode": "POST"
      },
      {
        "id": "Bundle.entry:DocumentReference",
        "path": "Bundle.entry",
        "sliceName": "DocumentReference",
        "short": "DocumentReference",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentReference.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentReference.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/DocumentReference"
          }
        ]
      },
      {
        "id": "Bundle.entry:DocumentReference.request",
        "path": "Bundle.entry.request",
        "min": 1
      },
      {
        "id": "Bundle.entry:DocumentReference.request.method",
        "path": "Bundle.entry.request.method",
        "fixedCode": "POST"
      },
      {
        "id": "Bundle.entry:Binary",
        "path": "Bundle.entry",
        "sliceName": "Binary",
        "short": "Binary",
        "definition": "Entry for the actual document in a Binary resource."
      },
      {
        "id": "Bundle.entry:Binary.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry:Binary.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": "http://hl7.org/fhir/StructureDefinition/Binary"
          }
        ]
      },
      {
        "id": "Bundle.entry:Binary.request",
        "path": "Bundle.entry.request",
        "min": 1
      },
      {
        "id": "Bundle.entry:Binary.request.method",
        "path": "Bundle.entry.request.method",
        "fixedCode": "POST"
      }
    ]
  }
}