description: Defines the medication resource for the Medication Service in the ePA system. package_name: rs/de.gematik.epa.medication derivation: constraint name: EPAMedication type: Medication elements: amount: mustSupport: true index: 69 elements: numerator: binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'} mustSupport: true index: 70 extensions: packagingSize: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension type: Extension index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 75 valueString: type: string mustSupport: true choiceOf: value index: 76 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 76} totalQuantity: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension type: Extension index: 77 elements: value: mustSupport: true choices: [] index: 79 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 81 valueString: type: string mustSupport: true choiceOf: value index: 82 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 82} elements: extension: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension index: 71 slicing: slices: packagingSize: match: {} schema: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 75 valueString: type: string mustSupport: true choiceOf: value index: 76 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 76} totalQuantity: match: {} schema: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension index: 77 elements: value: mustSupport: true choices: [] index: 79 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 81 valueString: type: string mustSupport: true choiceOf: value index: 82 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 82} value: {mustSupport: true, index: 83} unit: {mustSupport: true, index: 84} system: {mustSupport: true, index: 85} code: {mustSupport: true, index: 86} denominator: binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'} mustSupport: true index: 87 elements: value: {mustSupport: true, index: 88} unit: {mustSupport: true, index: 89} system: {mustSupport: true, index: 90} code: {mustSupport: true, index: 91} meta: mustSupport: true index: 0 elements: versionId: {mustSupport: true, index: 1} lastUpdated: {mustSupport: true, index: 2} batch: short: Batch Information index: 136 elements: lotNumber: {short: Batch Number, mustSupport: true, index: 137} extension: type: Extension mustSupport: true url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension index: 4 slicing: slices: rxPrescriptionProcessIdentifier: match: {} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 4} min: 0 max: 1 isVaccine: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension index: 5 elements: value: mustSupport: true choices: [valueBoolean] index: 7 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [valueBoolean] index: 7 valueBoolean: type: boolean mustSupport: true choiceOf: value index: 8 slicing: slices: valueBoolean: match: {} schema: {type: boolean, mustSupport: true, choiceOf: value, index: 8} drugCategory: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension index: 9 elements: value: mustSupport: true choices: [valueCoding] index: 11 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [valueCoding] index: 11 valueCoding: type: Coding mustSupport: true choiceOf: value index: 12 slicing: slices: valueCoding: match: {} schema: {type: Coding, mustSupport: true, choiceOf: value, index: 12} value[x]: elements: system: {mustSupport: true, index: 13} code: {mustSupport: true, index: 14} normSizeCode: match: {} schema: short: Package size according to N-designation type: Extension mustSupport: true url: http://fhir.de/StructureDefinition/normgroesse index: 15 elements: value: mustSupport: true choices: [] index: 17 packaging: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension index: 18 elements: value: mustSupport: true choices: [valueString] index: 20 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 20 valueString: type: string mustSupport: true choiceOf: value index: 21 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 21} manufacturingInstructions: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension index: 22 elements: value: mustSupport: true choices: [valueString] index: 24 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 24 valueString: type: string mustSupport: true choiceOf: value index: 25 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 25} type: match: {} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', index: 26} min: 0 max: 1 contained: {type: Medication, short: Contains PZN Ingredients for Compounding Medications & PharmaceuticalProducts in case of a 'Kombipackung', mustSupport: true, index: 3} ingredient: short: Information on Components (Rezeptur) mustSupport: true index: 92 extensions: darreichungsform: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension', min: 0, max: 1, type: Extension, index: 93} elements: extension: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension index: 93 slicing: slices: darreichungsform: match: {} schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension', index: 93} min: 0 max: 1 item: short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only mustSupport: true choices: [itemReference] index: 116 slicing: slices: itemReference: match: {} schema: short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only mustSupport: true choices: [itemReference] index: 116 min: 0 max: 1 itemCodeableConcept: short: Component in coded form or, if necessary, as free text type: CodeableConcept mustSupport: true choiceOf: item index: 98 slicing: slices: itemCodeableConcept: match: {} schema: {short: 'Component in coded form or, if necessary, as free text', type: CodeableConcept, mustSupport: true, choiceOf: item, index: 98} min: 0 max: 1 item[x]: elements: coding: mustSupport: true index: 99 slicing: rules: open discriminator: - {path: $this, type: pattern} min: null slices: ask: match: {system: 'http://fhir.de/CodeSystem/ask'} schema: mustSupport: true pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/ask'} array: true type: Coding index: 100 elements: system: {mustSupport: true, index: 101} code: {mustSupport: true, index: 102} display: {mustSupport: true, index: 103} required: [code, system] atc-de: match: {system: 'http://fhir.de/CodeSystem/bfarm/atc'} schema: mustSupport: true pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/bfarm/atc'} array: true type: Coding index: 104 elements: system: {mustSupport: true, index: 105} code: {mustSupport: true, index: 106} display: {mustSupport: true, index: 107} required: [code, system] snomed: match: {system: 'http://snomed.info/sct'} schema: pattern: type: Coding value: {system: 'http://snomed.info/sct'} array: true type: Coding index: 108 elements: system: {mustSupport: true, index: 109} version: {mustSupport: true, index: 110} code: {mustSupport: true, index: 111} display: {mustSupport: true, index: 112} required: [code, system] pzn: match: {system: 'http://fhir.de/CodeSystem/ifa/pzn'} schema: pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'} type: Coding index: 113 min: 0 max: 0 text: {mustSupport: true, index: 114} itemReference: short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only refers: ['http://hl7.org/fhir/StructureDefinition/Medication'] type: Reference mustSupport: true choiceOf: item index: 117 slicing: slices: itemReference: match: {} schema: short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only refers: ['http://hl7.org/fhir/StructureDefinition/Medication'] type: Reference mustSupport: true choiceOf: item index: 117 min: 0 max: 1 isActive: {short: 'Is it an active ingredient?', index: 118} strength: short: Strength mustSupport: true index: 119 extensions: amountText: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension type: Extension index: 120 elements: value: mustSupport: true choices: [] index: 122 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 124 valueString: type: string mustSupport: true choiceOf: value index: 125 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 125} elements: extension: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension index: 120 slicing: slices: amountText: match: {} schema: type: Extension url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension index: 120 elements: value: mustSupport: true choices: [] index: 122 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 124 valueString: type: string mustSupport: true choiceOf: value index: 125 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 125} numerator: binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'} mustSupport: true index: 126 elements: value: {mustSupport: true, index: 127} unit: {mustSupport: true, index: 128} system: {mustSupport: true, index: 129} code: {mustSupport: true, index: 130} required: [code, system, value] denominator: binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'} mustSupport: true index: 131 elements: value: {mustSupport: true, index: 132} unit: {mustSupport: true, index: 133} system: {mustSupport: true, index: 134} code: {mustSupport: true, index: 135} required: [code, system, value] required: [numerator] status: {short: Status of Medication Information, mustSupport: true, index: 51} code: short: Medication in coded form or as free text if necessary mustSupport: true index: 30 elements: coding: mustSupport: true index: 31 slicing: rules: open discriminator: - {path: $this, type: pattern} min: null slices: pzn: match: {system: 'http://fhir.de/CodeSystem/ifa/pzn'} schema: mustSupport: true pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'} type: Coding index: 32 elements: system: {mustSupport: true, index: 33} version: {mustSupport: true, index: 34} code: {mustSupport: true, index: 35} display: {mustSupport: true, index: 36} required: [code, system] atc-de: match: {system: 'http://fhir.de/CodeSystem/bfarm/atc'} schema: mustSupport: true pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/bfarm/atc'} array: true type: Coding index: 37 elements: system: {mustSupport: true, index: 38} code: {mustSupport: true, index: 39} display: {mustSupport: true, index: 40} required: [code, system] ask: match: {system: 'http://fhir.de/CodeSystem/ask'} schema: mustSupport: true pattern: type: Coding value: {system: 'http://fhir.de/CodeSystem/ask'} array: true type: Coding index: 41 elements: system: {mustSupport: true, index: 42} code: {mustSupport: true, index: 43} display: {mustSupport: true, index: 44} required: [code, system] snomed: match: {system: 'http://snomed.info/sct'} schema: pattern: type: Coding value: {system: 'http://snomed.info/sct'} array: true type: Coding index: 45 elements: system: {mustSupport: true, index: 46} version: {mustSupport: true, index: 47} code: {mustSupport: true, index: 48} display: {mustSupport: true, index: 49} required: [code, system] text: {mustSupport: true, index: 50} identifier: index: 27 slicing: rules: open ordered: false discriminator: - {path: $this, type: pattern} min: null slices: EPAMedicationUniqueIdentifier: match: {system: 'https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier'} schema: type: Identifier pattern: type: Identifier value: {system: 'https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier'} index: 28 min: 0 max: 1 RxOriginatorProcessIdentifier: match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'} schema: type: Identifier pattern: type: Identifier value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'} index: 29 min: 0 max: 1 manufacturer: short: Manufacturer of the Medication mustSupport: true index: 52 elements: display: {mustSupport: true, index: 53} required: [display] form: short: Form of Dispensing mustSupport: true index: 54 elements: coding: mustSupport: true index: 55 slicing: rules: open discriminator: - {path: $this, type: pattern} min: null slices: edqm: match: {system: 'http://standardterms.edqm.eu'} schema: binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/uv/ips/ValueSet/medicine-doseform'} mustSupport: true pattern: type: Coding value: {system: 'http://standardterms.edqm.eu'} array: true type: Coding index: 56 elements: system: {mustSupport: true, index: 57} code: {mustSupport: true, index: 58} display: {mustSupport: true, index: 59} required: [code, system] snomed: match: {system: 'http://snomed.info/sct'} schema: pattern: type: Coding value: {system: 'http://snomed.info/sct'} array: true type: Coding index: 60 elements: system: {mustSupport: true, index: 61} version: {mustSupport: true, index: 62} code: {mustSupport: true, index: 63} display: {mustSupport: true, index: 64} required: [code, system] kbvDarreichungsform: match: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'} schema: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM'} mustSupport: true pattern: type: Coding value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'} array: true type: Coding index: 65 elements: system: {mustSupport: true, index: 66} code: {mustSupport: true, index: 67} display: {mustSupport: true, index: 68} required: [code, system] package_version: 1.0.3 extensions: rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 4} isVaccine: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension type: Extension mustSupport: true index: 5 elements: value: mustSupport: true choices: [valueBoolean] index: 7 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [valueBoolean] index: 7 valueBoolean: type: boolean mustSupport: true choiceOf: value index: 8 slicing: slices: valueBoolean: match: {} schema: {type: boolean, mustSupport: true, choiceOf: value, index: 8} drugCategory: url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension type: Extension mustSupport: true index: 9 elements: value: mustSupport: true choices: [valueCoding] index: 11 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [valueCoding] index: 11 valueCoding: type: Coding mustSupport: true choiceOf: value index: 12 slicing: slices: valueCoding: match: {} schema: {type: Coding, mustSupport: true, choiceOf: value, index: 12} value[x]: elements: system: {mustSupport: true, index: 13} code: {mustSupport: true, index: 14} normSizeCode: url: http://fhir.de/StructureDefinition/normgroesse short: Package size according to N-designation type: Extension mustSupport: true index: 15 elements: value: mustSupport: true choices: [] index: 17 packaging: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension type: Extension mustSupport: true index: 18 elements: value: mustSupport: true choices: [valueString] index: 20 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 20 valueString: type: string mustSupport: true choiceOf: value index: 21 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 21} manufacturingInstructions: url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension type: Extension mustSupport: true index: 22 elements: value: mustSupport: true choices: [valueString] index: 24 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [valueString] index: 24 valueString: type: string mustSupport: true choiceOf: value index: 25 slicing: slices: valueString: match: {} schema: {type: string, mustSupport: true, choiceOf: value, index: 25} type: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 26} class: profile kind: resource url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication base: http://hl7.org/fhir/StructureDefinition/Medication version: 1.0.3