description: Definition of the medication statement for the medication treatment plan document (and as basis medication statement) package_name: ch.fhir.ig.ch derivation: constraint name: CHEMEDMedicationStatement type: MedicationStatement elements: contained: {short: Medication inline resource, index: 0} extension: index: 1 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: substitution: match: {url: null} schema: {type: Extension, short: Whether substitution is allowed or not, url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution', index: 2} min: 0 max: 1 identifier: short: MedicationStatement Identifier index: 3 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} index: 4 value: {short: Identifier value as UUID, index: 5} required: [value, system] medicationReference: type: Reference short: Reference to the contained medication refers: ['http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medication'] index: 6 subject: type: Reference short: Patient refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient'] index: 7 elements: reference: {index: 8} required: [reference] reasonCode: short: Treatment reason index: 9 elements: text: {index: 10} dosage: short: How the medication should be taken index: 11 slicing: rules: closed discriminator: - {path: $this, type: profile} min: 1 slices: baseEntry: match: {} schema: {type: Dosage, short: Base entry of the dosage instruction, _required: true, index: 12} min: 1 max: 1 additionalEntry: match: {} schema: {type: Dosage, short: Additional entry of the dosage instruction, array: true, index: 13} min: 0 package_version: emed-3.0.0 extensions: substitution: {url: 'http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-substitution', min: 0, max: 1, type: Extension, short: Whether substitution is allowed or not, index: 2} class: profile kind: resource url: http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-medicationstatement base: http://hl7.org/fhir/StructureDefinition/MedicationStatement version: 3.0.0 required: [dosage, identifier, contained]