{
  "resourceType": "StructureDefinition",
  "url": "https://cortex-care.io/fhir/StructureDefinition/EpisodeOfCareBundle_CreationResponse",
  "version": "1.0",
  "name": "Cortex_EpisodeOfCareBundle_CreationResponse",
  "status": "draft",
  "date": "2024-01-30",
  "publisher": "MN Sante",
  "description": "Transaction-response-type bundle received after the creation of the EpisodeOfCare and the CareTeam.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "max": "0"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "transaction-response"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "max": "0"
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:EpisodeOfCare",
        "path": "Bundle.entry",
        "sliceName": "EpisodeOfCare",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "definition": "Ressource Type and reference to the ressource.",
        "example": {
          "label": "EpisodeOfCare",
          "valueString": "{\"resourceType\":\"EpisodeOfCare\" \n \"id\":\"12456\"}"
        }
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response",
        "path": "Bundle.entry.response",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response.status",
        "path": "Bundle.entry.response.status",
        "example": {
          "label": "Status",
          "valueString": "{\"status\":\"201 Created\"}"
        }
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response.location",
        "path": "Bundle.entry.response.location",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response.etag",
        "path": "Bundle.entry.response.etag",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response.lastModified",
        "path": "Bundle.entry.response.lastModified",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response.outcome",
        "path": "Bundle.entry.response.outcome",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam",
        "path": "Bundle.entry",
        "sliceName": "CareTeam",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:CareTeam.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "definition": "Ressource Type and reference to the ressource.",
        "example": {
          "label": "CareTeam",
          "valueString": "{\"resourceType\":\"CareTeam\" \n \"id\":\"12456\"}"
        }
      },
      {
        "id": "Bundle.entry:CareTeam.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.response",
        "path": "Bundle.entry.response",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:CareTeam.response.status",
        "path": "Bundle.entry.response.status",
        "example": {
          "label": "Status",
          "valueString": "{\"status\":\"201 Created\"}"
        }
      },
      {
        "id": "Bundle.entry:CareTeam.response.location",
        "path": "Bundle.entry.response.location",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.response.etag",
        "path": "Bundle.entry.response.etag",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.response.lastModified",
        "path": "Bundle.entry.response.lastModified",
        "max": "0"
      },
      {
        "id": "Bundle.entry:CareTeam.response.outcome",
        "path": "Bundle.entry.response.outcome",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Patient.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "definition": "Ressource Type and reference to the ressource.",
        "example": {
          "label": "Patient",
          "valueString": "{\"resourceType\":\"Patient\" \n \"id\":\"1.3.6.1.4.1.5.7.1.8.0.5.1.1.3.000003ec-2b30-4294-9e2c-5a2045f6841f\"}"
        }
      },
      {
        "id": "Bundle.entry:Patient.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.response",
        "path": "Bundle.entry.response",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Patient.response.status",
        "path": "Bundle.entry.response.status",
        "example": {
          "label": "Status",
          "valueString": "{\"status\":\"200\"}"
        }
      },
      {
        "id": "Bundle.entry:Patient.response.location",
        "path": "Bundle.entry.response.location",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.response.etag",
        "path": "Bundle.entry.response.etag",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.response.lastModified",
        "path": "Bundle.entry.response.lastModified",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Patient.response.outcome",
        "path": "Bundle.entry.response.outcome",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter",
        "path": "Bundle.entry",
        "sliceName": "Encounter",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Encounter.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "definition": "Ressource Type and reference to the ressource.",
        "example": {
          "label": "Encounter",
          "valueString": "{\"resourceType\":\"Encounter\" \n \"id\":\"123456\"}"
        }
      },
      {
        "id": "Bundle.entry:Encounter.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.response",
        "path": "Bundle.entry.response",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Encounter.response.status",
        "path": "Bundle.entry.response.status",
        "example": {
          "label": "Status",
          "valueString": "{\"status\":\"200\"}"
        }
      },
      {
        "id": "Bundle.entry:Encounter.response.location",
        "path": "Bundle.entry.response.location",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.response.etag",
        "path": "Bundle.entry.response.etag",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.response.lastModified",
        "path": "Bundle.entry.response.lastModified",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounter.response.outcome",
        "path": "Bundle.entry.response.outcome",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}