description: Definition of the Consent resource 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/she 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: 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://hl7.org/fhir/StructureDefinition/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: 5.0.0-ballot class: profile kind: resource url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-epr-consent base: http://hl7.org/fhir/StructureDefinition/Consent version: 5.0.0-ballot required: [patient]