PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-core@6.0.0
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-epr-consent
description: 'Definition of the Consent resource to document in an external system (outside the EPR) that a patient has an electronic patient record (EPR) in Switzerland. \nThis profile is used by healthcare organizations to track which patients have an EPR. Optionally, specific encounters can be excluded from EPR publication by referencing them in the provision element, documenting the patient''s request that certain information should not be published to their EPR. \n\nNote: This profile is NOT used to manage actual consent conditions within the EPR itself - those are managed through proper PPQ Consents (see CH EPR FHIR IG).\n'
package_name: ch.fhir.ig.ch-core
derivation: constraint
name: CHCoreEPRConsent
type: Consent
elements:
  scope:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: patient-privacy, system: 'http://terminology.hl7.org/CodeSystem/consentscope'}
    index: 0
  category:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: coding.code, type: value}
      - {path: coding.system, type: value}
      min: null
      slices:
        VSCat:
          match:
            coding: {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
          schema:
            _required: true
            index: 2
            elements:
              coding:
                index: 3
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
                    index: 4
                  code:
                    short: information disclosure
                    pattern: {type: Code, value: IDSCL}
                    index: 5
                required: [system, code]
            required: [coding]
  patient:
    type: Reference
    short: The patient to whom this EPR consent applies
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient']
    index: 6
  performer:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson']
    index: 7
  organization:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization']
    index: 8
  policyRule:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: ch-epr, system: 'http://terminology.hl7.org/CodeSystem/consentpolicycodes'}
    index: 9
  provision:
    short: Exceptions to the EPR consent
    index: 10
    elements:
      type:
        short: deny
        pattern: {type: Code, value: deny}
        index: 11
      data:
        elements:
          meaning:
            pattern: {type: Code, value: instance}
            index: 12
          reference:
            type: Reference
            short: Excluded encounter for EPR
            refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-encounter']
            index: 13
    required: [type]
package_version: 6.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-epr-consent
base: http://hl7.org/fhir/StructureDefinition/Consent
version: 6.0.0
required: [patient]