{
  "resourceType": "StructureDefinition",
  "url": "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-BundleReEntrada",
  "name": "AISS-BundleReEntrada",
  "status": "draft",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "document"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:InformeSocial",
        "path": "Bundle.entry",
        "sliceName": "InformeSocial",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:InformeSocial.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-CompositionInformeSocial"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:InformeSocial.resource.type.coding",
        "path": "Bundle.entry.resource.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:InformeSalut",
        "path": "Bundle.entry",
        "sliceName": "InformeSalut",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:InformeSalut.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-CompositionInformeSalut"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:InformeSalut.resource.type.coding",
        "path": "Bundle.entry.resource.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:MedicationStatment",
        "path": "Bundle.entry",
        "sliceName": "MedicationStatment",
        "min": 1
      },
      {
        "id": "Bundle.entry:MedicationStatment.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-MedicationStatement"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:CarePlan",
        "path": "Bundle.entry",
        "sliceName": "CarePlan",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:CarePlan.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-CarePlan"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:EpisodeOfCare",
        "path": "Bundle.entry",
        "sliceName": "EpisodeOfCare",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://aiss-fhir.salut.gencat.cat/StructureDefinition/AISS-EpisodeOfCare"
            ]
          }
        ]
      }
    ]
  }
}