{
  "resourceType": "StructureDefinition",
  "url": "https://cortex-care.io/fhir/Cortex_CommunicationBundle",
  "version": "1.0",
  "id": "cortex-communicationBundle",
  "name": "Cortex_CommunicationBundle",
  "title": "Cortex_CommunicationBundle",
  "status": "draft",
  "date": "2024-01-24",
  "publisher": "MN Sante",
  "description": "Message-type bundle sent after discussion creation or modification. Code of the message specified in the MessageHeader.",
  "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": "message"
      },
      {
        "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:MessageHeader",
        "path": "Bundle.entry",
        "sliceName": "MessageHeader",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:MessageHeader.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://cortex-care.io/fhir/StructureDefinition/Cortex_MessageHeader"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:MessageHeader.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:MessageHeader.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Discussion",
        "path": "Bundle.entry",
        "sliceName": "Discussion",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Discussion.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Discussion.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Discussion.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://cortex-care.io/fhir/StructureDefinition/Cortex_Communication_discussion"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Discussion.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Discussion.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Discussion.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Message",
        "path": "Bundle.entry",
        "sliceName": "Message",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:Message.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Message.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Message.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://cortex-care.io/fhir/StructureDefinition/Cortex_Communication_message"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Message.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Message.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Message.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.signature",
        "path": "Bundle.signature",
        "max": "0"
      }
    ]
  }
}