{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyBundle",
  "name": "MyBundle",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "definition": "Indica lo scopo di questo Bundle, ovvero come si intende utilizzarlo",
        "comment": "Impostato valore fisso a message, per questo tipo di Bundle",
        "fixedCode": "message"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource.id"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "short": "Risorse in un boundle"
      },
      {
        "id": "Bundle.entry:MessageHeader",
        "path": "Bundle.entry",
        "sliceName": "MessageHeader"
      },
      {
        "id": "Bundle.entry:MessageHeader.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/MessageHeader"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Encounter",
        "path": "Bundle.entry",
        "sliceName": "Encounter"
      },
      {
        "id": "Bundle.entry:Encounter.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ]
      }
    ]
  }
}