PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept@workflow.r4-1.5.0-beta4
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Consent
description: Records the consent of the patient for an operation in the context of ePrescription.
package_name: de.gematik.erezept
derivation: constraint
name: GEM_ERP_PR_Consent
type: Consent
elements:
  meta:
    index: 0
    elements:
      profile:
        index: 1
        slicing:
          rules: open
          ordered: false
          description: Slicing for profiles
          discriminator:
          - {path: value, type: value}
          min: 1
          slices:
            consent:
              match: {value: null}
              schema:
                pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Consent|1.5'}
                _required: true
                index: 2
              min: 1
              max: 1
    required: [profile]
  status:
    pattern: {type: Code, value: active}
    index: 3
  scope:
    elements:
      coding:
        index: 4
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/consentscope'}
            index: 5
          code:
            pattern: {type: Code, value: patient-privacy}
            index: 6
          display:
            pattern: {type: String, value: Privacy Consent}
            index: 7
    required: [coding]
  category:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_ConsentType'}
    index: 8
  patient:
    index: 9
    elements:
      identifier:
        type: Identifier
        index: 10
        elements:
          assigner:
            mustSupport: true
            index: 11
            elements:
              identifier: {type: Identifier, mustSupport: true, index: 12}
    required: [identifier]
  dateTime: {index: 13}
  policyRule:
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_Consent_PolicyRule'}
    mustSupport: true
    index: 14
package_version: workflow.r4-1.5.0-beta4
class: profile
kind: resource
url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Consent
base: http://hl7.org/fhir/StructureDefinition/Consent
version: '1.5'
required: [dateTime, meta, patient]