TIFlow - Datenaustausch BfArM Webdienst
Version 2.0.0-ballot.1 - ci-build

## Resource Profile: E-T-Rezept Medication Request

Official URL: https://gematik.de/fhir/tiflow-bfarm/StructureDefinition/erp-tprescription-medication-request | Version: 2.0.0-ballot.1
Draft as of 2026-05-26 | Computable Name: ERP_TPrescription_MedicationRequest

Informationen zu einer Verordnung, die ein Arzt im E-T-Rezept angegeben hat.

## Mapping

Folgende Tabelle gibt eine grobe Darstellung des Mappings für dieses Profil:

Titel: E-T-Rezept Structure Map for MedicationRequest

Beschreibung: Mapping-Anweisungen zur Transformation von KBV MedicationRequest zu BfArM T-Prescription MedicationRequest

Quelle (Eingangsdaten) | Ziel (Ausgabedaten) | Transformation & Beschreibung
--- | --- | ---
`kbvMedicationRequest.status` | `bfarmMedicationRequest.status` | Setzt den Status auf ‘completed’ für den digitalen Durchschlag (Verschreibung ist bereits abgeschlossen) → setzt Wert ‘completed’
`kbvMedicationRequest.intent` | `bfarmMedicationRequest.intent` | Setzt den Intent auf ‘order’ entsprechend der BfArM-Spezifikation für T-Prescription → setzt Wert ‘order’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic]` | `bfarmMedicationRequest.extension` | Mappt T-Rezept spezifische Extensions vom KBV- zum BfArM-Format
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic]` | `bfarmMedicationRequest.extension.url` | Kopiert teratogene Extensions für T-Rezept Kennzeichnung → setzt URL ‘https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [Off-Label]` | `bfarmMedicationRequest.extension.extension` | Mappt Off-Label Extension → erstellt neues Extension
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [Off-Label]` | `bfarmMedicationRequest.extension.url` | Mappt Off-Label Extension → setzt Wert ‘off-label’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [Off-Label].value` | `bfarmMedicationRequest.extension.extension.value` | Übernimmt den Off-Label Booleschen Wert → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [GebaerfaehigeFrau]` | `bfarmMedicationRequest.extension.extension` | Mappt GebaerfaehigeFrau Extension zu childbearing-potential → erstellt neues Extension
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [GebaerfaehigeFrau]` | `bfarmMedicationRequest.extension.url` | Mappt GebaerfaehigeFrau Extension zu childbearing-potential → setzt Wert ‘childbearing-potential’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [GebaerfaehigeFrau].value` | `bfarmMedicationRequest.extension.extension.value` | Übernimmt den Booleschen Wert für childbearing-potential → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [EinhaltungSicherheitsmassnahmen]` | `bfarmMedicationRequest.extension.extension` | Mappt EinhaltungSicherheitsmassnahmen Extension zu security-compliance → erstellt neues Extension
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [EinhaltungSicherheitsmassnahmen]` | `bfarmMedicationRequest.extension.url` | Mappt EinhaltungSicherheitsmassnahmen Extension zu security-compliance → setzt Wert ‘security-compliance’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [EinhaltungSicherheitsmassnahmen].value` | `bfarmMedicationRequest.extension.extension.value` | Übernimmt den Booleschen Wert für security-compliance → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [AushaendigungInformationsmaterialien]` | `bfarmMedicationRequest.extension.extension` | Mappt AushaendigungInformationsmaterialien Extension zu hand-out-information-material → erstellt neues Extension
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [AushaendigungInformationsmaterialien]` | `bfarmMedicationRequest.extension.url` | Mappt AushaendigungInformationsmaterialien Extension zu hand-out-information-material → setzt Wert ‘hand-out-information-material’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [AushaendigungInformationsmaterialien].value` | `bfarmMedicationRequest.extension.extension.value` | Übernimmt den Booleschen Wert für hand-out-information-material → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [ErklaerungSachkenntnis]` | `bfarmMedicationRequest.extension.extension` | Mappt ErklaerungSachkenntnis Extension zu declaration-of-expertise → erstellt neues Extension
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [ErklaerungSachkenntnis]` | `bfarmMedicationRequest.extension.url` | Mappt ErklaerungSachkenntnis Extension zu declaration-of-expertise → setzt Wert ‘declaration-of-expertise’
`kbvMedicationRequest.extension [KBV_EX_ERP_Teratogenic].extension [ErklaerungSachkenntnis].value` | `bfarmMedicationRequest.extension.extension.value` | Übernimmt den Booleschen Wert für declaration-of-expertise → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [GeneratedDosageInstructionsMeta]` | `bfarmMedicationRequest.extension` | Kopiert Dosage Metadata Extension → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.extension [extension-MedicationRequest.renderedDosageInstruction]` | `bfarmMedicationRequest.extension` | Kopiert RenderedDosageText → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject` | Entfernt Patientenbezug durch data-absent-reason Extension für Datenschutz im digitalen Durchschlag
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system` | Erstellt data-absent-reason Extension für Subject Identifier
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.value` | Erstellt data-absent-reason Extension für Subject Identifier
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension` | Erstellt data-absent-reason Extension für Subject Identifier
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension` | Erstellt data-absent-reason Extension für Subject Identifier
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension.url` | Setzt data-absent-reason auf ‘not-permitted’ um Patientendaten zu anonymisieren → setzt URL ‘http://hl7.org/fhir/StructureDefinition/data-absent-reason’
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension.value` | Setzt data-absent-reason auf ‘not-permitted’ um Patientendaten zu anonymisieren
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension.url` | Setzt data-absent-reason auf ‘not-permitted’ um Patientendaten zu anonymisieren → setzt URL ‘http://hl7.org/fhir/StructureDefinition/data-absent-reason’
`kbvMedicationRequest.subject` | `bfarmMedicationRequest.subject.identifier.system.extension.value` | Setzt data-absent-reason auf ‘not-permitted’ um Patientendaten zu anonymisieren
`kbvMedicationRequest.authoredOn` | `bfarmMedicationRequest.authoredOn` | Übernimmt das Verschreibungsdatum unverändert vom KBV MedicationRequest → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.dosageInstruction` | `bfarmMedicationRequest.dosageInstruction` | Kopiert die Dosierungsanweisungen vollständig für den digitalen Durchschlag → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.dispenseRequest` | `bfarmMedicationRequest.dispenseRequest` | Übernimmt Abgabeanweisungen (Menge, Wiederholungen) aus der ursprünglichen Verschreibung → übernimmt Wert aus Quellvariable
`kbvMedicationRequest.medication` | `bfarmMedicationRequest.medication` | Transformiert die Medication-Referenz zu urn:uuid Format → erstellt neues Reference

Usages:

- Use this Profile: Digitaler Durchschlag T-Rezept
- Examples for this Profile: MedicationRequest/ExampleMedicationRequest-T

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* | EPAMedicationRequest | Ordering of medication for patient or group Constraints: dom-2, dom-3, dom-4, dom-5, dom-6
meta | S Σ | 0..1 | Meta | Metadata about the resource
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:multiplePrescription | S | 0..1 | (Complex) | MultiplePrescription URL: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:indicator |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "indicator"
value[x] | S | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "counter"
value[x] | S | 1..1 | Ratio | Value of extension
numerator | S Σ C | 1..1 | Quantity | Numerator value Constraints: qty-3
value | S Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | S Σ C | 1..1 | Quantity | Denominator value Constraints: qty-3
value | S Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "period"
value[x] | S C | 1..1 | Period | Value of extension Constraints: -limitationDateStart, -limitationDateEnd
start | S Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | S Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "id"
value[x] | S | 1..1 | Identifier | Value of extension
system | S Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | S Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
extension:isBvg | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension"
value[x] | S | 1..1 | boolean | BVG
extension:isSer | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension"
value[x] | S | 1..1 | boolean | SER
extension:prescriberID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
value | Σ | 1..1 | string | Verschreiber-ID Example General: 123456
extension:patientID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
extension:narcotics | S | 0..1 | (Complex) | Betäubungsmittel (BtM) URL: https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:narcotics-markings | S | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "narcotics-markings"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueCoding | S | 0..1 | Coding | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL (required) Required Pattern: At least the following
system | S Σ | 0..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_NARCOTIC_LABEL
code | S Σ | 0..1 | code | Kennzeichen nach § 9 Abs. 1 Nr. 6 BtMVV
extension:additional-information-substitutes | S | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "additional-information-substitutes"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueString | S | 0..1 | string | Ergänzende Angaben zu Substitutionsmittel
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension"
extension:teratogenic | S | 0..1 | (Complex) | T-Rezept URL: https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension
Slices for extension | S | 5..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:off-label | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "off-label"
value[x] | S | 0..1 | boolean | Off-Label
extension:childbearing-potential | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "childbearing-potential"
value[x] | S | 0..1 | boolean | Gebärfähige Frau
extension:security-compliance | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "security-compliance"
value[x] | S | 0..1 | boolean | Einhaltung Sicherheitsmaßnahmen
extension:hand-out-information-material | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "hand-out-information-material"
value[x] | S | 0..1 | boolean | Aushändigung Informationsmaterialien
extension:declaration-of-expertise | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "declaration-of-expertise"
value[x] | S | 0..1 | boolean | Erklärung Sachkenntnis
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension"
extension:renderedDosageInstruction | S | 0..1 | markdown | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
status | ?!S Σ | 1..1 | code | Status of Medication Request Binding: TI Medication Request ValueSet (required) Fixed Value: completed
intent | ?!S Σ | 1..1 | code | filler-order Binding: medicationRequest Intent (required): The kind of medication order. Fixed Value: order
medication[x] | S Σ | 1..1 | Reference(Medication) | Medication to be taken
subject | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for Constraints: ref-1
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
authoredOn | S Σ | 1..1 | dateTime | Issue Date
dosageInstruction | S | 0..* | DosageDgMP | Hier werden Informationen zur Dosierung angegeben.
dispenseRequest | S | 0..1 | BackboneElement | Medication supply authorization
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
quantity | S C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: qty-3, sqty-1
value | S Σ | 1..1 | decimal | Number of Prescribed Packages
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org
code | S Σ | 0..1 | code | Coded form of the unit
expectedSupplyDuration | S C | 0..1 | Duration | Number of days supply per dispense Constraints: drt-1, qty-3
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationRequest.extension:narcotics.​extension:narcotics-markings.​value[x]:valueCoding | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL | Not State | Unknown
MedicationRequest.status | Base | required | TI Medication Request ValueSet | 📦1.0.7 | TI Terminology v1.0
MedicationRequest.intent | Base | required | Medication request intent | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
-limitationDateEnd | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `end.exists().not() or end.toString().length()=10`
-limitationDateStart | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `start.toString().length()=10`
dom-2 | error | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drt-1 | error | MedicationRequest.dispenseRequest.expectedSupplyDuration | There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. | `code.exists() implies ((system = %ucum) and value.exists())`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | MedicationRequest.extension:multiplePrescription.extension:counter.value[x].numerator, MedicationRequest.extension:multiplePrescription.extension:counter.value[x].denominator, MedicationRequest.dispenseRequest.quantity, MedicationRequest.dispenseRequest.expectedSupplyDuration | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
ref-1 | error | MedicationRequest.subject | SHALL have a contained resource if a local reference is provided | `reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))`
sqty-1 | error | MedicationRequest.dispenseRequest.quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from EPAMedicationRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  |  | EPAMedicationRequest |
extension | S | 0..* | Extension | Extension
identifier |  | 0..0 |  | External ids for this request
Slices for identifier |  |  |  | Content/Rules for all slices
identifier:RxPrescriptionProcessIdentifier |  | 0..0 |  | External ids for this request
identifier:RxOriginatorProcessIdentifier |  | 0..0 |  | External ids for this request
status |  | 1..1 | code | Status of Medication Request Fixed Value: completed
statusReason |  | 0..0 |  | Reason for current status
intent |  | 1..1 | code | filler-order Fixed Value: order
category |  | 0..0 |  | Type of medication usage
priority |  | 0..0 |  | routine | urgent | asap | stat
doNotPerform |  | 0..0 |  | True if request is prohibiting action
reported[x] |  | 0..0 |  | Reported rather than primary record
subject |  |  |  |
reference |  | 0..0 |  | Literal reference, Relative, internal or absolute URL
type |  | 0..0 |  | Type the reference refers to (e.g. "Patient")
display |  | 0..0 |  | Text alternative for the resource
encounter |  | 0..0 |  | Encounter created as part of encounter/admission/stay
supportingInformation |  | 0..0 |  | Information to support ordering of the medication
requester |  | 0..0 |  | Who/What requested the Request
performer |  | 0..0 |  | Intended performer of administration
performerType |  | 0..0 |  | Desired kind of performer of the medication administration
recorder |  | 0..0 |  | Person who entered the request
reasonCode |  | 0..0 |  | Reason or indication for ordering or not ordering the medication
reasonReference |  | 0..0 |  | Condition or observation that supports why the prescription is being written
instantiatesCanonical |  | 0..0 |  | Instantiates FHIR protocol or definition
instantiatesUri |  | 0..0 |  | Instantiates external protocol or definition
basedOn |  | 0..0 |  | What request fulfills
groupIdentifier |  | 0..0 |  | Composite request this is part of
courseOfTherapyType |  | 0..0 |  | Overall pattern of medication administration
insurance |  | 0..0 |  | Associated insurance coverage
note |  | 0..0 |  | Information about the prescription
dispenseRequest |  |  |  |
initialFill |  | 0..0 |  | First fill details
dispenseInterval |  | 0..0 |  | Minimum period of time between dispenses
validityPeriod |  | 0..0 |  | Time period supply is authorized for
numberOfRepeatsAllowed |  | 0..0 |  | Number of refills authorized
performer |  | 0..0 |  | Intended dispenser
substitution |  | 0..0 |  | Any restrictions on medication substitution
priorPrescription |  | 0..0 |  | An order/prescription that is being replaced
detectedIssue |  | 0..0 |  | Clinical Issue with action
eventHistory |  | 0..0 |  | A list of events of interest in the lifecycle
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* | EPAMedicationRequest | Ordering of medication for patient or group Constraints: dom-2, dom-3, dom-4, dom-5, dom-6
id | Σ | 0..1 | id | Logical id of this artifact
meta | S Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:multiplePrescription | S | 0..1 | (Complex) | MultiplePrescription URL: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "indicator"
value[x] | S | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "counter"
value[x] | S | 1..1 | Ratio | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | S Σ C | 1..1 | Quantity | Numerator value Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | S Σ C | 1..1 | Quantity | Denominator value Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "period"
value[x] | S C | 1..1 | Period | Value of extension Constraints: -limitationDateStart, -limitationDateEnd
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | S Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "id"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | S Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
extension:isBvg | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension"
value[x] | S | 1..1 | boolean | BVG
extension:isSer | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension"
value[x] | S | 1..1 | boolean | SER
extension:prescriberID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Verschreiber-ID Example General: 123456
extension:patientID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
extension:narcotics | S | 0..1 | (Complex) | Betäubungsmittel (BtM) URL: https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:narcotics-markings | S | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "narcotics-markings"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueCoding | S | 0..1 | Coding | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_NARCOTIC_LABEL
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Kennzeichen nach § 9 Abs. 1 Nr. 6 BtMVV
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
extension:additional-information-substitutes | S | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "additional-information-substitutes"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueString | S | 0..1 | string | Ergänzende Angaben zu Substitutionsmittel
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension"
extension:teratogenic | S | 0..1 | (Complex) | T-Rezept URL: https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 5..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:off-label | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "off-label"
value[x] | S | 0..1 | boolean | Off-Label
extension:childbearing-potential | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "childbearing-potential"
value[x] | S | 0..1 | boolean | Gebärfähige Frau
extension:security-compliance | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "security-compliance"
value[x] | S | 0..1 | boolean | Einhaltung Sicherheitsmaßnahmen
extension:hand-out-information-material | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "hand-out-information-material"
value[x] | S | 0..1 | boolean | Aushändigung Informationsmaterialien
extension:declaration-of-expertise | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "declaration-of-expertise"
value[x] | S | 0..1 | boolean | Erklärung Sachkenntnis
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension"
extension:renderedDosageInstruction | S | 0..1 | markdown | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
status | ?!S Σ | 1..1 | code | Status of Medication Request Binding: TI Medication Request ValueSet (required) Fixed Value: completed
intent | ?!S Σ | 1..1 | code | filler-order Binding: medicationRequest Intent (required): The kind of medication order. Fixed Value: order
medication[x] | S Σ | 1..1 | Reference(Medication) | Medication to be taken
subject | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for Constraints: ref-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
authoredOn | S Σ | 1..1 | dateTime | Issue Date
dosageInstruction | S | 0..* | DosageDgMP | Hier werden Informationen zur Dosierung angegeben.
dispenseRequest | S | 0..1 | BackboneElement | Medication supply authorization
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
quantity | S C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: qty-3, sqty-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Number of Prescribed Packages
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org
code | S Σ | 0..1 | code | Coded form of the unit
expectedSupplyDuration | S C | 0..1 | Duration | Number of days supply per dispense Constraints: drt-1, qty-3
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationRequest.meta.​security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
MedicationRequest.meta.​tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
MedicationRequest.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MedicationRequest.extension:narcotics.​extension:narcotics-markings.​value[x]:valueCoding | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL | Not State | Unknown
MedicationRequest.status | Base | required | TI Medication Request ValueSet | 📦1.0.7 | TI Terminology v1.0
MedicationRequest.intent | Base | required | Medication request intent | 📍4.0.1 | FHIR Std.
MedicationRequest.basedOn.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationRequest.substitution.​reason | Base | example | SubstanceAdminSubstitutionReason | 📦3.0.0 | THO v7.1

#### Constraints

Id | Grade | Path(s) | Description | Expression
-limitationDateEnd | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `end.exists().not() or end.toString().length()=10`
-limitationDateStart | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `start.toString().length()=10`
dom-2 | error | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drt-1 | error | MedicationRequest.dispenseRequest.initialFill.duration, MedicationRequest.dispenseRequest.expectedSupplyDuration | There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. | `code.exists() implies ((system = %ucum) and value.exists())`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | MedicationRequest.extension:multiplePrescription.extension:counter.value[x].numerator, MedicationRequest.extension:multiplePrescription.extension:counter.value[x].denominator, MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.initialFill.duration, MedicationRequest.dispenseRequest.quantity, MedicationRequest.dispenseRequest.expectedSupplyDuration | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
ref-1 | error | MedicationRequest.subject | SHALL have a contained resource if a local reference is provided | `reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))`
sqty-1 | error | MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from EPAMedicationRequest

Summary

Must-Support: 1 element
Fixed: 2 elements
Prohibited: 35 elements

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* | EPAMedicationRequest | Ordering of medication for patient or group Constraints: dom-2, dom-3, dom-4, dom-5, dom-6
meta | S Σ | 0..1 | Meta | Metadata about the resource
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:multiplePrescription | S | 0..1 | (Complex) | MultiplePrescription URL: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
Slices for extension |  |  |  | Content/Rules for all slices
extension:indicator |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "indicator"
value[x] | S | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "counter"
value[x] | S | 1..1 | Ratio | Value of extension
numerator | S Σ C | 1..1 | Quantity | Numerator value Constraints: qty-3
value | S Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | S Σ C | 1..1 | Quantity | Denominator value Constraints: qty-3
value | S Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "period"
value[x] | S C | 1..1 | Period | Value of extension Constraints: -limitationDateStart, -limitationDateEnd
start | S Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | S Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "id"
value[x] | S | 1..1 | Identifier | Value of extension
system | S Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | S Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
extension:isBvg | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension"
value[x] | S | 1..1 | boolean | BVG
extension:isSer | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension"
value[x] | S | 1..1 | boolean | SER
extension:prescriberID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
value | Σ | 1..1 | string | Verschreiber-ID Example General: 123456
extension:patientID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
extension:narcotics | S | 0..1 | (Complex) | Betäubungsmittel (BtM) URL: https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:narcotics-markings | S | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "narcotics-markings"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueCoding | S | 0..1 | Coding | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL (required) Required Pattern: At least the following
system | S Σ | 0..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_NARCOTIC_LABEL
code | S Σ | 0..1 | code | Kennzeichen nach § 9 Abs. 1 Nr. 6 BtMVV
extension:additional-information-substitutes | S | 0..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "additional-information-substitutes"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueString | S | 0..1 | string | Ergänzende Angaben zu Substitutionsmittel
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension"
extension:teratogenic | S | 0..1 | (Complex) | T-Rezept URL: https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension
Slices for extension | S | 5..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:off-label | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "off-label"
value[x] | S | 0..1 | boolean | Off-Label
extension:childbearing-potential | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "childbearing-potential"
value[x] | S | 0..1 | boolean | Gebärfähige Frau
extension:security-compliance | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "security-compliance"
value[x] | S | 0..1 | boolean | Einhaltung Sicherheitsmaßnahmen
extension:hand-out-information-material | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "hand-out-information-material"
value[x] | S | 0..1 | boolean | Aushändigung Informationsmaterialien
extension:declaration-of-expertise | S | 1..1 | Extension | Extension
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "declaration-of-expertise"
value[x] | S | 0..1 | boolean | Erklärung Sachkenntnis
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension"
extension:renderedDosageInstruction | S | 0..1 | markdown | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
status | ?!S Σ | 1..1 | code | Status of Medication Request Binding: TI Medication Request ValueSet (required) Fixed Value: completed
intent | ?!S Σ | 1..1 | code | filler-order Binding: medicationRequest Intent (required): The kind of medication order. Fixed Value: order
medication[x] | S Σ | 1..1 | Reference(Medication) | Medication to be taken
subject | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for Constraints: ref-1
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
authoredOn | S Σ | 1..1 | dateTime | Issue Date
dosageInstruction | S | 0..* | DosageDgMP | Hier werden Informationen zur Dosierung angegeben.
dispenseRequest | S | 0..1 | BackboneElement | Medication supply authorization
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
quantity | S C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: qty-3, sqty-1
value | S Σ | 1..1 | decimal | Number of Prescribed Packages
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org
code | S Σ | 0..1 | code | Coded form of the unit
expectedSupplyDuration | S C | 0..1 | Duration | Number of days supply per dispense Constraints: drt-1, qty-3
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationRequest.extension:narcotics.​extension:narcotics-markings.​value[x]:valueCoding | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL | Not State | Unknown
MedicationRequest.status | Base | required | TI Medication Request ValueSet | 📦1.0.7 | TI Terminology v1.0
MedicationRequest.intent | Base | required | Medication request intent | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
-limitationDateEnd | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `end.exists().not() or end.toString().length()=10`
-limitationDateStart | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `start.toString().length()=10`
dom-2 | error | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drt-1 | error | MedicationRequest.dispenseRequest.expectedSupplyDuration | There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. | `code.exists() implies ((system = %ucum) and value.exists())`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | MedicationRequest.extension:multiplePrescription.extension:counter.value[x].numerator, MedicationRequest.extension:multiplePrescription.extension:counter.value[x].denominator, MedicationRequest.dispenseRequest.quantity, MedicationRequest.dispenseRequest.expectedSupplyDuration | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
ref-1 | error | MedicationRequest.subject | SHALL have a contained resource if a local reference is provided | `reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))`
sqty-1 | error | MedicationRequest.dispenseRequest.quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

Differential View

This structure is derived from EPAMedicationRequest

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  |  | EPAMedicationRequest |
extension | S | 0..* | Extension | Extension
identifier |  | 0..0 |  | External ids for this request
Slices for identifier |  |  |  | Content/Rules for all slices
identifier:RxPrescriptionProcessIdentifier |  | 0..0 |  | External ids for this request
identifier:RxOriginatorProcessIdentifier |  | 0..0 |  | External ids for this request
status |  | 1..1 | code | Status of Medication Request Fixed Value: completed
statusReason |  | 0..0 |  | Reason for current status
intent |  | 1..1 | code | filler-order Fixed Value: order
category |  | 0..0 |  | Type of medication usage
priority |  | 0..0 |  | routine | urgent | asap | stat
doNotPerform |  | 0..0 |  | True if request is prohibiting action
reported[x] |  | 0..0 |  | Reported rather than primary record
subject |  |  |  |
reference |  | 0..0 |  | Literal reference, Relative, internal or absolute URL
type |  | 0..0 |  | Type the reference refers to (e.g. "Patient")
display |  | 0..0 |  | Text alternative for the resource
encounter |  | 0..0 |  | Encounter created as part of encounter/admission/stay
supportingInformation |  | 0..0 |  | Information to support ordering of the medication
requester |  | 0..0 |  | Who/What requested the Request
performer |  | 0..0 |  | Intended performer of administration
performerType |  | 0..0 |  | Desired kind of performer of the medication administration
recorder |  | 0..0 |  | Person who entered the request
reasonCode |  | 0..0 |  | Reason or indication for ordering or not ordering the medication
reasonReference |  | 0..0 |  | Condition or observation that supports why the prescription is being written
instantiatesCanonical |  | 0..0 |  | Instantiates FHIR protocol or definition
instantiatesUri |  | 0..0 |  | Instantiates external protocol or definition
basedOn |  | 0..0 |  | What request fulfills
groupIdentifier |  | 0..0 |  | Composite request this is part of
courseOfTherapyType |  | 0..0 |  | Overall pattern of medication administration
insurance |  | 0..0 |  | Associated insurance coverage
note |  | 0..0 |  | Information about the prescription
dispenseRequest |  |  |  |
initialFill |  | 0..0 |  | First fill details
dispenseInterval |  | 0..0 |  | Minimum period of time between dispenses
validityPeriod |  | 0..0 |  | Time period supply is authorized for
numberOfRepeatsAllowed |  | 0..0 |  | Number of refills authorized
performer |  | 0..0 |  | Intended dispenser
substitution |  | 0..0 |  | Any restrictions on medication substitution
priorPrescription |  | 0..0 |  | An order/prescription that is being replaced
detectedIssue |  | 0..0 |  | Clinical Issue with action
eventHistory |  | 0..0 |  | A list of events of interest in the lifecycle
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
MedicationRequest |  | 0..* | EPAMedicationRequest | Ordering of medication for patient or group Constraints: dom-2, dom-3, dom-4, dom-5, dom-6
id | Σ | 0..1 | id | Logical id of this artifact
meta | S Σ | 0..1 | Meta | Metadata about the resource
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
versionId | S Σ | 0..1 | id | Version specific identifier
lastUpdated | S Σ | 0..1 | instant | When the resource version last changed
source | Σ | 0..1 | uri | Identifies where the resource comes from
profile | Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to
security | Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
tag | Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Open by value:url
extension:multiplePrescription | S | 0..1 | (Complex) | MultiplePrescription URL: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:indicator |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "indicator"
value[x] | S | 1..1 | boolean | Multiple Prescription Indicator
extension:counter |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "counter"
value[x] | S | 1..1 | Ratio | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
numerator | S Σ C | 1..1 | Quantity | Numerator value Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Multiple Prescription Counter
denominator | S Σ C | 1..1 | Quantity | Denominator value Constraints: qty-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Denominator of Multiple Prescription Series
extension:period |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "period"
value[x] | S C | 1..1 | Period | Value of extension Constraints: -limitationDateStart, -limitationDateEnd
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 1..1 | dateTime | Start Date of the Prescription Redemption Period
end | S Σ C | 0..1 | dateTime | End Date of the Prescription Redemption Period
extension:id |  | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "id"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Specification as UUID Fixed Value: urn:ietf:rfc:3986
value | S Σ | 0..1 | string | Multiple Prescription ID Example General: 123456
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension"
extension:isBvg | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension"
value[x] | S | 1..1 | boolean | BVG
extension:isSer | S | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension"
value[x] | S | 1..1 | boolean | SER
extension:prescriberID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Verschreiber-ID Example General: 123456
extension:patientID |  | 0..1 | (Complex) | Extension URL: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension"
value[x] | S | 1..1 | Identifier | Value of extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient
value | Σ | 1..1 | string | Patienten-ID Example General: 123456
extension:narcotics | S | 0..1 | (Complex) | Betäubungsmittel (BtM) URL: https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 0..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:narcotics-markings | S | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "narcotics-markings"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueCoding | S | 0..1 | Coding | Value of extension Binding: https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL (required) Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
system | S Σ | 0..1 | uri | Identity of the terminology system Fixed Value: https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_NARCOTIC_LABEL
version | Σ | 0..1 | string | Version of the system - if relevant
code | S Σ | 0..1 | code | Kennzeichen nach § 9 Abs. 1 Nr. 6 BtMVV
display | Σ | 0..1 | string | Representation defined by the system
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user
extension:additional-information-substitutes | S | 0..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "additional-information-substitutes"
Slices for value[x] | S | 0..1 |  | Value of extension Slice: Unordered, Open by type:$this
valueBase64Binary |  |  | base64Binary |
valueBoolean |  |  | boolean |
valueCanonical |  |  | canonical(Any) |
valueCode |  |  | code |
valueDate |  |  | date |
valueDateTime |  |  | dateTime |
valueDecimal |  |  | decimal |
valueId |  |  | id |
valueInstant |  |  | instant |
valueInteger |  |  | integer |
valueMarkdown |  |  | markdown |
valueOid |  |  | oid |
valuePositiveInt |  |  | positiveInt |
valueString |  |  | string |
valueTime |  |  | time |
valueUnsignedInt |  |  | unsignedInt |
valueUri |  |  | uri |
valueUrl |  |  | url |
valueUuid |  |  | uuid |
valueAddress |  |  | Address |
valueAge |  |  | Age |
valueAnnotation |  |  | Annotation |
valueAttachment |  |  | Attachment |
valueCodeableConcept |  |  | CodeableConcept |
valueCoding |  |  | Coding |
valueContactPoint |  |  | ContactPoint |
valueCount |  |  | Count |
valueDistance |  |  | Distance |
valueDuration |  |  | Duration |
valueHumanName |  |  | HumanName |
valueIdentifier |  |  | Identifier |
valueMoney |  |  | Money |
valuePeriod |  |  | Period |
valueQuantity |  |  | Quantity |
valueRange |  |  | Range |
valueRatio |  |  | Ratio |
valueReference |  |  | Reference(Any) |
valueSampledData |  |  | SampledData |
valueSignature |  |  | Signature |
valueTiming |  |  | Timing |
valueContactDetail |  |  | ContactDetail |
valueContributor |  |  | Contributor |
valueDataRequirement |  |  | DataRequirement |
valueExpression |  |  | Expression |
valueParameterDefinition |  |  | ParameterDefinition |
valueRelatedArtifact |  |  | RelatedArtifact |
valueTriggerDefinition |  |  | TriggerDefinition |
valueUsageContext |  |  | UsageContext |
valueDosage |  |  | Dosage |
valueMeta |  |  | Meta |
value[x]:valueString | S | 0..1 | string | Ergänzende Angaben zu Substitutionsmittel
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension"
extension:teratogenic | S | 0..1 | (Complex) | T-Rezept URL: https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension | S | 5..* | Extension | Extension Slice: Unordered, Closed by value:url
extension:off-label | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "off-label"
value[x] | S | 0..1 | boolean | Off-Label
extension:childbearing-potential | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "childbearing-potential"
value[x] | S | 0..1 | boolean | Gebärfähige Frau
extension:security-compliance | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "security-compliance"
value[x] | S | 0..1 | boolean | Einhaltung Sicherheitsmaßnahmen
extension:hand-out-information-material | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "hand-out-information-material"
value[x] | S | 0..1 | boolean | Aushändigung Informationsmaterialien
extension:declaration-of-expertise | S | 1..1 | Extension | Extension
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "declaration-of-expertise"
value[x] | S | 0..1 | boolean | Erklärung Sachkenntnis
url |  | 1..1 | uri | "https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension"
extension:renderedDosageInstruction | S | 0..1 | markdown | Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen). URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
extension:generatedDosageInstructionsMeta | S | 0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url
status | ?!S Σ | 1..1 | code | Status of Medication Request Binding: TI Medication Request ValueSet (required) Fixed Value: completed
intent | ?!S Σ | 1..1 | code | filler-order Binding: medicationRequest Intent (required): The kind of medication order. Fixed Value: order
medication[x] | S Σ | 1..1 | Reference(Medication) | Medication to be taken
subject | S Σ C | 1..1 | Reference(Patient) | Who or group medication request is for Constraints: ref-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
identifier | S Σ | 1..1 | IdentifierKvid10 | Logical reference, when literal reference is not known
authoredOn | S Σ | 1..1 | dateTime | Issue Date
dosageInstruction | S | 0..* | DosageDgMP | Hier werden Informationen zur Dosierung angegeben.
dispenseRequest | S | 0..1 | BackboneElement | Medication supply authorization
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
quantity | S C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: qty-3, sqty-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | S Σ | 1..1 | decimal | Number of Prescribed Packages
unit | S Σ | 0..1 | string | Unit representation
system | S Σ C | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org
code | S Σ | 0..1 | code | Coded form of the unit
expectedSupplyDuration | S C | 0..1 | Duration | Number of days supply per dispense Constraints: drt-1, qty-3
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
MedicationRequest.meta.​security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std.
MedicationRequest.meta.​tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std.
MedicationRequest.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
MedicationRequest.extension:narcotics.​extension:narcotics-markings.​value[x]:valueCoding | Base | required | https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_NARCOTIC_LABEL | Not State | Unknown
MedicationRequest.status | Base | required | TI Medication Request ValueSet | 📦1.0.7 | TI Terminology v1.0
MedicationRequest.intent | Base | required | Medication request intent | 📍4.0.1 | FHIR Std.
MedicationRequest.basedOn.​type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
MedicationRequest.substitution.​reason | Base | example | SubstanceAdminSubstitutionReason | 📦3.0.0 | THO v7.1

#### Constraints

Id | Grade | Path(s) | Description | Expression
-limitationDateEnd | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `end.exists().not() or end.toString().length()=10`
-limitationDateStart | error | MedicationRequest.extension:multiplePrescription.extension:period.value[x] | Limitation of the date format to 10 characters YYYY-MM-DD | `start.toString().length()=10`
dom-2 | error | MedicationRequest | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | MedicationRequest | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | MedicationRequest | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | MedicationRequest | A resource should have narrative for robust management | `text.`div`.exists()`
drt-1 | error | MedicationRequest.dispenseRequest.initialFill.duration, MedicationRequest.dispenseRequest.expectedSupplyDuration | There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. | `code.exists() implies ((system = %ucum) and value.exists())`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
qty-3 | error | MedicationRequest.extension:multiplePrescription.extension:counter.value[x].numerator, MedicationRequest.extension:multiplePrescription.extension:counter.value[x].denominator, MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.initialFill.duration, MedicationRequest.dispenseRequest.quantity, MedicationRequest.dispenseRequest.expectedSupplyDuration | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
ref-1 | error | MedicationRequest.subject | SHALL have a contained resource if a local reference is provided | `reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))`
sqty-1 | error | MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from EPAMedicationRequest

Summary

Must-Support: 1 element
Fixed: 2 elements
Prohibited: 35 elements

Other representations of profile: CSV, Excel, Schematron