{
  "resourceType": "StructureDefinition",
  "url": "https://cortex-care.io/fhir/StructureDefinition/EpisodeOfCareBundle_Creation",
  "version": "1.0",
  "name": "Cortex_EpisodeOfCareBundle_Creation",
  "status": "draft",
  "date": "2024-01-24",
  "publisher": "MN Sante",
  "description": "Transaction-type bundle to create an EpisodeOfCare and define a 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"
      },
      {
        "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:Encounteur",
        "path": "Bundle.entry",
        "sliceName": "Encounteur",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Encounteur.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounteur.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounteur.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://cortex-care.io/fhir/StructureDefinition/Encounter_EpisodeOfCare"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Encounteur.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Encounteur.request",
        "path": "Bundle.entry.request",
        "fixedCode": "POST"
      },
      {
        "id": "Bundle.entry:Encounteur.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "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,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://cortex-care.io/fhir/StructureDefinition/EpisodeOfCare"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.request",
        "path": "Bundle.entry.request",
        "fixedCode": "POST"
      },
      {
        "id": "Bundle.entry:EpisodeOfCare.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}