{
  "resourceType": "StructureDefinition",
  "id": "planned-questionnaire-response-transmission-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/PlannedQuestionnaireResponseTransmission",
  "version": "0.0.3",
  "name": "PlannedQuestionnaireResponseTransmission",
  "status": "draft",
  "experimental": false,
  "date": "2026-03-06T11:10:32.3038123+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The CommunicationRequest handles a planned transmission of a QuestionnaireResponse to a target organization.",
  "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",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireResponse",
        "path": "CommunicationRequest.basedOn",
        "sliceName": "questionnaireResponse",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireResponse.reference",
        "path": "CommunicationRequest.basedOn.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireResponse.type",
        "path": "CommunicationRequest.basedOn.type",
        "min": 1,
        "fixedUri": "QuestionnaireResponse"
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireTask",
        "path": "CommunicationRequest.basedOn",
        "sliceName": "questionnaireTask",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Task"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireTask.reference",
        "path": "CommunicationRequest.basedOn.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.basedOn:questionnaireTask.type",
        "path": "CommunicationRequest.basedOn.type",
        "min": 1,
        "fixedUri": "Task"
      },
      {
        "id": "CommunicationRequest.category",
        "path": "CommunicationRequest.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding",
        "path": "CommunicationRequest.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding.system",
        "path": "CommunicationRequest.category.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/SystemCommunicationCategories"
      },
      {
        "id": "CommunicationRequest.category.coding.version",
        "path": "CommunicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding.code",
        "path": "CommunicationRequest.category.coding.code",
        "min": 1,
        "fixedCode": "requested-questionnaire-response"
      },
      {
        "id": "CommunicationRequest.category.coding.userSelected",
        "path": "CommunicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.doNotPerform",
        "path": "CommunicationRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium",
        "path": "CommunicationRequest.medium",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.subject",
        "path": "CommunicationRequest.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.payload",
        "path": "CommunicationRequest.payload",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.payload.content[x]",
        "path": "CommunicationRequest.payload.content[x]",
        "short": "QuestionnaireResponse to be transmitted",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.payload.content[x].reference",
        "path": "CommunicationRequest.payload.content[x].reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.payload.content[x].type",
        "path": "CommunicationRequest.payload.content[x].type",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester",
        "path": "CommunicationRequest.requester",
        "short": "Task requester",
        "definition": "The individual practitioner or department who requested the questionnaire (if known)",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.requester.reference",
        "path": "CommunicationRequest.requester.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.type",
        "path": "CommunicationRequest.requester.type",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient",
        "path": "CommunicationRequest.recipient",
        "short": "Target Organization",
        "definition": "The organization which is the intended target of the communication.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.recipient.reference",
        "path": "CommunicationRequest.recipient.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient.type",
        "path": "CommunicationRequest.recipient.type",
        "min": 1,
        "fixedUri": "Organization"
      }
    ]
  }
}