{
  "resourceType": "StructureDefinition",
  "id": "schedulednotification-profile",
  "url": "https://fhir.xt.dev/fhir/StructureDefinition/ScheduledNotification",
  "version": "1.0.0",
  "name": "ScheduledNotification",
  "status": "active",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A scheduled notification for patients or professionals to act upon at a specific time. For example, fill out a questionnaire, read specific information, or perform an action related to an appointment or care process.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CommunicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CommunicationRequest.basedOn",
        "path": "CommunicationRequest.basedOn",
        "short": "The task this communication request is based on",
        "definition": "References the task that this communication request is based on",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Task"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.basedOn.reference",
        "path": "CommunicationRequest.basedOn.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.category",
        "path": "CommunicationRequest.category",
        "short": "Message category like \"taskAssigned\" or \"dueDateExceeded\"",
        "definition": "The kind of message like \"taskAssigned\" or \"dueDateExceeded\" this communication request is created for",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.xt.dev/ValueSet/CommunicationCategory"
        }
      },
      {
        "id": "CommunicationRequest.category.coding",
        "path": "CommunicationRequest.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding.system",
        "path": "CommunicationRequest.category.coding.system",
        "short": "The context or reason for communication",
        "min": 1
      },
      {
        "id": "CommunicationRequest.category.coding.version",
        "path": "CommunicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding.code",
        "path": "CommunicationRequest.category.coding.code",
        "min": 1
      },
      {
        "id": "CommunicationRequest.category.coding.userSelected",
        "path": "CommunicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.text",
        "path": "CommunicationRequest.category.text",
        "min": 1
      },
      {
        "id": "CommunicationRequest.doNotPerform",
        "path": "CommunicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium",
        "path": "CommunicationRequest.medium",
        "definition": "A channel that is used for this communication (e.g. email, In-App notification).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.xt.dev/ValueSet/CommunicationMedium"
        }
      },
      {
        "id": "CommunicationRequest.medium.coding",
        "path": "CommunicationRequest.medium.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.medium.coding.system",
        "path": "CommunicationRequest.medium.coding.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.medium.coding.version",
        "path": "CommunicationRequest.medium.coding.version",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium.coding.code",
        "path": "CommunicationRequest.medium.coding.code",
        "min": 1
      },
      {
        "id": "CommunicationRequest.medium.coding.userSelected",
        "path": "CommunicationRequest.medium.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.subject",
        "path": "CommunicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.subject.reference",
        "path": "CommunicationRequest.subject.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.payload",
        "path": "CommunicationRequest.payload",
        "short": "Template name or notification content",
        "definition": "Contains the Mail-Sender template name or In-App notification content",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.payload.content[x]",
        "path": "CommunicationRequest.payload.content[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CommunicationRequest.occurrence[x]",
        "path": "CommunicationRequest.occurrence[x]",
        "definition": "The time when this communication shall take place, shall at least have minute granularity.",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CommunicationRequest.requester",
        "path": "CommunicationRequest.requester",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.requester.reference",
        "path": "CommunicationRequest.requester.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient",
        "path": "CommunicationRequest.recipient",
        "definition": "The entity (e.g. patient, practitioner, or relatedPerson) which is the intended target of the communication.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.recipient.reference",
        "path": "CommunicationRequest.recipient.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.sender",
        "path": "CommunicationRequest.sender",
        "max": "0"
      }
    ]
  }
}