{
  "resourceType": "StructureDefinition",
  "id": "MawendoBundle",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Foundation.Other"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "not-classified"
    }
  ],
  "url": "https://www.mawendo.com/fhir/StructureDefinition/MawendoBundle",
  "version": "1.0",
  "name": "MawendoBundle",
  "title": "Bundle",
  "status": "active",
  "experimental": false,
  "date": "2021-05-05",
  "publisher": "Mawendo GmbH",
  "copyright": "Mawendo GmbH",
  "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.identifier",
        "path": "Bundle.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "min": 1,
        "patternUri": "https://www.mawendo.com/fhir/plan-nr",
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "collection",
        "mustSupport": true
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "entry"
            }
          ],
          "rules": "openAtEnd"
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Patient",
            "profile": [
              "https://www.mawendo.com/fhir/StructureDefinition/MawendoPatient"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:CarePlan",
        "path": "Bundle.entry",
        "sliceName": "CarePlan",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:CarePlan.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "CarePlan",
            "profile": [
              "https://www.mawendo.com/fhir/StructureDefinition/MawendoPlan"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Observation",
        "path": "Bundle.entry",
        "sliceName": "Observation",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Observation.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Observation",
            "profile": [
              "https://www.mawendo.com/fhir/StructureDefinition/PainObservation",
              "https://www.mawendo.com/fhir/StructureDefinition/TrainingObservation"
            ]
          }
        ]
      }
    ]
  }
}