description: null package_name: rs/kbv.ita.erp derivation: constraint name: KBV_PR_ERP_Prescription type: MedicationRequest elements: performerType: {index: 112} category: {index: 83} insurance: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0'] index: 121 elements: reference: {mustSupport: true, index: 122} type: {index: 123} identifier: {index: 124} display: {index: 125} required: [reference] instantiatesCanonical: {index: 116} eventHistory: {index: 174} meta: mustSupport: true index: 1 elements: versionId: {index: 2} lastUpdated: {index: 3} source: {index: 4} profile: pattern: {type: canonical, value: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0'} type: canonical index: 5 security: {index: 6} tag: {index: 7} required: [profile] instantiatesUri: {index: 117} substitution: mustSupport: true index: 164 elements: allowed: short: Aut idem mustSupport: true choices: [allowedBoolean] index: 169 slicing: slices: allowedBoolean: match: {} schema: short: Aut idem mustSupport: true choices: [allowedBoolean] _required: true index: 169 min: 1 allowedBoolean: short: Aut idem type: boolean mustSupport: true choiceOf: allowed index: 170 slicing: slices: allowedBoolean: match: {} schema: {short: Aut idem, type: boolean, mustSupport: true, _required: true, choiceOf: allowed, index: 170} min: 1 reason: {index: 171} required: [allowed, allowedBoolean] detectedIssue: {index: 173} encounter: {index: 103} medication[x]: elements: reference: {mustSupport: true, index: 94} type: {index: 95} identifier: {index: 96} display: {index: 97} required: [reference] dispenseRequest: mustSupport: true index: 152 elements: initialFill: {index: 153} dispenseInterval: {index: 154} validityPeriod: {index: 155} numberOfRepeatsAllowed: {index: 156} quantity: constraint: -erp-begrenzungValue: {human: Die Anzahl der verordneten Packungen darf aus maximal 6 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: value.toString().length() <= 6} mustSupport: true index: 157 elements: value: {short: Anzahl der verordneten Packungen, mustSupport: true, index: 158} unit: {index: 159} system: pattern: {type: uri, value: 'http://unitsofmeasure.org'} mustSupport: true type: uri index: 160 code: pattern: {type: code, value: '{Package}'} mustSupport: true type: code index: 161 required: [code, system, value] expectedSupplyDuration: {index: 162} performer: {index: 163} required: [quantity] implicitRules: {index: 8} reported: choices: [] index: 87 reasonCode: {index: 114} statusReason: {index: 81} authoredOn: {short: Ausstellungsdatum, mustSupport: true, index: 105} note: constraint: -erp-begrenzungText: {human: Der Abgabehinweise darf aus maximal 160 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: text.toString().length() <= 160} mustSupport: true index: 126 elements: author: choices: [] index: 128 time: {index: 129} text: {short: Abgabehinweis, maxLength: 500, mustSupport: true, index: 130} extension: array: true min: 3 index: 12 slicing: rules: closed discriminator: - {path: url, type: value} min: 3 slices: Zuzahlungsstatus: match: {url: null} schema: type: Extension mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment index: 13 elements: value: mustSupport: true choices: [] index: 15 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 17 value[x]: elements: system: {mustSupport: true, index: 18} code: {mustSupport: true, index: 19} Notdienstgebuehr: match: {url: null} schema: type: Extension mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee index: 20 elements: value: mustSupport: true choices: [] index: 22 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 24 BVG: match: {url: null} schema: type: Extension mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG index: 25 elements: value: mustSupport: true choices: [] index: 27 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 29 Unfallinformationen: match: {url: null} schema: type: Extension constraint: -erp-angabeUnfallbetrieb: {human: 'Die Ressource vom Typ MedicationRequest enthält keinen Namen des Unfallbetriebs, dieser ist aber Pflicht falls ein Unfallkennzeichen mit dem Wert "2" angegeben ist.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: (extension('Unfallkennzeichen').value as Coding).code = '2' implies extension('Unfallbetrieb').exists()} -erp-angabeUnfallbetriebVerbot: {human: 'Die Ressource vom Typ MedicationRequest enthält einen Namen des Unfallbetriebs, dieser darf aber nicht angegeben werden, falls ein Unfallkennzeichen mit dem Wert ungleich "2" angegeben ist.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: (extension('Unfallkennzeichen').value as Coding).code != '2' implies extension('Unfallbetrieb').exists().not()} -erp-angabeUnfalltag: {human: 'Unfalltag nicht vorhanden, aber Pflicht bei Unfall (Kode 1) oder Arbeitsunfall (Kode 2)', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: ((extension('Unfallkennzeichen').value as Coding).code = '1' or (extension('Unfallkennzeichen').value as Coding).code = '2') implies extension('Unfalltag').exists()} mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident index: 30 extensions: Unfallkennzeichen: url: null mustSupport: true _required: true index: 32 elements: value: mustSupport: true choices: [] index: 34 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 36 value[x]: elements: system: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} Unfallbetrieb: url: null mustSupport: true index: 39 elements: value: mustSupport: true choices: [] index: 41 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 43 Unfalltag: url: null mustSupport: true index: 44 elements: value: mustSupport: true choices: [] index: 46 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 48 min: 1 required: [value] elements: extension: index: 31 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Unfallkennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 32 elements: value: mustSupport: true choices: [] index: 34 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 36 value[x]: elements: system: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} Unfallbetrieb: match: {url: null} schema: mustSupport: true index: 39 elements: value: mustSupport: true choices: [] index: 41 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 43 Unfalltag: match: {url: null} schema: mustSupport: true index: 44 elements: value: mustSupport: true choices: [] index: 46 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 48 min: 1 required: [value] required: [extension] Mehrfachverordnung: match: {url: null} schema: type: Extension mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription index: 49 extensions: Kennzeichen: url: null mustSupport: true _required: true index: 51 elements: value: mustSupport: true choices: [] index: 53 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 55 Nummerierung: url: null mustSupport: true index: 56 elements: value: mustSupport: true choices: [] index: 58 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 60 value[x]: elements: numerator: mustSupport: true index: 61 elements: value: {mustSupport: true, index: 62} denominator: mustSupport: true index: 63 elements: value: {mustSupport: true, index: 64} Zeitraum: url: null mustSupport: true index: 65 elements: value: mustSupport: true choices: [] index: 67 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 69 value[x]: elements: start: {mustSupport: true, index: 70} end: {mustSupport: true, index: 71} ID: url: null mustSupport: true index: 72 elements: value: mustSupport: true choices: [] index: 74 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 76 value[x]: elements: system: {mustSupport: true, index: 77} value: {mustSupport: true, index: 78} elements: extension: index: 50 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Kennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 51 elements: value: mustSupport: true choices: [] index: 53 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 55 Nummerierung: match: {url: null} schema: mustSupport: true index: 56 elements: value: mustSupport: true choices: [] index: 58 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 60 value[x]: elements: numerator: mustSupport: true index: 61 elements: value: {mustSupport: true, index: 62} denominator: mustSupport: true index: 63 elements: value: {mustSupport: true, index: 64} Zeitraum: match: {url: null} schema: mustSupport: true index: 65 elements: value: mustSupport: true choices: [] index: 67 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 69 value[x]: elements: start: {mustSupport: true, index: 70} end: {mustSupport: true, index: 71} ID: match: {url: null} schema: mustSupport: true index: 72 elements: value: mustSupport: true choices: [] index: 74 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 76 value[x]: elements: system: {mustSupport: true, index: 77} value: {mustSupport: true, index: 78} required: [extension] contained: {index: 11} requester: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0'] index: 106 elements: reference: {mustSupport: true, index: 107} type: {index: 108} identifier: {index: 109} display: {index: 110} required: [reference] supportingInformation: {index: 104} priority: {index: 84} status: pattern: {type: code, value: active} mustSupport: true type: code index: 80 language: {index: 9} id: {mustSupport: true, index: 0} dosageInstruction: constraint: -erp-angabeDosierungKennzeichenTrue: {human: 'Wenn das Dosierungskennzeichen true ist, muss eine Dosieranweisung vorhanden sein.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: 'extension(''https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag'').exists().not() or ((extension(''https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag'').value as boolean)=true implies text.exists())'} -erp-angabeDosierungKennzeichenFalse: {human: 'Wenn das Dosierungskennzeichen false ist, darf keine Dosieranweisung vorhanden sein.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: 'extension(''https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag'').exists().not() or ((extension(''https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag'').value as boolean)=false implies text.exists().not())'} mustSupport: true index: 131 extensions: Dosierungskennzeichen: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag type: Extension mustSupport: true index: 133 elements: value: mustSupport: true choices: [] index: 135 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 137 elements: site: {index: 145} asNeeded: choices: [] index: 144 method: {index: 147} patientInstruction: {short: Gebrauchsanweisung einer Rezeptur, maxLength: 500, mustSupport: true, index: 141} maxDosePerLifetime: {index: 151} maxDosePerAdministration: {index: 150} route: {index: 146} extension: index: 132 slicing: rules: closed discriminator: - {path: url, type: value} min: 0 slices: Dosierungskennzeichen: match: {url: null} schema: type: Extension mustSupport: true url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag index: 133 elements: value: mustSupport: true choices: [] index: 135 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 137 timing: {index: 142} additionalInstruction: {index: 140} sequence: {index: 138} maxDosePerPeriod: {index: 149} doseAndRate: {index: 148} text: {short: Dosieranweisung, maxLength: 500, mustSupport: true, index: 139} groupIdentifier: {index: 119} recorder: {index: 113} identifier: {index: 79} doNotPerform: {index: 85} intent: pattern: {type: code, value: order} mustSupport: true type: code index: 82 basedOn: {index: 118} priorPrescription: {index: 172} medicationReference: type: Reference mustSupport: true choiceOf: medication refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0'] index: 93 slicing: slices: medicationReference: match: {} schema: type: Reference mustSupport: true choiceOf: medication refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0'] _required: true index: 93 min: 1 courseOfTherapyType: {index: 120} subject: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0'] index: 98 elements: reference: {mustSupport: true, index: 99} type: {index: 100} identifier: {index: 101} display: {index: 102} required: [reference] performer: {index: 111} medication: mustSupport: true choices: [medicationReference] index: 92 slicing: slices: medicationReference: match: {} schema: mustSupport: true choices: [medicationReference] _required: true index: 92 min: 1 reasonReference: {index: 115} text: {index: 10} package_version: 1.1.0 extensions: Zuzahlungsstatus: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment type: Extension mustSupport: true index: 13 elements: value: mustSupport: true choices: [] index: 15 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 17 value[x]: elements: system: {mustSupport: true, index: 18} code: {mustSupport: true, index: 19} Notdienstgebuehr: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee type: Extension mustSupport: true index: 20 elements: value: mustSupport: true choices: [] index: 22 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 24 BVG: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_BVG type: Extension mustSupport: true index: 25 elements: value: mustSupport: true choices: [] index: 27 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 29 Unfallinformationen: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident type: Extension constraint: -erp-angabeUnfallbetrieb: {human: 'Die Ressource vom Typ MedicationRequest enthält keinen Namen des Unfallbetriebs, dieser ist aber Pflicht falls ein Unfallkennzeichen mit dem Wert "2" angegeben ist.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: (extension('Unfallkennzeichen').value as Coding).code = '2' implies extension('Unfallbetrieb').exists()} -erp-angabeUnfallbetriebVerbot: {human: 'Die Ressource vom Typ MedicationRequest enthält einen Namen des Unfallbetriebs, dieser darf aber nicht angegeben werden, falls ein Unfallkennzeichen mit dem Wert ungleich "2" angegeben ist.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: (extension('Unfallkennzeichen').value as Coding).code != '2' implies extension('Unfallbetrieb').exists().not()} -erp-angabeUnfalltag: {human: 'Unfalltag nicht vorhanden, aber Pflicht bei Unfall (Kode 1) oder Arbeitsunfall (Kode 2)', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription', severity: error, expression: ((extension('Unfallkennzeichen').value as Coding).code = '1' or (extension('Unfallkennzeichen').value as Coding).code = '2') implies extension('Unfalltag').exists()} mustSupport: true index: 30 extensions: Unfallkennzeichen: url: null mustSupport: true _required: true index: 32 elements: value: mustSupport: true choices: [] index: 34 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 36 value[x]: elements: system: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} Unfallbetrieb: url: null mustSupport: true index: 39 elements: value: mustSupport: true choices: [] index: 41 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 43 Unfalltag: url: null mustSupport: true index: 44 elements: value: mustSupport: true choices: [] index: 46 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 48 min: 1 required: [value] elements: extension: index: 31 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Unfallkennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 32 elements: value: mustSupport: true choices: [] index: 34 slicing: slices: valueCoding: match: {} schema: mustSupport: true choices: [] index: 36 value[x]: elements: system: {mustSupport: true, index: 37} code: {mustSupport: true, index: 38} Unfallbetrieb: match: {url: null} schema: mustSupport: true index: 39 elements: value: mustSupport: true choices: [] index: 41 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 43 Unfalltag: match: {url: null} schema: mustSupport: true index: 44 elements: value: mustSupport: true choices: [] index: 46 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 48 min: 1 required: [value] required: [extension] Mehrfachverordnung: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription type: Extension mustSupport: true index: 49 extensions: Kennzeichen: url: null mustSupport: true _required: true index: 51 elements: value: mustSupport: true choices: [] index: 53 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 55 Nummerierung: url: null mustSupport: true index: 56 elements: value: mustSupport: true choices: [] index: 58 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 60 value[x]: elements: numerator: mustSupport: true index: 61 elements: value: {mustSupport: true, index: 62} denominator: mustSupport: true index: 63 elements: value: {mustSupport: true, index: 64} Zeitraum: url: null mustSupport: true index: 65 elements: value: mustSupport: true choices: [] index: 67 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 69 value[x]: elements: start: {mustSupport: true, index: 70} end: {mustSupport: true, index: 71} ID: url: null mustSupport: true index: 72 elements: value: mustSupport: true choices: [] index: 74 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 76 value[x]: elements: system: {mustSupport: true, index: 77} value: {mustSupport: true, index: 78} elements: extension: index: 50 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Kennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 51 elements: value: mustSupport: true choices: [] index: 53 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 55 Nummerierung: match: {url: null} schema: mustSupport: true index: 56 elements: value: mustSupport: true choices: [] index: 58 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 60 value[x]: elements: numerator: mustSupport: true index: 61 elements: value: {mustSupport: true, index: 62} denominator: mustSupport: true index: 63 elements: value: {mustSupport: true, index: 64} Zeitraum: match: {url: null} schema: mustSupport: true index: 65 elements: value: mustSupport: true choices: [] index: 67 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 69 value[x]: elements: start: {mustSupport: true, index: 70} end: {mustSupport: true, index: 71} ID: match: {url: null} schema: mustSupport: true index: 72 elements: value: mustSupport: true choices: [] index: 74 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 76 value[x]: elements: system: {mustSupport: true, index: 77} value: {mustSupport: true, index: 78} required: [extension] class: profile kind: resource url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 1.1.0 required: [authoredOn, dispenseRequest, id, insurance, medication, medicationReference, meta, requester]