Medication IG DE - Downloaded Version 1.0.8 See the Directory of published versions
| 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.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
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 | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" | |
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
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. | |
![]() ![]() |
1..1 | code | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: medicationRequest Intent (required): The kind of medication order. | |
![]() ![]() |
0..1 | boolean | True if request is prohibiting action | |
![]() ![]() |
1..1 | Medication to be taken Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered. | ||
![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() |
Reference(Medication) | |||
![]() ![]() |
1..1 | Reference(Patient | Group) | Who or group medication request is for | |
![]() ![]() |
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 |
Documentation for this format | ||||
| 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. |
| 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
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |
![]() ![]() |
0..* | DosageDgMP | Angabe der Dosierinformationen strukturiert oder als Freitext | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" | |||||
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |||||
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..* | Identifier | External ids for this request | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | CodeableConcept | Reason for current status Binding: medicationRequest Status Reason Codes (example): Identifies the reasons for a given status. | |||||
![]() ![]() |
1..1 | code | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: medicationRequest Intent (required): The kind of medication order. | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request. | |||||
![]() ![]() |
0..1 | boolean | True if request is prohibiting action | |||||
![]() ![]() |
0..1 | Reported rather than primary record | ||||||
![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() |
Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | |||||||
![]() ![]() |
1..1 | Medication to be taken Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered. | ||||||
![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Reference(Medication) | |||||||
![]() ![]() |
1..1 | Reference(Patient | Group) | Who or group medication request is for | |||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter created as part of encounter/admission/stay | |||||
![]() ![]() |
0..* | Reference(Resource) | Information to support ordering of the medication | |||||
![]() ![]() |
0..1 | dateTime | When request was initially authored | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) | Who/What requested the Request | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) | Intended performer of administration | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole) | Person who entered the request | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..* | Reference(Condition | Observation) | Condition or observation that supports why the prescription is being written | |||||
![]() ![]() |
0..* | canonical() | Instantiates FHIR protocol or definition | |||||
![]() ![]() |
0..* | uri | Instantiates external protocol or definition | |||||
![]() ![]() |
0..* | Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) | What request fulfills | |||||
![]() ![]() |
0..1 | Identifier | Composite request this is part of | |||||
![]() ![]() |
0..1 | CodeableConcept | Overall pattern of medication administration Binding: medicationRequest Course of Therapy Codes (example): Identifies the overall pattern of medication administratio. | |||||
![]() ![]() |
0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage | |||||
![]() ![]() |
0..* | Annotation | Information about the prescription | |||||
![]() ![]() |
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 | ||||
![]() ![]() |
0..1 | BackboneElement | Medication supply authorization | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
0..1 | BackboneElement | First fill details | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | SimpleQuantity(4.0.1) | First fill quantity Constraints: sqty-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | Duration | First fill duration | |||||
![]() ![]() ![]() |
0..1 | Duration | Minimum period of time between dispenses | |||||
![]() ![]() ![]() |
0..1 | Period | Time period supply is authorized for | |||||
![]() ![]() ![]() |
0..1 | unsignedInt | Number of refills authorized | |||||
![]() ![]() ![]() |
C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: sqty-1 | ||||
![]() ![]() ![]() |
0..1 | Duration | Number of days supply per dispense | |||||
![]() ![]() ![]() |
0..1 | Reference(Organization) | Intended dispenser | |||||
![]() ![]() |
0..1 | BackboneElement | Any restrictions on medication substitution | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | Whether substitution is allowed or not Binding: ActSubstanceAdminSubstitutionCode (example): Identifies the type of substitution allowed. | ||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | Reference(MedicationRequest) | An order/prescription that is being replaced | |||||
![]() ![]() |
0..* | Reference(DetectedIssue) | Clinical Issue with action | |||||
![]() ![]() |
0..* | Reference(Provenance) | A list of events of interest in the lifecycle | |||||
Documentation for this format | ||||||||
| 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. |
| 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()
|
This structure is derived from MedicationRequest
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |
![]() ![]() |
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 | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" | |
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |
![]() ![]() |
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. | |
![]() ![]() |
1..1 | code | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: medicationRequest Intent (required): The kind of medication order. | |
![]() ![]() |
0..1 | boolean | True if request is prohibiting action | |
![]() ![]() |
1..1 | Medication to be taken Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered. | ||
![]() ![]() ![]() |
CodeableConcept | |||
![]() ![]() ![]() |
Reference(Medication) | |||
![]() ![]() |
1..1 | Reference(Patient | Group) | Who or group medication request is for | |
![]() ![]() |
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 |
Documentation for this format | ||||
| 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. |
| 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
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |
![]() ![]() |
0..* | DosageDgMP | Angabe der Dosierinformationen strukturiert oder als Freitext | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | MedicationRequest | This is an abstract profile. Ordering of medication for patient or group | |||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
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 | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | (Complex) | Dosierungsanweisung URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction" | |||||
![]() ![]() ![]() ![]() |
1..1 | markdown | Hinweis: In der ersten Ausbaustufe des dgMP ist nur einfacher Text (String) zulässig; Markdown wird nicht unterstützt. | |||||
![]() ![]() ![]() |
0..1 | (Complex) | Metadaten zu den generierten Dosierungsanweisungen URL: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..* | Identifier | External ids for this request | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | CodeableConcept | Reason for current status Binding: medicationRequest Status Reason Codes (example): Identifies the reasons for a given status. | |||||
![]() ![]() |
1..1 | code | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option Binding: medicationRequest Intent (required): The kind of medication order. | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | code | routine | urgent | asap | stat Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request. | |||||
![]() ![]() |
0..1 | boolean | True if request is prohibiting action | |||||
![]() ![]() |
0..1 | Reported rather than primary record | ||||||
![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() |
Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Organization) | |||||||
![]() ![]() |
1..1 | Medication to be taken Binding: SNOMEDCTMedicationCodes (example): A coded concept identifying substance or product that can be ordered. | ||||||
![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
Reference(Medication) | |||||||
![]() ![]() |
1..1 | Reference(Patient | Group) | Who or group medication request is for | |||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter created as part of encounter/admission/stay | |||||
![]() ![]() |
0..* | Reference(Resource) | Information to support ordering of the medication | |||||
![]() ![]() |
0..1 | dateTime | When request was initially authored | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | RelatedPerson | Device) | Who/What requested the Request | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson | CareTeam) | Intended performer of administration | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | Reference(Practitioner | PractitionerRole) | Person who entered the request | |||||
![]() ![]() |
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. | |||||
![]() ![]() |
0..* | Reference(Condition | Observation) | Condition or observation that supports why the prescription is being written | |||||
![]() ![]() |
0..* | canonical() | Instantiates FHIR protocol or definition | |||||
![]() ![]() |
0..* | uri | Instantiates external protocol or definition | |||||
![]() ![]() |
0..* | Reference(CarePlan | MedicationRequest | ServiceRequest | ImmunizationRecommendation) | What request fulfills | |||||
![]() ![]() |
0..1 | Identifier | Composite request this is part of | |||||
![]() ![]() |
0..1 | CodeableConcept | Overall pattern of medication administration Binding: medicationRequest Course of Therapy Codes (example): Identifies the overall pattern of medication administratio. | |||||
![]() ![]() |
0..* | Reference(Coverage | ClaimResponse) | Associated insurance coverage | |||||
![]() ![]() |
0..* | Annotation | Information about the prescription | |||||
![]() ![]() |
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 | ||||
![]() ![]() |
0..1 | BackboneElement | Medication supply authorization | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
0..1 | BackboneElement | First fill details | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | SimpleQuantity(4.0.1) | First fill quantity Constraints: sqty-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | Duration | First fill duration | |||||
![]() ![]() ![]() |
0..1 | Duration | Minimum period of time between dispenses | |||||
![]() ![]() ![]() |
0..1 | Period | Time period supply is authorized for | |||||
![]() ![]() ![]() |
0..1 | unsignedInt | Number of refills authorized | |||||
![]() ![]() ![]() |
C | 0..1 | SimpleQuantity(4.0.1) | Amount of medication to supply per dispense Constraints: sqty-1 | ||||
![]() ![]() ![]() |
0..1 | Duration | Number of days supply per dispense | |||||
![]() ![]() ![]() |
0..1 | Reference(Organization) | Intended dispenser | |||||
![]() ![]() |
0..1 | BackboneElement | Any restrictions on medication substitution | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | Whether substitution is allowed or not Binding: ActSubstanceAdminSubstitutionCode (example): Identifies the type of substitution allowed. | ||||||
![]() ![]() ![]() ![]() |
boolean | |||||||
![]() ![]() ![]() ![]() |
CodeableConcept | |||||||
![]() ![]() ![]() |
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. | |||||
![]() ![]() |
0..1 | Reference(MedicationRequest) | An order/prescription that is being replaced | |||||
![]() ![]() |
0..* | Reference(DetectedIssue) | Clinical Issue with action | |||||
![]() ![]() |
0..* | Reference(Provenance) | A list of events of interest in the lifecycle | |||||
Documentation for this format | ||||||||
| 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. |
| 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()
|
This structure is derived from MedicationRequest
Other representations of profile: CSV, Excel, Schematron