description: null package_name: kbv.ita.erp derivation: constraint name: KBV_PR_ERP_Prescription type: MedicationRequest elements: performerType: {index: 111} category: {index: 82} insurance: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0'] index: 120 elements: reference: {mustSupport: true, index: 121} type: {index: 122} identifier: {index: 123} display: {index: 124} required: [reference] instantiatesCanonical: {index: 115} eventHistory: {index: 173} 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'} index: 5 security: {index: 6} tag: {index: 7} required: [profile] instantiatesUri: {index: 116} substitution: mustSupport: true index: 163 elements: allowed: short: Aut idem mustSupport: true choices: [allowedBoolean] index: 168 slicing: slices: allowedBoolean: match: {} schema: short: Aut idem mustSupport: true choices: [allowedBoolean] _required: true index: 168 min: 1 allowedBoolean: short: Aut idem type: boolean mustSupport: true choiceOf: allowed index: 169 slicing: slices: allowedBoolean: match: {} schema: {short: Aut idem, type: boolean, mustSupport: true, _required: true, choiceOf: allowed, index: 169} min: 1 reason: {index: 170} required: [allowed, allowedBoolean] detectedIssue: {index: 172} encounter: {index: 102} medication[x]: elements: reference: {mustSupport: true, index: 93} type: {index: 94} identifier: {index: 95} display: {index: 96} required: [reference] dispenseRequest: mustSupport: true index: 151 elements: initialFill: {index: 152} dispenseInterval: {index: 153} validityPeriod: {index: 154} numberOfRepeatsAllowed: {index: 155} 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: 156 elements: value: {short: Anzahl der verordneten Packungen, mustSupport: true, index: 157} unit: {index: 158} system: pattern: {type: Uri, value: 'http://unitsofmeasure.org'} mustSupport: true index: 159 code: pattern: {type: Code, value: '{Package}'} mustSupport: true index: 160 required: [value, system, code] expectedSupplyDuration: {index: 161} performer: {index: 162} required: [quantity] implicitRules: {index: 8} reported: choices: [] index: 86 reasonCode: {index: 113} statusReason: {index: 80} authoredOn: {short: Ausstellungsdatum, mustSupport: true, index: 104} 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: 125 elements: author: choices: [] index: 127 time: {index: 128} text: {short: Abgabehinweis, maxLength: 160, mustSupport: true, index: 129} 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 valueCoding: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 slicing: slices: valueCoding: match: {} schema: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} code: {mustSupport: true, index: 37} Unfallbetrieb: url: null mustSupport: true index: 38 elements: value: mustSupport: true choices: [] index: 40 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 42 Unfalltag: url: null mustSupport: true index: 43 elements: value: mustSupport: true choices: [] index: 45 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 47 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 valueCoding: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 slicing: slices: valueCoding: match: {} schema: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} code: {mustSupport: true, index: 37} Unfallbetrieb: match: {url: null} schema: mustSupport: true index: 38 elements: value: mustSupport: true choices: [] index: 40 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 42 Unfalltag: match: {url: null} schema: mustSupport: true index: 43 elements: value: mustSupport: true choices: [] index: 45 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 47 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: 48 extensions: Kennzeichen: url: null mustSupport: true _required: true index: 50 elements: value: mustSupport: true choices: [] index: 52 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 54 Nummerierung: url: null mustSupport: true index: 55 elements: value: mustSupport: true choices: [] index: 57 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 59 value[x]: elements: numerator: mustSupport: true index: 60 elements: value: {mustSupport: true, index: 61} denominator: mustSupport: true index: 62 elements: value: {mustSupport: true, index: 63} Zeitraum: url: null mustSupport: true index: 64 elements: value: mustSupport: true choices: [] index: 66 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 68 value[x]: elements: start: {mustSupport: true, index: 69} end: {mustSupport: true, index: 70} ID: url: null mustSupport: true index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 75 value[x]: elements: system: {mustSupport: true, index: 76} value: {mustSupport: true, index: 77} elements: extension: index: 49 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Kennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 50 elements: value: mustSupport: true choices: [] index: 52 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 54 Nummerierung: match: {url: null} schema: mustSupport: true index: 55 elements: value: mustSupport: true choices: [] index: 57 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 59 value[x]: elements: numerator: mustSupport: true index: 60 elements: value: {mustSupport: true, index: 61} denominator: mustSupport: true index: 62 elements: value: {mustSupport: true, index: 63} Zeitraum: match: {url: null} schema: mustSupport: true index: 64 elements: value: mustSupport: true choices: [] index: 66 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 68 value[x]: elements: start: {mustSupport: true, index: 69} end: {mustSupport: true, index: 70} ID: match: {url: null} schema: mustSupport: true index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 75 value[x]: elements: system: {mustSupport: true, index: 76} value: {mustSupport: true, index: 77} required: [extension] contained: {index: 11} requester: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0'] index: 105 elements: reference: {mustSupport: true, index: 106} type: {index: 107} identifier: {index: 108} display: {index: 109} required: [reference] supportingInformation: {index: 103} priority: {index: 83} status: pattern: {type: Code, value: active} mustSupport: true index: 79 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: 130 extensions: Dosierungskennzeichen: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag type: Extension mustSupport: true index: 132 elements: value: mustSupport: true choices: [] index: 134 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 136 elements: site: {index: 144} asNeeded: choices: [] index: 143 method: {index: 146} patientInstruction: {short: Gebrauchsanweisung einer Rezeptur, maxLength: 60, mustSupport: true, index: 140} maxDosePerLifetime: {index: 150} maxDosePerAdministration: {index: 149} route: {index: 145} extension: index: 131 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: 132 elements: value: mustSupport: true choices: [] index: 134 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 136 timing: {index: 141} additionalInstruction: {index: 139} sequence: {index: 137} maxDosePerPeriod: {index: 148} doseAndRate: {index: 147} text: {short: Dosieranweisung, maxLength: 60, mustSupport: true, index: 138} groupIdentifier: {index: 118} recorder: {index: 112} identifier: {index: 78} doNotPerform: {index: 84} intent: pattern: {type: Code, value: order} mustSupport: true index: 81 basedOn: {index: 117} priorPrescription: {index: 171} 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: 92 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: 92 min: 1 courseOfTherapyType: {index: 119} subject: type: Reference mustSupport: true refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0'] index: 97 elements: reference: {mustSupport: true, index: 98} type: {index: 99} identifier: {index: 100} display: {index: 101} required: [reference] performer: {index: 110} medication: mustSupport: true choices: [medicationReference] index: 91 slicing: slices: medicationReference: match: {} schema: mustSupport: true choices: [medicationReference] _required: true index: 91 min: 1 reasonReference: {index: 114} text: {index: 10} package_version: 1.1.0-PreRelease 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 valueCoding: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 slicing: slices: valueCoding: match: {} schema: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} code: {mustSupport: true, index: 37} Unfallbetrieb: url: null mustSupport: true index: 38 elements: value: mustSupport: true choices: [] index: 40 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 42 Unfalltag: url: null mustSupport: true index: 43 elements: value: mustSupport: true choices: [] index: 45 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 47 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 valueCoding: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 slicing: slices: valueCoding: match: {} schema: binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_ERP_Accident_Type'} mustSupport: true index: 35 elements: system: {mustSupport: true, index: 36} code: {mustSupport: true, index: 37} Unfallbetrieb: match: {url: null} schema: mustSupport: true index: 38 elements: value: mustSupport: true choices: [] index: 40 slicing: slices: valueString: match: {} schema: mustSupport: true choices: [] index: 42 Unfalltag: match: {url: null} schema: mustSupport: true index: 43 elements: value: mustSupport: true choices: [] index: 45 slicing: slices: valueDate: match: {} schema: mustSupport: true choices: [] _required: true index: 47 min: 1 required: [value] required: [extension] Mehrfachverordnung: url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription type: Extension mustSupport: true index: 48 extensions: Kennzeichen: url: null mustSupport: true _required: true index: 50 elements: value: mustSupport: true choices: [] index: 52 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 54 Nummerierung: url: null mustSupport: true index: 55 elements: value: mustSupport: true choices: [] index: 57 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 59 value[x]: elements: numerator: mustSupport: true index: 60 elements: value: {mustSupport: true, index: 61} denominator: mustSupport: true index: 62 elements: value: {mustSupport: true, index: 63} Zeitraum: url: null mustSupport: true index: 64 elements: value: mustSupport: true choices: [] index: 66 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 68 value[x]: elements: start: {mustSupport: true, index: 69} end: {mustSupport: true, index: 70} ID: url: null mustSupport: true index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 75 value[x]: elements: system: {mustSupport: true, index: 76} value: {mustSupport: true, index: 77} elements: extension: index: 49 slicing: rules: closed discriminator: - {path: url, type: value} min: 1 slices: Kennzeichen: match: {url: null} schema: mustSupport: true _required: true index: 50 elements: value: mustSupport: true choices: [] index: 52 slicing: slices: valueBoolean: match: {} schema: mustSupport: true choices: [] index: 54 Nummerierung: match: {url: null} schema: mustSupport: true index: 55 elements: value: mustSupport: true choices: [] index: 57 slicing: slices: valueRatio: match: {} schema: mustSupport: true choices: [] index: 59 value[x]: elements: numerator: mustSupport: true index: 60 elements: value: {mustSupport: true, index: 61} denominator: mustSupport: true index: 62 elements: value: {mustSupport: true, index: 63} Zeitraum: match: {url: null} schema: mustSupport: true index: 64 elements: value: mustSupport: true choices: [] index: 66 slicing: slices: valuePeriod: match: {} schema: mustSupport: true choices: [] index: 68 value[x]: elements: start: {mustSupport: true, index: 69} end: {mustSupport: true, index: 70} ID: match: {url: null} schema: mustSupport: true index: 71 elements: value: mustSupport: true choices: [] index: 73 slicing: slices: valueIdentifier: match: {} schema: mustSupport: true choices: [] index: 75 value[x]: elements: system: {mustSupport: true, index: 76} value: {mustSupport: true, index: 77} 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, requester, id, insurance, medication, meta, dispenseRequest, medicationReference]