description: Definition of the composition for the medication dispense document package_name: ch.fhir.ig.ch-emed derivation: constraint name: CHEMEDCompositionMedicationDispense type: Composition elements: date: {short: The document's creation date and time, index: 5} section: index: 14 slicing: slices: dispense: match: {} schema: short: Medication dispense _required: true index: 15 elements: title: short: "'Abgabe eines Medikaments' in german or 'Dispensation d'un médicament' in french or 'Dispensazione di un medicamento' in italian or 'Medication dispensed' in english\r\n or titles in other languages are also allowed" index: 16 code: pattern: type: CodeableConcept value: coding: - {code: 60590-7, system: 'http://loinc.org'} index: 17 author: type: Reference short: The author of the medical decision (person) if different from the author of the document (Composition.author), see also 'Guidance - Different Authors' refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 18 elements: reference: {index: 19} required: [reference] text: {short: Human readable text of this section, index: 20} entry: type: Reference short: Medication dispense refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationdispense'] index: 21 elements: reference: {index: 22} required: [reference] section: {index: 23} required: [entry, text, title, code] annotation: match: {} schema: short: Annotation index: 24 elements: title: short: "'Kommentar' in german or 'Commentaire' in french or 'Osservazione' in italian or 'Comment' in english\r\n or titles in other languages are also allowed" index: 25 code: pattern: type: CodeableConcept value: coding: - {code: 48767-8, system: 'http://loinc.org'} index: 26 text: {short: Human readable text of this section, index: 27} section: {index: 28} required: [text, title, code] attester: short: The authenticator of the document (person) index: 11 slicing: slices: legalAuthenticator: match: {} schema: short: The legal authenticator of the document (person) index: 12 elements: time: {short: Timestamp of the signature, index: 13} type: short: Medication dispense document (record artifact) constraint: ch-emed-comp-dis: {human: 'If a LOINC code is additionally provided, ''60593-1'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationdispense', severity: error, expression: 'coding.where(system = ''http://loinc.org'').exists() and (coding.where(system = ''http://loinc.org'').code = ''60593-1'')'} pattern: type: CodeableConcept value: coding: - {code: '294121000195110', system: 'http://snomed.info/sct', version: 'http://snomed.info/sct/2011000195101'} index: 3 title: short: "'Abgabe' in german or 'Remise' in french or 'Dispensazione' in italian or 'Dispense' in english\r\n or titles in other languages are also allowed" index: 9 author: index: 6 slicing: rules: closed discriminator: - {path: resolve(), type: profile} min: null slices: person: match: {} schema: type: Reference short: The author of the document (person) refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient-epr', 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] array: true min: 1 _required: true index: 7 min: 1 device: match: {} schema: type: Reference short: The device that created the document refers: ['http://hl7.org/fhir/StructureDefinition/Device'] array: true index: 8 min: 0 status: pattern: {type: Code, value: final} index: 2 language: {short: Language of the document, index: 0} identifier: elements: value: {index: 1} subject: {short: A patient for whom this document instance was created, index: 4} confidentiality: extensions: confidentialityCode: {url: null, short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10} elements: extension: short: Swiss realm of confidentiality code according to the Swiss EPR regulation index: 10 slicing: slices: confidentialityCode: match: {} schema: {short: Swiss realm of confidentiality code according to the Swiss EPR regulation, index: 10} package_version: 4.0.0-ballot class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationdispense base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr version: 4.0.0-ballot required: [section]