description: Definition of the Composition resource for use in the context of the electronic patient record (EPR). package_name: ch.fhir.ig.ch-core derivation: constraint name: CHCoreCompositionEPR type: Composition elements: section: index: 19 elements: author: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Device'] index: 20 slicing: rules: open ordered: false discriminator: - {path: code, type: value} min: null slices: originalRepresentation: match: code: coding: - {code: 55108-5, system: 'http://loinc.org'} schema: short: Contains the original representation as a PDF of the current document. index: 21 elements: title: {short: Original representation, index: 22} code: pattern: type: CodeableConcept value: coding: - {code: 55108-5, system: 'http://loinc.org'} index: 23 text: {short: Representation of the original view, index: 24} entry: type: Reference short: According to the EPR ordonnance the PDF has to be in PDF/A-1 or PDF/A-2 format. refers: ['http://hl7.org/fhir/StructureDefinition/Binary'] index: 25 section: {index: 26} required: [entry, text, title, code] attester: elements: party: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson'] index: 13 type: short: Kind of composition binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.typeCode'} index: 6 author: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitioner-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-practitionerrole-epr', 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-relatedperson', 'http://hl7.org/fhir/StructureDefinition/Device'] index: 8 extensions: time: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', min: 0, max: 1, type: Extension, short: Timestamp of the authorship/data input, index: 9} elements: extension: type: Extension short: Timestamp of the authorship/data input url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time index: 9 slicing: slices: time: match: {} schema: {type: Extension, short: Timestamp of the authorship/data input, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-time', index: 9} min: 0 max: 1 extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: dataEnterer: match: {url: null} schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', index: 2} min: 0 max: 1 custodian: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization-epr'] index: 14 language: {index: 0} identifier: index: 3 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 4 value: {index: 5} required: [value, system] relatesTo: elements: target: choices: [targetIdentifier, targetReference] index: 16 targetIdentifier: {type: Identifier, choiceOf: target, index: 17} targetReference: type: Reference choiceOf: target refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr'] index: 18 subject: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr'] index: 7 confidentiality: index: 10 extensions: confidentialityCode: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', min: 1, max: 1, type: Extension, index: 12} elements: extension: index: 11 slicing: rules: open discriminator: - {path: url, type: value} min: 1 slices: confidentialityCode: match: {url: null} schema: {type: Extension, url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-confidentialitycode', index: 12} min: 1 max: 1 required: [extension] package_version: 6.0.0 extensions: dataEnterer: {url: 'http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-epr-dataenterer', min: 0, max: 1, type: Extension, index: 2} class: profile kind: resource url: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition version: 6.0.0 required: [confidentiality, identifier, subject, language]