description: Definition of the composition for the medication prescription document package_name: ch.fhir.ig.ch-emed derivation: constraint name: CHEMEDCompositionMedicationPrescription type: Composition elements: date: {short: The document's creation date and time, index: 5} section: array: true min: 2 index: 14 slicing: slices: originalRepresentation: match: {} schema: short: Original representation _required: true index: 15 elements: title: short: "'Original Darstellung' in german or 'Représentation originale' in french or 'Rappresentazione originale' in italian or 'Original representation' in english\r\n or titles in other languages are also allowed" index: 16 entry: {short: PDF, index: 17} prescription: match: {} schema: short: Medication prescription _required: true index: 18 elements: title: short: "'Arzneimittelverordnung' in german or 'Prescription médicamenteuse' in french or 'Prescrizione di droga' in italian or 'Prescription for medication' in english\r\n or titles in other languages are also allowed" index: 19 code: pattern: type: CodeableConcept value: coding: - {code: 57828-6, system: 'http://loinc.org'} index: 20 text: {short: Human readable text of this section, index: 21} entry: type: Reference short: Medication request refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationrequest'] index: 22 elements: reference: {index: 23} required: [reference] section: {index: 24} required: [entry, title, code] annotation: match: {} schema: short: Annotation index: 25 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: 26 code: pattern: type: CodeableConcept value: coding: - {code: 48767-8, system: 'http://loinc.org'} index: 27 text: {short: Human readable text of this section, index: 28} section: {index: 29} 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: Medicinal prescription record (record artifact) constraint: ch-emed-comp-pre: {human: 'If a LOINC code is additionally provided, ''57833-6'' shall be used for this document type.', source: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationprescription', severity: error, expression: 'coding.exists(system = ''http://loinc.org'') and (coding.exists(system = ''http://loinc.org'' and code = ''57833-6''))'} pattern: type: CodeableConcept value: coding: - {code: '761938008', system: 'http://snomed.info/sct'} index: 3 title: short: "'Rezept' in german or 'Ordonnance' in french or 'Ricetta' in italian or 'Prescription' 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: 5.0.0-ballot class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-composition-medicationprescription base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition-epr version: 5.0.0-ballot