PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept@workflow.r4-1.2.2
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply
description: Ressource used for the communication of the reply to dispense/info request from provider to patient/representative
package_name: de.gematik.erezept
derivation: constraint
name: GEM_ERP_PR_Communication_Reply
abstract: true
type: Communication
elements:
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.2'}
        index: 1
    required: [profile]
  basedOn:
    type: Reference
    refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task']
    index: 2
    elements:
      reference: {index: 3}
    required: [reference]
  status:
    pattern: {type: Code, value: unknown}
    index: 4
  sent: {mustSupport: true, index: 5}
  received: {mustSupport: true, index: 6}
  recipient:
    index: 7
    elements:
      identifier: {type: Identifier, index: 8}
    required: [identifier]
  sender:
    index: 9
    elements:
      identifier: {type: Identifier, index: 10}
    required: [identifier]
  payload:
    index: 11
    extensions:
      OfferedSupplyOptions: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_SupplyOptionsType', min: 0, max: 1, type: Extension, short: Offered supply options by pharmacy, index: 13}
      AvailabilityStatus: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AvailabilityState', min: 0, max: 1, type: Extension, short: Availability Status of queried medication, index: 14}
    elements:
      extension:
        index: 12
        slicing:
          rules: closed
          description: Extensions are always sliced by (at least) url
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            OfferedSupplyOptions:
              match: {url: null}
              schema: {type: Extension, short: Offered supply options by pharmacy, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_SupplyOptionsType', index: 13}
              min: 0
              max: 1
            AvailabilityStatus:
              match: {url: null}
              schema: {type: Extension, short: Availability Status of queried medication, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AvailabilityState', index: 14}
              min: 0
              max: 1
      content:
        mustSupport: true
        choices: [contentString]
        index: 16
      contentString: {type: string, mustSupport: true, choiceOf: content, index: 17}
package_version: workflow.r4-1.2.2
class: profile
kind: resource
url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply
base: http://hl7.org/fhir/StructureDefinition/Communication
version: '1.2'
required: [basedOn, recipient, meta, payload, sender]