PackagesCanonicalsLogsProblems
    Packages
    rs/ch.fhir.ig.ch@core-3.0.0
    http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-epr-consent
description: Base profile for a consent profile to document that a patient has an Electronic Patient Record (EPR) in Switzerland. The actual consent conditions are held within the EPR, this consent is the documentation in an organization that the patient has stated he has an EPR and this needs to be verified at the time of document publishing or reading. In addition a patient can request that specific information will not be published from the organization to the EPR. This can be documented with one or more references to encounters to exclude the consent for these.
package_name: rs/ch.fhir.ig.ch
derivation: constraint
name: CHCoreEPRConsent
type: Consent
elements:
  scope:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: patient-privacy, system: 'http://terminology.hl7.org/CodeSystem/consentscope', display: Privacy Consent}
    type: CodeableConcept
    index: 0
  category:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: coding.code, type: value}
      - {path: coding.system, type: value}
      - {path: coding.display, type: value}
      min: null
      slices:
        VSCat:
          match:
            coding: {code: IDSCL, system: 'http://terminology.hl7.org/CodeSystem/v3-ActCode', display: information disclosure}
          schema:
            _required: true
            index: 2
            elements:
              coding:
                index: 3
                elements:
                  system:
                    pattern: {type: uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
                    type: uri
                    index: 4
                  code:
                    pattern: {type: code, value: IDSCL}
                    type: code
                    index: 5
                  display:
                    pattern: {type: string, value: information disclosure}
                    type: string
                    index: 6
                required: [code, display, system]
            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: 7
  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://hl7.org/fhir/StructureDefinition/RelatedPerson']
    index: 8
  organization:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization']
    index: 9
  policyRule:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: ch-epr, system: 'http://terminology.hl7.org/CodeSystem/consentpolicycodes'}
    type: CodeableConcept
    index: 10
  provision:
    short: Exceptions to the EPR consent
    index: 11
    elements:
      type:
        short: deny
        pattern: {type: code, value: deny}
        type: code
        index: 12
      data:
        index: 13
        elements:
          meaning:
            pattern: {type: code, value: instance}
            type: code
            index: 14
          reference:
            type: Reference
            short: Excluded encounter for EPR
            refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-encounter']
            index: 15
    required: [type]
package_version: core-3.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: 3.0.0
required: [patient]