<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Communication" />
  <url value="https://fhir.centraxx.de/StructureDefinition/Communication" />
  <version value="2025.4.0" />
  <name value="Communication" />
  <status value="active" />
  <publisher value="Kairos an IQVIA business" />
  <description value="Represents a CentraXX HotlineProtocol." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Communication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Communication" />
  <derivation value="constraint" />
  <differential>
    <element id="Communication.extension">
      <path value="Communication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.extension:updateWithOverwrite">
      <path value="Communication.extension" />
      <sliceName value="updateWithOverwrite" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/updateWithOverwrite" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.extension:isApp">
      <path value="Communication.extension" />
      <sliceName value="isApp" />
      <short value="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 value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/hotline/app" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.status">
      <path value="Communication.status" />
      <short value="Required for import" />
      <min value="1" />
      <max value="1" />
      <fixedString value="unknown" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.medium">
      <path value="Communication.medium" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.centraxx.de/valueSet/hotline/contactEvent" />
      </binding>
    </element>
    <element id="Communication.subject">
      <path value="Communication.subject" />
      <short value="Required for import" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.received">
      <path value="Communication.received" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.recipient">
      <path value="Communication.recipient" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Person" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.sender">
      <path value="Communication.sender" />
      <short value="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 value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Person" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Communication.reasonCode">
      <path value="Communication.reasonCode" />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.centraxx.de/valueSet/hotline/reason" />
      </binding>
    </element>
    <element id="Communication.payload">
      <path value="Communication.payload" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.payload.content[x]">
      <path value="Communication.payload.content[x]" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>