{
  "resourceType": "StructureDefinition",
  "id": "thiemeecpcommunication-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/ThiemeEcpCommunication",
  "version": "1.1.1",
  "name": "ThiemeEcpCommunication",
  "status": "active",
  "date": "2024-11-25T23:33:35.8530842+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This Communication resource represents a transmission of a filled out anamnesis form from the IOP/patient portal to a Thieme eConsent Pro installation in one of the participating hospitals.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.status",
        "path": "Communication.status",
        "short": "preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error",
        "definition": "The status of the transmission. The status may be \"on-hold\" if the patientId in the target system could not be identified yet. Once the transmission has been completed, the status must change to \"completed\". If an error occurred, the status \"not-done\" must be used in conjunction with \"http://hl7.org/fhir/ValueSet/communication-not-done-reason|system-error\" as statusReason."
      },
      {
        "id": "Communication.statusReason",
        "path": "Communication.statusReason",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.xt.dev/ValueSet/CommunicationStatusReasonCodes"
        }
      },
      {
        "id": "Communication.statusReason.coding",
        "path": "Communication.statusReason.coding",
        "definition": "A reference to a code defined by a terminology system. Must be single-valued if the statusReason is not empty.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.statusReason.coding.system",
        "path": "Communication.statusReason.coding.system",
        "min": 1
      },
      {
        "id": "Communication.statusReason.coding.version",
        "path": "Communication.statusReason.coding.version",
        "max": "0"
      },
      {
        "id": "Communication.statusReason.coding.code",
        "path": "Communication.statusReason.coding.code",
        "min": 1
      },
      {
        "id": "Communication.statusReason.coding.userSelected",
        "path": "Communication.statusReason.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Communication.category",
        "path": "Communication.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.category.coding",
        "path": "Communication.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.category.coding.system",
        "path": "Communication.category.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/SystemCommunicationCategories"
      },
      {
        "id": "Communication.category.coding.version",
        "path": "Communication.category.coding.version",
        "max": "0"
      },
      {
        "id": "Communication.category.coding.code",
        "path": "Communication.category.coding.code",
        "min": 1,
        "fixedCode": "outgoing-fhir"
      },
      {
        "id": "Communication.category.coding.userSelected",
        "path": "Communication.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Communication.category.text",
        "path": "Communication.category.text",
        "max": "0"
      },
      {
        "id": "Communication.priority",
        "path": "Communication.priority",
        "max": "0"
      },
      {
        "id": "Communication.medium",
        "path": "Communication.medium",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.medium.coding",
        "path": "Communication.medium.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.medium.coding.system",
        "path": "Communication.medium.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"
      },
      {
        "id": "Communication.medium.coding.version",
        "path": "Communication.medium.coding.version",
        "max": "0"
      },
      {
        "id": "Communication.medium.coding.code",
        "path": "Communication.medium.coding.code",
        "min": 1,
        "fixedCode": "hl7-fhir-rest"
      },
      {
        "id": "Communication.medium.coding.userSelected",
        "path": "Communication.medium.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Communication.medium.text",
        "path": "Communication.medium.text",
        "max": "0"
      },
      {
        "id": "Communication.subject",
        "path": "Communication.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.subject.reference",
        "path": "Communication.subject.reference",
        "min": 1
      },
      {
        "id": "Communication.subject.identifier",
        "path": "Communication.subject.identifier",
        "max": "0"
      },
      {
        "id": "Communication.topic",
        "path": "Communication.topic",
        "max": "0"
      },
      {
        "id": "Communication.about",
        "path": "Communication.about",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Communication.about:targetNamespace",
        "path": "Communication.about",
        "sliceName": "targetNamespace",
        "short": "Target PatientID Namespace",
        "definition": "Namespace for patients in the target system, must be contained in this Communication resource",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/NamingSystem"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Communication.about:targetNamespace.reference",
        "path": "Communication.about.reference",
        "min": 1
      },
      {
        "id": "Communication.about:targetNamespace.type",
        "path": "Communication.about.type",
        "min": 1,
        "fixedUri": "NamingSystem"
      },
      {
        "id": "Communication.about:targetNamespace.identifier",
        "path": "Communication.about.identifier",
        "max": "0"
      },
      {
        "id": "Communication.about:questionnaireResponse",
        "path": "Communication.about",
        "sliceName": "questionnaireResponse",
        "short": "QuestionnaireResponse for transmission",
        "definition": "QuestionnaireResponse intended for transmission to Thieme eCP, must be referenced using a literal reference",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.about:questionnaireResponse.reference",
        "path": "Communication.about.reference",
        "min": 1
      },
      {
        "id": "Communication.about:questionnaireResponse.type",
        "path": "Communication.about.type",
        "min": 1,
        "fixedUri": "QuestionnaireResponse"
      },
      {
        "id": "Communication.about:questionnaireResponse.identifier",
        "path": "Communication.about.identifier",
        "max": "0"
      },
      {
        "id": "Communication.about:targetEndpoint",
        "path": "Communication.about",
        "sliceName": "targetEndpoint",
        "short": "Target Endpoint",
        "definition": "Target Endpoint at the receiving Organization",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Endpoint"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.about:targetEndpoint.reference",
        "path": "Communication.about.reference",
        "min": 1
      },
      {
        "id": "Communication.about:targetEndpoint.type",
        "path": "Communication.about.type",
        "min": 1,
        "fixedUri": "Endpoint"
      },
      {
        "id": "Communication.about:targetEndpoint.identifier",
        "path": "Communication.about.identifier",
        "max": "0"
      },
      {
        "id": "Communication.about:questionnaireTask",
        "path": "Communication.about",
        "sliceName": "questionnaireTask",
        "short": "Questionnaire Task",
        "definition": "Task that caused the patient to fill out the questionnaire",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Task"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.about:questionnaireTask.reference",
        "path": "Communication.about.reference",
        "min": 1
      },
      {
        "id": "Communication.about:questionnaireTask.type",
        "path": "Communication.about.type",
        "min": 1,
        "fixedUri": "Task"
      },
      {
        "id": "Communication.about:questionnaireTask.identifier",
        "path": "Communication.about.identifier",
        "max": "0"
      },
      {
        "id": "Communication.sent",
        "path": "Communication.sent",
        "definition": "The time the first resource is transmitted."
      },
      {
        "id": "Communication.received",
        "path": "Communication.received",
        "definition": "The time Thieme eCP acknowledges the receipt of the QuestionnaireResponse resource."
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "definition": "The organization which was the target of the communication.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.recipient.reference",
        "path": "Communication.recipient.reference",
        "min": 1
      },
      {
        "id": "Communication.recipient.identifier",
        "path": "Communication.recipient.identifier",
        "max": "0"
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "definition": "The entity (e.g. person, organization, clinical information system, or device) which was the source of the communication. In this case the requester of the questionnaire task is considered the source of the communication.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Communication.sender.reference",
        "path": "Communication.sender.reference",
        "min": 1
      },
      {
        "id": "Communication.sender.type",
        "path": "Communication.sender.type",
        "short": "Organization or Practitioner",
        "min": 1
      },
      {
        "id": "Communication.sender.identifier",
        "path": "Communication.sender.identifier",
        "max": "0"
      },
      {
        "id": "Communication.reasonCode",
        "path": "Communication.reasonCode",
        "max": "0"
      },
      {
        "id": "Communication.reasonReference",
        "path": "Communication.reasonReference",
        "max": "0"
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "max": "0"
      }
    ]
  }
}