Medication IG DE
1.0.8 - STU1

This page is part of the Medication IG DE (v1.0.8: Release) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 2.0.0. For a full list of available versions, see the Directory of published versions

Resource Profile: Medication Request dgMP ( Abstract )

Official URL: http://ig.fhir.de/igs/medication/StructureDefinition/MedicationRequestDgMP Version: 1.0.8
Active as of 2026-11-24 Computable Name: MedicationRequestDgMP

Dieses Profil dient ausschließlich der Validierung des Implementation Guides und ist nicht für den produktiven Einsatz gedacht. Stattdessen sollte das jeweils passende Dosage-Profil direkt in das eigene Profil eingebunden werden.

Verwendung

Dieses Profil dient ausschließlich der Validierung des Implementation Guides und ist nicht für den produktiven Einsatz gedacht

Usages:

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.

NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
MedicationRequest.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
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.extension 0..0 Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
MedicationRequest.status This element is a modifier element. This element is included in summaries. 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Binding: medicationrequest Status (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.
MedicationRequest.intent This element is a modifier element. This element is included in summaries. 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: medicationRequest Intent (required): The kind of medication order.
MedicationRequest.doNotPerform This element is a modifier element. This element is included in summaries. 0..1 boolean True if request is prohibiting action
MedicationRequest.medication[x] This element is included in summaries. 1..1 Medication to be taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered.
MedicationRequest.medication[x].medicationCodeableConcept CodeableConcept
MedicationRequest.medication[x].medicationReference Reference(Medication)
MedicationRequest.subject This element is included in summaries. 1..1 Reference(Patient | Group) Who or group medication request is for
MedicationRequest.dosageInstruction C 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext
Constraints: DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning, DosageDoseValuePositiveWarning, DosageLimitsPositiveWarning, DosageStructuredOrFreeText, DosageStructuredRequiresGeneratedText, FreeTextSingleDosageOnly, FreeTextMatchesRenderedText, DosageDoseValueNotNegative, DosageDoseQuantityAllowedFractionsWarning, DosageDoseValueDecimalNotationWarning

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source Documentation
MedicationRequest.status Base required Medicationrequest status 📍4.0.1 FHIR Std.

A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.

MedicationRequest.intent Base required Medication request intent 📍4.0.1 FHIR Std.

The kind of medication order.

MedicationRequest.medication[x] Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.

A coded concept identifying substance or product that can be ordered.

Constraints

Id Grade Path(s) Description Expression
DosageDoseQuantityAllowedFractionsWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should be whole numbers or use one of the following fractional parts: .125, .25, .33, .5, .66 or .75. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) )
DosageDoseUnitSameCode error MedicationRequest.dosageInstruction Die Dosiereinheit muss über alle Dosierungen gleich sein. /* Umgeformt in 1.0.8 fuer die Laufzeit, ohne fachliche Aenderung gegenueber 1.0.7 */ %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).where(doseAndRate.exists()).empty() or ( %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Quantity).code .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).low.code) .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).high.code) ).distinct().count() = 1
DosageDoseValueDecimalNotationWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should use plain decimal notation with at most three decimal places. Exponential notation (e.g. 50e-2 instead of 0.5) should not be used. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) )
DosageDoseValueNotNegative error MedicationRequest.dosageInstruction doseQuantity.value must not be negative. doseAndRate.dose.ofType(Quantity).value.all($this >= 0)
DosageDoseValuePositiveWarning warning MedicationRequest.dosageInstruction doseQuantity.value and doseRange.high.value should be greater than 0. The value 0 is additionally allowed for doseRange.low.value only. doseAndRate.all( dose.ofType(Quantity).value.all($this > 0) and dose.ofType(Range).low.value.all($this >= 0) and dose.ofType(Range).high.value.all($this > 0) )
DosageLimitsPositiveWarning warning MedicationRequest.dosageInstruction The minimum interval between administrations (valueDuration.value) and maxDosePerPeriod (numerator.value, denominator.value) should be greater than 0. modifierExtension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/MinimumIntervalBetweenAdministrations' ).value.ofType(Duration).value.all($this > 0) and maxDosePerPeriod.numerator.value.all($this > 0) and maxDosePerPeriod.denominator.value.all($this > 0)
DosageStructuredOrFreeText error MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredOrFreeTextWarning warning MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredRequiresBoth error MedicationRequest.dosageInstruction Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
DosageStructuredRequiresGeneratedText error MedicationRequest.dosageInstruction Liegt eine strukturierte Dosierungsangabe vor (timing und doseAndRate belegt, text leer), muss die Extension GeneratedDosageInstructionsMeta vorhanden sein. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(timing.exists() and doseAndRate.exists() and text.empty()) ) implies ( %resource.extension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' ).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).exists() ) )
DosageWarnungViererschemaInText warning MedicationRequest.dosageInstruction Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann. text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
FreeTextMatchesRenderedText error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist (text vorhanden, timing und doseAndRate leer) UND die Extension renderedDosageInstruction befüllt ist, muss der Wert in dosageInstruction.text mit dem Wert in der Extension übereinstimmen. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where(text.exists() and timing.empty() and doseAndRate.empty()).exists() ) implies ( ( %resource.ofType(MedicationRequest).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationDispense).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationStatement).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).value = %resource.dosage.text ) ) )
FreeTextSingleDosageOnly error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, darf nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
FreeTextSingleDosageOnlyWarning warning MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
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()
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()

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.dosageInstruction 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.id This element is included in summaries. 0..1 id Logical id of this artifact
MedicationRequest.meta This element is included in summaries. 0..1 Meta Metadata about the resource
MedicationRequest.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
MedicationRequest.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
MedicationRequest.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
MedicationRequest.contained 0..* Resource Contained, inline Resources
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.id 0..1 string Unique id for inter-element referencing
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.extension 0..0 Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
MedicationRequest.identifier 0..* Identifier External ids for this request
MedicationRequest.status This element is a modifier element. This element is included in summaries. 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Binding: medicationrequest Status (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.
MedicationRequest.statusReason 0..1 CodeableConcept Reason for current status
Binding: medicationRequest Status Reason Codes (example): Identifies the reasons for a given status.
MedicationRequest.intent This element is a modifier element. This element is included in summaries. 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: medicationRequest Intent (required): The kind of medication order.
MedicationRequest.category 0..* CodeableConcept Type of medication usage
Binding: medicationRequest Category Codes (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.
MedicationRequest.priority This element is included in summaries. 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
MedicationRequest.doNotPerform This element is a modifier element. This element is included in summaries. 0..1 boolean True if request is prohibiting action
MedicationRequest.reported[x] This element is included in summaries. 0..1 Reported rather than primary record
MedicationRequest.reported[x].reportedBoolean boolean
MedicationRequest.reported[x].reportedReference Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
MedicationRequest.medication[x] This element is included in summaries. 1..1 Medication to be taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered.
MedicationRequest.medication[x].medicationCodeableConcept CodeableConcept
MedicationRequest.medication[x].medicationReference Reference(Medication)
MedicationRequest.subject This element is included in summaries. 1..1 Reference(Patient | Group) Who or group medication request is for
MedicationRequest.encounter 0..1 Reference(Encounter) Encounter created as part of encounter/admission/stay
MedicationRequest.supportingInformation 0..* Reference(Resource) Information to support ordering of the medication
MedicationRequest.authoredOn This element is included in summaries. 0..1 dateTime When request was initially authored
MedicationRequest.requester This element is included in summaries. 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) Who/What requested the Request
MedicationRequest.performer 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) Intended performer of administration
MedicationRequest.performerType This element is included in summaries. 0..1 CodeableConcept Desired kind of performer of the medication administration
Binding: ProcedurePerformerRoleCodes (example): Identifies the type of individual that is desired to administer the medication.
MedicationRequest.recorder 0..1 Reference(Practitioner | PractitionerRole) Person who entered the request
MedicationRequest.reasonCode 0..* CodeableConcept Reason or indication for ordering or not ordering the medication
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept indicating why the medication was ordered.
MedicationRequest.reasonReference 0..* Reference(Condition | Observation) Condition or observation that supports why the prescription is being written
MedicationRequest.instantiatesCanonical This element is included in summaries. 0..* canonical() Instantiates FHIR protocol or definition
MedicationRequest.instantiatesUri This element is included in summaries. 0..* uri Instantiates external protocol or definition
MedicationRequest.basedOn This element is included in summaries. 0..* Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) What request fulfills
MedicationRequest.groupIdentifier This element is included in summaries. 0..1 Identifier Composite request this is part of
MedicationRequest.courseOfTherapyType 0..1 CodeableConcept Overall pattern of medication administration
Binding: medicationRequest Course of Therapy Codes (example): Identifies the overall pattern of medication administratio.
MedicationRequest.insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
MedicationRequest.note 0..* Annotation Information about the prescription
MedicationRequest.dosageInstruction C 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext
Constraints: DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning, DosageDoseValuePositiveWarning, DosageLimitsPositiveWarning, DosageStructuredOrFreeText, DosageStructuredRequiresGeneratedText, FreeTextSingleDosageOnly, FreeTextMatchesRenderedText, DosageDoseValueNotNegative, DosageDoseQuantityAllowedFractionsWarning, DosageDoseValueDecimalNotationWarning
MedicationRequest.dispenseRequest 0..1 BackboneElement Medication supply authorization
MedicationRequest.dispenseRequest.id 0..1 string Unique id for inter-element referencing
MedicationRequest.dispenseRequest.extension 0..* Extension Additional content defined by implementations
MedicationRequest.dispenseRequest.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.dispenseRequest.initialFill 0..1 BackboneElement First fill details
MedicationRequest.dispenseRequest.initialFill.id 0..1 string Unique id for inter-element referencing
MedicationRequest.dispenseRequest.initialFill.extension 0..* Extension Additional content defined by implementations
MedicationRequest.dispenseRequest.initialFill.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.dispenseRequest.initialFill.quantity C 0..1 SimpleQuantity(4.0.1) First fill quantity
Constraints: sqty-1
MedicationRequest.dispenseRequest.initialFill.duration 0..1 Duration First fill duration
MedicationRequest.dispenseRequest.dispenseInterval 0..1 Duration Minimum period of time between dispenses
MedicationRequest.dispenseRequest.validityPeriod 0..1 Period Time period supply is authorized for
MedicationRequest.dispenseRequest.numberOfRepeatsAllowed 0..1 unsignedInt Number of refills authorized
MedicationRequest.dispenseRequest.quantity C 0..1 SimpleQuantity(4.0.1) Amount of medication to supply per dispense
Constraints: sqty-1
MedicationRequest.dispenseRequest.expectedSupplyDuration 0..1 Duration Number of days supply per dispense
MedicationRequest.dispenseRequest.performer 0..1 Reference(Organization) Intended dispenser
MedicationRequest.substitution 0..1 BackboneElement Any restrictions on medication substitution
MedicationRequest.substitution.id 0..1 string Unique id for inter-element referencing
MedicationRequest.substitution.extension 0..* Extension Additional content defined by implementations
MedicationRequest.substitution.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.substitution.allowed[x] 1..1 Whether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (example): Identifies the type of substitution allowed.
MedicationRequest.substitution.allowed[x].allowedBoolean boolean
MedicationRequest.substitution.allowed[x].allowedCodeableConcept CodeableConcept
MedicationRequest.substitution.reason 0..1 CodeableConcept Why should (not) substitution be made
Binding: SubstanceAdminSubstitutionReason (example): A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.
MedicationRequest.priorPrescription 0..1 Reference(MedicationRequest) An order/prescription that is being replaced
MedicationRequest.detectedIssue 0..* Reference(DetectedIssue) Clinical Issue with action
MedicationRequest.eventHistory 0..* Reference(Provenance) A list of events of interest in the lifecycle

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source Documentation
MedicationRequest.language Base preferred Common Languages 📍4.0.1 FHIR Std.

A human language.

MedicationRequest.status Base required Medicationrequest status 📍4.0.1 FHIR Std.

A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.

MedicationRequest.statusReason Base example Medication request status reason codes 📍4.0.1 FHIR Std.

Identifies the reasons for a given status.

MedicationRequest.intent Base required Medication request intent 📍4.0.1 FHIR Std.

The kind of medication order.

MedicationRequest.category Base example Medication request category codes 📍4.0.1 FHIR Std.

A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.

MedicationRequest.priority Base required Request priority 📍4.0.1 FHIR Std.

Identifies the level of importance to be assigned to actioning the request.

MedicationRequest.medication[x] Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.

A coded concept identifying substance or product that can be ordered.

MedicationRequest.performerType Base example Procedure Performer Role Codes 📍4.0.1 FHIR Std.

Identifies the type of individual that is desired to administer the medication.

MedicationRequest.reasonCode Base example Condition/Problem/Diagnosis Codes 📍4.0.1 FHIR Std.

A coded concept indicating why the medication was ordered.

MedicationRequest.courseOfTherapyType Base example Medication request course of therapy codes 📍4.0.1 FHIR Std.

Identifies the overall pattern of medication administratio.

MedicationRequest.substitution.​allowed[x] Base example ActSubstanceAdminSubstitutionCode 📦3.0.0 THO v7.2

Identifies the type of substitution allowed.

MedicationRequest.substitution.​reason Base example SubstanceAdminSubstitutionReason 📦3.0.0 THO v7.2

A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.

Constraints

Id Grade Path(s) Description Expression
DosageDoseQuantityAllowedFractionsWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should be whole numbers or use one of the following fractional parts: .125, .25, .33, .5, .66 or .75. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) )
DosageDoseUnitSameCode error MedicationRequest.dosageInstruction Die Dosiereinheit muss über alle Dosierungen gleich sein. /* Umgeformt in 1.0.8 fuer die Laufzeit, ohne fachliche Aenderung gegenueber 1.0.7 */ %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).where(doseAndRate.exists()).empty() or ( %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Quantity).code .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).low.code) .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).high.code) ).distinct().count() = 1
DosageDoseValueDecimalNotationWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should use plain decimal notation with at most three decimal places. Exponential notation (e.g. 50e-2 instead of 0.5) should not be used. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) )
DosageDoseValueNotNegative error MedicationRequest.dosageInstruction doseQuantity.value must not be negative. doseAndRate.dose.ofType(Quantity).value.all($this >= 0)
DosageDoseValuePositiveWarning warning MedicationRequest.dosageInstruction doseQuantity.value and doseRange.high.value should be greater than 0. The value 0 is additionally allowed for doseRange.low.value only. doseAndRate.all( dose.ofType(Quantity).value.all($this > 0) and dose.ofType(Range).low.value.all($this >= 0) and dose.ofType(Range).high.value.all($this > 0) )
DosageLimitsPositiveWarning warning MedicationRequest.dosageInstruction The minimum interval between administrations (valueDuration.value) and maxDosePerPeriod (numerator.value, denominator.value) should be greater than 0. modifierExtension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/MinimumIntervalBetweenAdministrations' ).value.ofType(Duration).value.all($this > 0) and maxDosePerPeriod.numerator.value.all($this > 0) and maxDosePerPeriod.denominator.value.all($this > 0)
DosageStructuredOrFreeText error MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredOrFreeTextWarning warning MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredRequiresBoth error MedicationRequest.dosageInstruction Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
DosageStructuredRequiresGeneratedText error MedicationRequest.dosageInstruction Liegt eine strukturierte Dosierungsangabe vor (timing und doseAndRate belegt, text leer), muss die Extension GeneratedDosageInstructionsMeta vorhanden sein. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(timing.exists() and doseAndRate.exists() and text.empty()) ) implies ( %resource.extension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' ).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).exists() ) )
DosageWarnungViererschemaInText warning MedicationRequest.dosageInstruction Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann. text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
FreeTextMatchesRenderedText error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist (text vorhanden, timing und doseAndRate leer) UND die Extension renderedDosageInstruction befüllt ist, muss der Wert in dosageInstruction.text mit dem Wert in der Extension übereinstimmen. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where(text.exists() and timing.empty() and doseAndRate.empty()).exists() ) implies ( ( %resource.ofType(MedicationRequest).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationDispense).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationStatement).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).value = %resource.dosage.text ) ) )
FreeTextSingleDosageOnly error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, darf nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
FreeTextSingleDosageOnlyWarning warning MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
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()
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()
sqty-1 error MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.quantity The comparator is not used on a SimpleQuantity comparator.empty()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
MedicationRequest.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
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.extension 0..0 Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
MedicationRequest.status This element is a modifier element. This element is included in summaries. 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Binding: medicationrequest Status (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.
MedicationRequest.intent This element is a modifier element. This element is included in summaries. 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: medicationRequest Intent (required): The kind of medication order.
MedicationRequest.doNotPerform This element is a modifier element. This element is included in summaries. 0..1 boolean True if request is prohibiting action
MedicationRequest.medication[x] This element is included in summaries. 1..1 Medication to be taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered.
MedicationRequest.medication[x].medicationCodeableConcept CodeableConcept
MedicationRequest.medication[x].medicationReference Reference(Medication)
MedicationRequest.subject This element is included in summaries. 1..1 Reference(Patient | Group) Who or group medication request is for
MedicationRequest.dosageInstruction C 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext
Constraints: DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning, DosageDoseValuePositiveWarning, DosageLimitsPositiveWarning, DosageStructuredOrFreeText, DosageStructuredRequiresGeneratedText, FreeTextSingleDosageOnly, FreeTextMatchesRenderedText, DosageDoseValueNotNegative, DosageDoseQuantityAllowedFractionsWarning, DosageDoseValueDecimalNotationWarning

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source Documentation
MedicationRequest.status Base required Medicationrequest status 📍4.0.1 FHIR Std.

A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.

MedicationRequest.intent Base required Medication request intent 📍4.0.1 FHIR Std.

The kind of medication order.

MedicationRequest.medication[x] Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.

A coded concept identifying substance or product that can be ordered.

Constraints

Id Grade Path(s) Description Expression
DosageDoseQuantityAllowedFractionsWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should be whole numbers or use one of the following fractional parts: .125, .25, .33, .5, .66 or .75. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) )
DosageDoseUnitSameCode error MedicationRequest.dosageInstruction Die Dosiereinheit muss über alle Dosierungen gleich sein. /* Umgeformt in 1.0.8 fuer die Laufzeit, ohne fachliche Aenderung gegenueber 1.0.7 */ %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).where(doseAndRate.exists()).empty() or ( %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Quantity).code .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).low.code) .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).high.code) ).distinct().count() = 1
DosageDoseValueDecimalNotationWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should use plain decimal notation with at most three decimal places. Exponential notation (e.g. 50e-2 instead of 0.5) should not be used. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) )
DosageDoseValueNotNegative error MedicationRequest.dosageInstruction doseQuantity.value must not be negative. doseAndRate.dose.ofType(Quantity).value.all($this >= 0)
DosageDoseValuePositiveWarning warning MedicationRequest.dosageInstruction doseQuantity.value and doseRange.high.value should be greater than 0. The value 0 is additionally allowed for doseRange.low.value only. doseAndRate.all( dose.ofType(Quantity).value.all($this > 0) and dose.ofType(Range).low.value.all($this >= 0) and dose.ofType(Range).high.value.all($this > 0) )
DosageLimitsPositiveWarning warning MedicationRequest.dosageInstruction The minimum interval between administrations (valueDuration.value) and maxDosePerPeriod (numerator.value, denominator.value) should be greater than 0. modifierExtension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/MinimumIntervalBetweenAdministrations' ).value.ofType(Duration).value.all($this > 0) and maxDosePerPeriod.numerator.value.all($this > 0) and maxDosePerPeriod.denominator.value.all($this > 0)
DosageStructuredOrFreeText error MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredOrFreeTextWarning warning MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredRequiresBoth error MedicationRequest.dosageInstruction Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
DosageStructuredRequiresGeneratedText error MedicationRequest.dosageInstruction Liegt eine strukturierte Dosierungsangabe vor (timing und doseAndRate belegt, text leer), muss die Extension GeneratedDosageInstructionsMeta vorhanden sein. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(timing.exists() and doseAndRate.exists() and text.empty()) ) implies ( %resource.extension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' ).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).exists() ) )
DosageWarnungViererschemaInText warning MedicationRequest.dosageInstruction Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann. text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
FreeTextMatchesRenderedText error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist (text vorhanden, timing und doseAndRate leer) UND die Extension renderedDosageInstruction befüllt ist, muss der Wert in dosageInstruction.text mit dem Wert in der Extension übereinstimmen. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where(text.exists() and timing.empty() and doseAndRate.empty()).exists() ) implies ( ( %resource.ofType(MedicationRequest).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationDispense).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationStatement).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).value = %resource.dosage.text ) ) )
FreeTextSingleDosageOnly error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, darf nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
FreeTextSingleDosageOnlyWarning warning MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
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()
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()

Differential View

This structure is derived from MedicationRequest

NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.dosageInstruction 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
MedicationRequest 0..* MedicationRequest This is an abstract profile.
Ordering of medication for patient or group
MedicationRequest.id This element is included in summaries. 0..1 id Logical id of this artifact
MedicationRequest.meta This element is included in summaries. 0..1 Meta Metadata about the resource
MedicationRequest.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
MedicationRequest.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
MedicationRequest.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
MedicationRequest.contained 0..* Resource Contained, inline Resources
MedicationRequest.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction This element must be supported. 0..1 (Complex) Dosierungsanweisung
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.id 0..1 string Unique id for inter-element referencing
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.extension 0..0 Extension
Slice: Unordered, Open by value:url
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction"
MedicationRequest.Slices for extension.extension:renderedDosageInstruction.value[x] 1..1 markdown Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt.
MedicationRequest.Slices for extension.extension:generatedDosageInstructionsMeta This element must be supported. 0..1 (Complex) Metadaten zu den generierten Dosierungsanweisungen
URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
MedicationRequest.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
MedicationRequest.identifier 0..* Identifier External ids for this request
MedicationRequest.status This element is a modifier element. This element is included in summaries. 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Binding: medicationrequest Status (required): A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.
MedicationRequest.statusReason 0..1 CodeableConcept Reason for current status
Binding: medicationRequest Status Reason Codes (example): Identifies the reasons for a given status.
MedicationRequest.intent This element is a modifier element. This element is included in summaries. 1..1 code proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Binding: medicationRequest Intent (required): The kind of medication order.
MedicationRequest.category 0..* CodeableConcept Type of medication usage
Binding: medicationRequest Category Codes (example): A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.
MedicationRequest.priority This element is included in summaries. 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
MedicationRequest.doNotPerform This element is a modifier element. This element is included in summaries. 0..1 boolean True if request is prohibiting action
MedicationRequest.reported[x] This element is included in summaries. 0..1 Reported rather than primary record
MedicationRequest.reported[x].reportedBoolean boolean
MedicationRequest.reported[x].reportedReference Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization)
MedicationRequest.medication[x] This element is included in summaries. 1..1 Medication to be taken
Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered.
MedicationRequest.medication[x].medicationCodeableConcept CodeableConcept
MedicationRequest.medication[x].medicationReference Reference(Medication)
MedicationRequest.subject This element is included in summaries. 1..1 Reference(Patient | Group) Who or group medication request is for
MedicationRequest.encounter 0..1 Reference(Encounter) Encounter created as part of encounter/admission/stay
MedicationRequest.supportingInformation 0..* Reference(Resource) Information to support ordering of the medication
MedicationRequest.authoredOn This element is included in summaries. 0..1 dateTime When request was initially authored
MedicationRequest.requester This element is included in summaries. 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) Who/What requested the Request
MedicationRequest.performer 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) Intended performer of administration
MedicationRequest.performerType This element is included in summaries. 0..1 CodeableConcept Desired kind of performer of the medication administration
Binding: ProcedurePerformerRoleCodes (example): Identifies the type of individual that is desired to administer the medication.
MedicationRequest.recorder 0..1 Reference(Practitioner | PractitionerRole) Person who entered the request
MedicationRequest.reasonCode 0..* CodeableConcept Reason or indication for ordering or not ordering the medication
Binding: Condition/Problem/DiagnosisCodes (example): A coded concept indicating why the medication was ordered.
MedicationRequest.reasonReference 0..* Reference(Condition | Observation) Condition or observation that supports why the prescription is being written
MedicationRequest.instantiatesCanonical This element is included in summaries. 0..* canonical() Instantiates FHIR protocol or definition
MedicationRequest.instantiatesUri This element is included in summaries. 0..* uri Instantiates external protocol or definition
MedicationRequest.basedOn This element is included in summaries. 0..* Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) What request fulfills
MedicationRequest.groupIdentifier This element is included in summaries. 0..1 Identifier Composite request this is part of
MedicationRequest.courseOfTherapyType 0..1 CodeableConcept Overall pattern of medication administration
Binding: medicationRequest Course of Therapy Codes (example): Identifies the overall pattern of medication administratio.
MedicationRequest.insurance 0..* Reference(Coverage | ClaimResponse) Associated insurance coverage
MedicationRequest.note 0..* Annotation Information about the prescription
MedicationRequest.dosageInstruction C 0..* DosageDgMP Angabe der Dosierinformationen strukturiert oder als Freitext
Constraints: DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning, DosageDoseValuePositiveWarning, DosageLimitsPositiveWarning, DosageStructuredOrFreeText, DosageStructuredRequiresGeneratedText, FreeTextSingleDosageOnly, FreeTextMatchesRenderedText, DosageDoseValueNotNegative, DosageDoseQuantityAllowedFractionsWarning, DosageDoseValueDecimalNotationWarning
MedicationRequest.dispenseRequest 0..1 BackboneElement Medication supply authorization
MedicationRequest.dispenseRequest.id 0..1 string Unique id for inter-element referencing
MedicationRequest.dispenseRequest.extension 0..* Extension Additional content defined by implementations
MedicationRequest.dispenseRequest.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.dispenseRequest.initialFill 0..1 BackboneElement First fill details
MedicationRequest.dispenseRequest.initialFill.id 0..1 string Unique id for inter-element referencing
MedicationRequest.dispenseRequest.initialFill.extension 0..* Extension Additional content defined by implementations
MedicationRequest.dispenseRequest.initialFill.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.dispenseRequest.initialFill.quantity C 0..1 SimpleQuantity(4.0.1) First fill quantity
Constraints: sqty-1
MedicationRequest.dispenseRequest.initialFill.duration 0..1 Duration First fill duration
MedicationRequest.dispenseRequest.dispenseInterval 0..1 Duration Minimum period of time between dispenses
MedicationRequest.dispenseRequest.validityPeriod 0..1 Period Time period supply is authorized for
MedicationRequest.dispenseRequest.numberOfRepeatsAllowed 0..1 unsignedInt Number of refills authorized
MedicationRequest.dispenseRequest.quantity C 0..1 SimpleQuantity(4.0.1) Amount of medication to supply per dispense
Constraints: sqty-1
MedicationRequest.dispenseRequest.expectedSupplyDuration 0..1 Duration Number of days supply per dispense
MedicationRequest.dispenseRequest.performer 0..1 Reference(Organization) Intended dispenser
MedicationRequest.substitution 0..1 BackboneElement Any restrictions on medication substitution
MedicationRequest.substitution.id 0..1 string Unique id for inter-element referencing
MedicationRequest.substitution.extension 0..* Extension Additional content defined by implementations
MedicationRequest.substitution.modifierExtension This element is a modifier element. This element is included in summaries. 0..* Extension Extensions that cannot be ignored even if unrecognized
MedicationRequest.substitution.allowed[x] 1..1 Whether substitution is allowed or not
Binding: ActSubstanceAdminSubstitutionCode (example): Identifies the type of substitution allowed.
MedicationRequest.substitution.allowed[x].allowedBoolean boolean
MedicationRequest.substitution.allowed[x].allowedCodeableConcept CodeableConcept
MedicationRequest.substitution.reason 0..1 CodeableConcept Why should (not) substitution be made
Binding: SubstanceAdminSubstitutionReason (example): A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.
MedicationRequest.priorPrescription 0..1 Reference(MedicationRequest) An order/prescription that is being replaced
MedicationRequest.detectedIssue 0..* Reference(DetectedIssue) Clinical Issue with action
MedicationRequest.eventHistory 0..* Reference(Provenance) A list of events of interest in the lifecycle

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source Documentation
MedicationRequest.language Base preferred Common Languages 📍4.0.1 FHIR Std.

A human language.

MedicationRequest.status Base required Medicationrequest status 📍4.0.1 FHIR Std.

A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.

MedicationRequest.statusReason Base example Medication request status reason codes 📍4.0.1 FHIR Std.

Identifies the reasons for a given status.

MedicationRequest.intent Base required Medication request intent 📍4.0.1 FHIR Std.

The kind of medication order.

MedicationRequest.category Base example Medication request category codes 📍4.0.1 FHIR Std.

A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.

MedicationRequest.priority Base required Request priority 📍4.0.1 FHIR Std.

Identifies the level of importance to be assigned to actioning the request.

MedicationRequest.medication[x] Base example SNOMED CT Medication Codes 📍4.0.1 FHIR Std.

A coded concept identifying substance or product that can be ordered.

MedicationRequest.performerType Base example Procedure Performer Role Codes 📍4.0.1 FHIR Std.

Identifies the type of individual that is desired to administer the medication.

MedicationRequest.reasonCode Base example Condition/Problem/Diagnosis Codes 📍4.0.1 FHIR Std.

A coded concept indicating why the medication was ordered.

MedicationRequest.courseOfTherapyType Base example Medication request course of therapy codes 📍4.0.1 FHIR Std.

Identifies the overall pattern of medication administratio.

MedicationRequest.substitution.​allowed[x] Base example ActSubstanceAdminSubstitutionCode 📦3.0.0 THO v7.2

Identifies the type of substitution allowed.

MedicationRequest.substitution.​reason Base example SubstanceAdminSubstitutionReason 📦3.0.0 THO v7.2

A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.

Constraints

Id Grade Path(s) Description Expression
DosageDoseQuantityAllowedFractionsWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should be whole numbers or use one of the following fractional parts: .125, .25, .33, .5, .66 or .75. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.all( ($this.truncate() = $this) or ($this mod 1 = 0.125) or ($this mod 1 = 0.25) or ($this mod 1 = 0.33) or ($this mod 1 = 0.5) or ($this mod 1 = 0.66) or ($this mod 1 = 0.75) ) ) )
DosageDoseUnitSameCode error MedicationRequest.dosageInstruction Die Dosiereinheit muss über alle Dosierungen gleich sein. /* Umgeformt in 1.0.8 fuer die Laufzeit, ohne fachliche Aenderung gegenueber 1.0.7 */ %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).where(doseAndRate.exists()).empty() or ( %resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Quantity).code .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).low.code) .combine(%resource.ofType(MedicationRequest).dosageInstruction.combine(%resource.ofType(MedicationDispense).dosageInstruction).combine(%resource.ofType(MedicationStatement).dosage).doseAndRate.dose.ofType(Range).high.code) ).distinct().count() = 1
DosageDoseValueDecimalNotationWarning warning MedicationRequest.dosageInstruction Dose values in doseQuantity or doseRange should use plain decimal notation with at most three decimal places. Exponential notation (e.g. 50e-2 instead of 0.5) should not be used. doseAndRate.all( ( dose.ofType(Quantity).value.empty() or dose.ofType(Quantity).value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).low.value.empty() or dose.ofType(Range).low.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) and ( dose.ofType(Range).high.value.empty() or dose.ofType(Range).high.value.toString().matches('^[0-9]+([.][0-9]{1,3})?$') ) )
DosageDoseValueNotNegative error MedicationRequest.dosageInstruction doseQuantity.value must not be negative. doseAndRate.dose.ofType(Quantity).value.all($this >= 0)
DosageDoseValuePositiveWarning warning MedicationRequest.dosageInstruction doseQuantity.value and doseRange.high.value should be greater than 0. The value 0 is additionally allowed for doseRange.low.value only. doseAndRate.all( dose.ofType(Quantity).value.all($this > 0) and dose.ofType(Range).low.value.all($this >= 0) and dose.ofType(Range).high.value.all($this > 0) )
DosageLimitsPositiveWarning warning MedicationRequest.dosageInstruction The minimum interval between administrations (valueDuration.value) and maxDosePerPeriod (numerator.value, denominator.value) should be greater than 0. modifierExtension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/MinimumIntervalBetweenAdministrations' ).value.ofType(Duration).value.all($this > 0) and maxDosePerPeriod.numerator.value.all($this > 0) and maxDosePerPeriod.denominator.value.all($this > 0)
DosageStructuredOrFreeText error MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredOrFreeTextWarning warning MedicationRequest.dosageInstruction Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
DosageStructuredRequiresBoth error MedicationRequest.dosageInstruction Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden. (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
DosageStructuredRequiresGeneratedText error MedicationRequest.dosageInstruction Liegt eine strukturierte Dosierungsangabe vor (timing und doseAndRate belegt, text leer), muss die Extension GeneratedDosageInstructionsMeta vorhanden sein. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(timing.exists() and doseAndRate.exists() and text.empty()) ) implies ( %resource.extension.where( url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' ).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).exists() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).exists() ) )
DosageWarnungViererschemaInText warning MedicationRequest.dosageInstruction Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann. text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
FreeTextMatchesRenderedText error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist (text vorhanden, timing und doseAndRate leer) UND die Extension renderedDosageInstruction befüllt ist, muss der Wert in dosageInstruction.text mit dem Wert in der Extension übereinstimmen. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where(text.exists() and timing.empty() and doseAndRate.empty()).exists() ) implies ( ( %resource.ofType(MedicationRequest).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationDispense).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction' ).value = %resource.dosageInstruction.text ) ) or ( %resource.ofType(MedicationStatement).exists() and ( %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).empty() or %resource.extension.where( url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction' ).value = %resource.dosage.text ) ) )
FreeTextSingleDosageOnly error MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, darf nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
FreeTextSingleDosageOnlyWarning warning MedicationRequest.dosageInstruction Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren. ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
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()
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()
sqty-1 error MedicationRequest.dispenseRequest.initialFill.quantity, MedicationRequest.dispenseRequest.quantity The comparator is not used on a SimpleQuantity comparator.empty()

 

Other representations of profile: CSV, Excel, Schematron