PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept-workflow.r4@1.5.0-beta6
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Composition
description: Upon completion of the ePrescription workflow, the prescription filler receives a signed receipt for billing and verification purposes.
package_name: de.gematik.erezept-workflow.r4
derivation: constraint
name: GEM_ERP_PR_Composition
type: Composition
elements:
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Composition|1.5'}
        index: 1
    required: [profile]
  extension:
    index: 2
    slicing:
      rules: closed
      description: Extensions are always sliced by (at least) url
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        Beneficiary:
          match: {url: null}
          schema: {type: Extension, short: The ID of the beneficiary of the erx receipt (e.g. TelematikID of pharmacy), url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_Beneficiary', index: 3}
          min: 1
          max: 1
  status:
    short: Status = "final"
    pattern: {type: Code, value: final}
    mustSupport: true
    index: 4
  type:
    short: Document Type = "Receipt"
    mustSupport: true
    index: 5
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'}
        index: 6
        elements:
          system:
            pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType'}
            index: 7
          code:
            pattern: {type: Code, value: '3'}
            index: 8
          display:
            pattern: {type: String, value: Receipt}
            index: 9
        required: [system, code]
    required: [coding]
  date: {mustSupport: true, index: 10}
  author:
    type: Reference
    short: Reference to verifying service (Device)
    mustSupport: true
    refers: ['https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Device']
    index: 11
  title:
    short: Document title = "Quittung"
    pattern: {type: String, value: Quittung}
    mustSupport: true
    index: 12
  event:
    index: 13
    elements:
      period:
        mustSupport: true
        index: 14
        elements:
          start: {short: Starting time of dispensation, mustSupport: true, index: 15}
          end: {index: 16}
        required: [start, end]
      detail:
        mustSupport: true
        index: 17
        elements:
          reference: {mustSupport: true, index: 18}
        required: [reference]
    required: [period]
package_version: 1.5.0-beta6
extensions:
  Beneficiary: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_Beneficiary', min: 1, max: 1, type: Extension, short: The ID of the beneficiary of the erx receipt (e.g. TelematikID of pharmacy), index: 3}
class: profile
kind: resource
url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: '1.5'
required: [event, extension, meta]