description: This profile introduces essential constraints and extensions for the Composition resource for commonly used EHDS documents. package_name: hl7.fhir.eu.base derivation: constraint name: CompositionEuCore type: Composition elements: category: {short: Document Category, index: 11} section: extensions: section-note: {url: 'http://hl7.org/fhir/StructureDefinition/note', min: 0, type: Extension, short: Additional notes that apply to the section (but not to specific resource)., index: 28} elements: extension: index: 27 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: section-note: match: {url: null} schema: {type: Extension, short: Additional notes that apply to the section (but not to specific resource)., url: 'http://hl7.org/fhir/StructureDefinition/note', index: 28} min: 0 title: {index: 29} code: {index: 30} text: {index: 31} emptyReason: {short: Empty reason, index: 32} required: [text, title, code] attester: index: 14 elements: party: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 15 slicing: rules: open ordered: false discriminator: - {path: mode, type: value} min: null slices: legalAuthenticator: match: {mode: legal} schema: array: true index: 16 elements: mode: pattern: {type: Code, value: legal} index: 17 time: {index: 18} party: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core'] index: 19 required: [time, party] validator: match: {mode: professional} schema: array: true index: 20 elements: mode: pattern: {type: Code, value: professional} index: 21 time: {index: 22} party: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core'] index: 23 required: [time, party] type: {short: Type of document/report (e.g. imaging report LOINC), index: 10} author: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 13 extension: index: 1 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: version: match: {url: null} schema: type: Extension url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Composition.version index: 2 extensions: {} elements: extension: {index: 3} informationRecipient: match: {url: null} schema: type: Extension url: http://hl7.eu/fhir/StructureDefinition/information-recipient index: 4 elements: value: choices: [valueReference] index: 6 valueReference: type: Reference choiceOf: value refers: ['http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 7 diagnosticReport: match: {url: null} schema: {type: Extension, url: 'http://hl7.eu/fhir/extensions/StructureDefinition/composition-diagnosticReportReference', index: 8} min: 0 max: 1 event: elements: code: {short: Event code, index: 25} period: {short: Event period, index: 26} custodian: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core'] index: 24 language: {short: Language of the composition content, index: 0} identifier: {short: Report identifier, index: 9} subject: type: Reference refers: ['http://hl7.eu/fhir/base/StructureDefinition/location-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group'] index: 12 package_version: 2.0.0 extensions: version: url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Composition.version type: Extension index: 2 extensions: {} elements: extension: {index: 3} informationRecipient: url: http://hl7.eu/fhir/StructureDefinition/information-recipient type: Extension index: 4 elements: value: choices: [valueReference] index: 6 valueReference: type: Reference choiceOf: value refers: ['http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core', 'http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 7 diagnosticReport: {url: 'http://hl7.eu/fhir/extensions/StructureDefinition/composition-diagnosticReportReference', min: 0, max: 1, type: Extension, index: 8} class: profile kind: resource url: http://hl7.eu/fhir/base/StructureDefinition/composition-eu-core base: http://hl7.org/fhir/StructureDefinition/Composition version: 2.0.0 required: [identifier, subject]