<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="GEM-ERP-PR-Communication-Reply" />
  <url value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply" />
  <version value="1.6.2" />
  <name value="GEM_ERP_PR_Communication_Reply" />
  <title value="Antwort vom Leistungserbringer an den Patienten" />
  <status value="active" />
  <date value="2026-04-14" />
  <description value="Ressource, die für die Kommunikation der Antwort zur Weitergabe/Informationsanfrage vom Leistungserbringer an Patienten/Vertreter verwendet wird" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Communication" />
  <baseDefinition value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication" />
  <derivation value="constraint" />
  <differential>
    <element id="Communication.meta">
      <path value="Communication.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.meta.profile">
      <path value="Communication.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <description value="Slicing für meta profile" />
        <ordered value="false" />
        <rules value="closed" />
      </slicing>
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.meta.profile:workflowProfile">
      <path value="Communication.meta.profile" />
      <sliceName value="workflowProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.6" />
      <mustSupport value="true" />
    </element>
    <element id="Communication.recipient">
      <path value="Communication.recipient" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Communication.recipient.identifier">
      <path value="Communication.recipient.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
      </type>
    </element>
    <element id="Communication.sender.identifier">
      <path value="Communication.sender.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="http://fhir.de/StructureDefinition/identifier-kvid-10" />
        <profile value="http://fhir.de/StructureDefinition/identifier-telematik-id" />
      </type>
    </element>
    <element id="Communication.payload">
      <path value="Communication.payload" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Communication.payload.extension">
      <path value="Communication.payload.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Erweiterungen werden immer (mindestens) nach url gesliced." />
        <rules value="closed" />
      </slicing>
    </element>
    <element id="Communication.payload.extension:OfferedSupplyOptions">
      <path value="Communication.payload.extension" />
      <sliceName value="OfferedSupplyOptions" />
      <short value="Angebotene Lieferoptionen durch die Apotheke" />
      <definition value="In einer Kommunikation kann eine Apotheke ihre verfügbaren Lieferoptionen angeben, ob sie Kunden im Geschäft bedienen, Medikamente per Boten senden oder den Versand per Paket nutzen." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_SupplyOptionsType" />
      </type>
    </element>
    <element id="Communication.payload.extension:AvailabilityStatus">
      <path value="Communication.payload.extension" />
      <sliceName value="AvailabilityStatus" />
      <short value="Verfügbarkeitsstatus des abgefragten Medikaments" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AvailabilityState" />
      </type>
    </element>
    <element id="Communication.payload.content[x]">
      <path value="Communication.payload.content[x]" />
      <comment value="Dieser Inhalt muss gemäß gemSpec_DM_eRp ein JSON sein." />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>