{
  "resourceType": "StructureDefinition",
  "id": "Communication",
  "url": "https://fhir.centraxx.de/StructureDefinition/Communication",
  "version": "2025.4.0",
  "name": "Communication",
  "status": "active",
  "publisher": "Kairos an IQVIA business",
  "description": "Represents a CentraXX HotlineProtocol.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.extension",
        "path": "Communication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.extension:updateWithOverwrite",
        "path": "Communication.extension",
        "sliceName": "updateWithOverwrite",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/updateWithOverwrite"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.extension:isApp",
        "path": "Communication.extension",
        "sliceName": "isApp",
        "short": "only present for app communication, i.e. if the hotline protocol has an event with a code that is equal to one of the centraxx properties 'interfaces.fhir.eventMessageFromApp' or 'interfaces.fhir.eventMessageToApp'.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/hotline/app"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.status",
        "path": "Communication.status",
        "short": "Required for import",
        "min": 1,
        "max": "1",
        "fixedString": "unknown",
        "mustSupport": true
      },
      {
        "id": "Communication.medium",
        "path": "Communication.medium",
        "min": 0,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.centraxx.de/valueSet/hotline/contactEvent"
        }
      },
      {
        "id": "Communication.subject",
        "path": "Communication.subject",
        "short": "Required for import",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.received",
        "path": "Communication.received",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Person",
              "https://fhir.centraxx.de/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "short": "only present for app communication, i.e. if the hotline protocol has an event with a code that is equal to one of the centraxx properties 'interfaces.fhir.eventMessageFromApp' or 'interfaces.fhir.eventMessageToApp'.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Person",
              "https://fhir.centraxx.de/StructureDefinition/Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.reasonCode",
        "path": "Communication.reasonCode",
        "min": 0,
        "max": "*",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.centraxx.de/valueSet/hotline/reason"
        }
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Communication.payload.content[x]",
        "path": "Communication.payload.content[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      }
    ]
  }
}