DosageDE
type: StructureDefinition
node role: treeRoot
id:
  v: DosageDE
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition DosageDE Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Dosage <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning )">C 0..* Dosage How the medication is/was taken or should be taken Constraints: DosageStructuredOrFreeTextWarning, DosageStructuredRequiresBoth, DosageDoseUnitSameCode, DosageWarnungViererschemaInText, FreeTextSingleDosageOnlyWarning #xD; text S 0..1 string Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf' #xD; timing S 0..1 TimingDE Wann das Medikament verabreicht werden soll #xD; doseAndRate S 0..* Element Menge des verabreichten Medikaments #xD; Slices for dose[x] 0..1 Range, SimpleQuantity(4.0.1) Amount of medication per dose Slice: Unordered, Open by type:$this #xD; dose[x]:doseQuantity S 0..1 SimpleQuantity Menge des Medikaments pro Dosis Binding: Dosage DoseQuantity ValueSet (required) #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
version:
  v: 1.0.1
name:
  v: DosageDE
title:
  v: Dosage DE
status:
  v: active
date:
  v: 2025-10-20T12:04:13+02:00
publisher:
  v: HL7 Deutschland e.V.
contact:
  name:
    v: HL7 Deutschland e.V.
  telecom:
    system:
      v: url
    value:
      v: https://hl7.de
description:
  v: Gibt an, wie das Medikament eingenommen oder verabreicht wurde bzw. eingenommen oder verabreicht werden soll - entweder selbst vom Patienten eingenommen oder bei Fremdverabreichung von Dritten (z. B. Leistungserbringer, Angehörige) verabreicht.
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
kind:
  v: complex-type
abstract:
  v: false
type:
  v: Dosage
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Dosage
  link: http://hl7.org/fhir/StructureDefinition/Dosage
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: Dosage
    path:
      v: Dosage
    short:
      v: How the medication is/was taken or should be taken
    definition:
      v: Indicates how the medication is/was taken or should be taken by the patient.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Dosage
      min:
        v: 0
      max:
        v: *
    condition:
      v: ele-1
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: DosageStructuredOrFreeTextWarning
      severity:
        v: warning
      human:
        v: Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt.
      expression:
        v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
      source:
        v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
        link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    constraint:
      key:
        v: DosageStructuredRequiresBoth
      severity:
        v: error
      human:
        v: Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden.
      expression:
        v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
      source:
        v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
        link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    constraint:
      key:
        v: DosageDoseUnitSameCode
      severity:
        v: error
      human:
        v: Die Dosiereinheit muss über alle Dosierungen gleich sein.
      expression:
        v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( doseAndRate.exists() implies %resource.dosageInstruction.doseAndRate.dose.ofType(Quantity).code.distinct().count() = 1 )
      source:
        v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
        link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    constraint:
      key:
        v: DosageWarnungViererschemaInText
      severity:
        v: warning
      human:
        v: Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann.
      expression:
        v: text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
      source:
        v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
        link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    constraint:
      key:
        v: FreeTextSingleDosageOnlyWarning
      severity:
        v: warning
      human:
        v: Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren.
      expression:
        v: ( (%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 )
      source:
        v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
        link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    mapping:
      identity:
        v: rim
      map:
        v: n/a
    mapping:
      identity:
        v: rim
      map:
        v: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
  element:
    id:
      v: Dosage.id
    path:
      v: Dosage.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    mapping:
      identity:
        v: rim
      map:
        v: n/a

url
v: string

id:
  v: Dosage.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Dosage.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Dosage.modifierExtension
path:
  v: Dosage.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Dosage.sequence
path:
  v: Dosage.sequence
short:
  v: The order of the dosage instructions
definition:
  v: Indicates the order in which the dosage instructions should be applied or interpreted.
comment:
  v: 32 bit number; for values larger than this, use decimal
requirements:
  v: If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.sequence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: TQ1-1
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Dosage.text
path:
  v: Dosage.text
short:
  v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
definition:
  v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'. Als Quelle dient hier ausschließlich der Arzt oder Apotheker
comment:
  v: Die Freitextdosierung sollte nur angegeben werden, wenn aufgrund der Komplexität keine strukturierte Dosierung möglich ist, um widersprüchliche Anweisungen zu vermeiden.
requirements:
  v: Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-6; RXE-21
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Dosage.additionalInstruction
path:
  v: Dosage.additionalInstruction
short:
  v: Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness"
definition:
  v: Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
comment:
  v: Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or "immediately following drug x") should be populated in dosage.text.
requirements:
  v: Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, "Swallow with plenty of water" which might or might not be coded.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.additionalInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AdditionalInstruction
  strength:
    v: example
  description:
    v: A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery".
  value set:
    v: http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Dosage.patientInstruction
path:
  v: Dosage.patientInstruction
short:
  v: Patient or consumer oriented instructions
definition:
  v: Instructions in terms that are understood by the patient or consumer.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.patientInstruction
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Dosage.timing
path:
  v: Dosage.timing
short:
  v: Wann das Medikament verabreicht werden soll
definition:
  v: Wann das Medikament verabreicht werden soll.
comment:
  v: Um widersprüchliche Anweisungen zu vermeiden, ist entweder Dosage.timing oder Dosage.text zu befüllen. Falls eine strukturierte Dosierung als Text abgebildet werden soll ist dafür die GeneratedDosageInstructionsMeta Extension zu verwenden.
requirements:
  v: The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.timing
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
  profile:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
    link: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: QSET<TS> (GTS)
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Dosage.asNeeded[x]
path:
  v: Dosage.asNeeded[x]
short:
  v: Take "as needed" (for x)
definition:
  v: Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).
comment:
  v: Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not "prn" or "as needed".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.asNeeded[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: MedicationAsNeededReason
  strength:
    v: example
  description:
    v: A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: TQ1-9
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept

id:
  v: Dosage.site
path:
  v: Dosage.site
short:
  v: Body site to administer to
definition:
  v: Body site to administer to.
comment:
  v: If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.
requirements:
  v: A coded specification of the anatomic site where the medication first enters the body.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.site
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: MedicationAdministrationSite
  strength:
    v: example
  description:
    v: A coded concept describing the site location the medicine enters into or onto the body.
  value set:
    v: http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXR-2
mapping:
  identity:
    v: rim
  map:
    v: .approachSiteCode

id:
  v: Dosage.route
path:
  v: Dosage.route
short:
  v: How drug should enter body
definition:
  v: How drug should enter body.
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
requirements:
  v: A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.route
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: RouteOfAdministration
  strength:
    v: example
  description:
    v: A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
  value set:
    v: http://hl7.org/fhir/ValueSet/route-codes|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXR-1
mapping:
  identity:
    v: rim
  map:
    v: .routeCode

id:
  v: Dosage.method
path:
  v: Dosage.method
short:
  v: Technique for administering medication
definition:
  v: Technique for administering medication.
comment:
  v: Terminologies used often pre-coordinate this term with the route and or form of administration.
requirements:
  v: A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: MedicationAdministrationMethod
  strength:
    v: example
  description:
    v: A coded concept describing the technique by which the medicine is administered.
  value set:
    v: http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXR-4
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: Dosage.doseAndRate
path:
  v: Dosage.doseAndRate
short:
  v: Menge des verabreichten Medikaments
definition:
  v: Die verabreichte Menge des Medikaments.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.doseAndRate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: TQ1-2

id:
  v: Dosage.doseAndRate.id
path:
  v: Dosage.doseAndRate.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Dosage.doseAndRate.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Dosage.doseAndRate.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Dosage.doseAndRate.type
path:
  v: Dosage.doseAndRate.type
short:
  v: The kind of dose or rate specified
definition:
  v: The kind of dose or rate specified, for example, ordered or calculated.
comment:
  v: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
requirements:
  v: If the type is not populated, assume to be "ordered".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: DoseAndRateType
  strength:
    v: example
  description:
    v: The kind of dose or rate specified.
  value set:
    v: http://hl7.org/fhir/ValueSet/dose-rate-type|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXO-21; RXE-23

id:
  v: Dosage.doseAndRate.dose[x]
path:
  v: Dosage.doseAndRate.dose[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Amount of medication per dose
definition:
  v: Amount of medication per dose.
comment:
  v: Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.
requirements:
  v: The amount of therapeutic or other substance given at one administration event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.dose[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    link: 4.0
    link: .1
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-2, RXE-3
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: Dosage.doseAndRate.dose[x]:doseQuantity
path:
  v: Dosage.doseAndRate.dose[x]
slice name:
  v: doseQuantity
short:
  v: Menge des Medikaments pro Dosis
definition:
  v: Menge des Medikaments pro Dosis.
comment:
  v: Beachten Sie, dass dies die Menge des angegebenen Medikaments angibt, nicht die Menge für die einzelnen Wirkstoffe. Jede Wirkstoffmenge kann in der Medication-Ressource kommuniziert werden. Zum Beispiel, wenn man angeben möchte, dass eine Tablette 375 mg enthält und die Dosis eine Tablette beträgt, kann man die Medication-Ressource verwenden, um zu dokumentieren, dass die Tablette aus 375 mg des Wirkstoffs XYZ besteht. Alternativ, wenn die Dosis 375 mg beträgt, muss man möglicherweise nur angeben, dass es sich um eine Tablette handelt. Bei einer Infusion wie Dopamin, bei der 400 mg Dopamin in 500 ml einer Infusionslösung gemischt werden, würde dies alles in der Medication-Ressource kommuniziert werden. Wenn die Verabreichung nicht als sofortig vorgesehen ist (Rate ist vorhanden oder Timing hat eine Dauer), kann dies angegeben werden, um die Gesamtmenge anzugeben, die über den im Zeitplan angegebenen Zeitraum verabreicht werden soll, z. B. 500 ml in der Dosis, wobei Timing verwendet wird, um anzugeben, dass dies über 4 Stunden erfolgen soll.
requirements:
  v: The amount of therapeutic or other substance given at one administration event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.dose[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: http://ig.fhir.de/igs/medication/ValueSet/DosageDoseQuantityDE
    link: http://ig.fhir.de/igs/medication/ValueSet/DosageDoseQuantityDE
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-2, RXE-3
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: Dosage.doseAndRate.rate[x]
path:
  v: Dosage.doseAndRate.rate[x]
short:
  v: Amount of medication per unit of time
definition:
  v: Amount of medication per unit of time.
comment:
  v: It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.
requirements:
  v: Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.rate[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
type:
  code:
    v: Range
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    link: 4.0
    link: .1
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXE22, RXE23, RXE-24
mapping:
  identity:
    v: rim
  map:
    v: .rateQuantity

id:
  v: Dosage.maxDosePerPeriod
path:
  v: Dosage.maxDosePerPeriod
short:
  v: Upper limit on medication per unit of time
definition:
  v: Upper limit on medication per unit of time.
comment:
  v: This is intended for use as an adjunct to the dosage when there is an upper cap. For example "2 tablets every 4 hours to a maximum of 8/day".
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: rat-1
  severity:
    v: error
  human:
    v: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
  expression:
    v: (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
  xpath:
    v: (count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))
  source:
    v: http://hl7.org/fhir/StructureDefinition/Ratio
    link: http://hl7.org/fhir/StructureDefinition/Ratio
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: RTO
mapping:
  identity:
    v: v2
  map:
    v: RXO-23, RXE-19
mapping:
  identity:
    v: rim
  map:
    v: .maxDoseQuantity

id:
  v: Dosage.maxDosePerAdministration
path:
  v: Dosage.maxDosePerAdministration
short:
  v: Upper limit on medication per administration
definition:
  v: Upper limit on medication per administration.
comment:
  v: This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerAdministration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    link: 4.0
    link: .1
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: qty-3
  severity:
    v: error
  human:
    v: If a code for the unit is present, the system SHALL also be present
  expression:
    v: code.empty() or system.exists()
  xpath:
    v: not(exists(f:code)) or exists(f:system)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Quantity
    link: http://hl7.org/fhir/StructureDefinition/Quantity
constraint:
  key:
    v: sqty-1
  severity:
    v: error
  human:
    v: The comparator is not used on a SimpleQuantity
  expression:
    v: comparator.empty()
  xpath:
    v: not(exists(f:comparator))
  source:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: SN (see also Range) or CQ
mapping:
  identity:
    v: rim
  map:
    v: PQ, IVL<PQ>, MO, CO, depending on the values
mapping:
  identity:
    v: rim
  map:
    v: not supported

id:
  v: Dosage.maxDosePerLifetime
path:
  v: Dosage.maxDosePerLifetime
short:
  v: Upper limit on medication per lifetime of the patient
definition:
  v: Upper limit on medication per lifetime of the patient.
comment:
  v: The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerLifetime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    link: 4.0
    link: .1
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: qty-3
  severity:
    v: error
  human:
    v: If a code for the unit is present, the system SHALL also be present
  expression:
    v: code.empty() or system.exists()
  xpath:
    v: not(exists(f:code)) or exists(f:system)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Quantity
    link: http://hl7.org/fhir/StructureDefinition/Quantity
constraint:
  key:
    v: sqty-1
  severity:
    v: error
  human:
    v: The comparator is not used on a SimpleQuantity
  expression:
    v: comparator.empty()
  xpath:
    v: not(exists(f:comparator))
  source:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: SN (see also Range) or CQ
mapping:
  identity:
    v: rim
  map:
    v: PQ, IVL<PQ>, MO, CO, depending on the values
mapping:
  identity:
    v: rim
  map:
    v: not supported

element:
  id:
    v: Dosage
  path:
    v: Dosage
  constraint:
    key:
      v: DosageStructuredOrFreeTextWarning
    severity:
      v: warning
    human:
      v: Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt.
    expression:
      v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
    source:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
  constraint:
    key:
      v: DosageStructuredRequiresBoth
    severity:
      v: error
    human:
      v: Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden.
    expression:
      v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
    source:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
  constraint:
    key:
      v: DosageDoseUnitSameCode
    severity:
      v: error
    human:
      v: Die Dosiereinheit muss über alle Dosierungen gleich sein.
    expression:
      v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( doseAndRate.exists() implies %resource.dosageInstruction.doseAndRate.dose.ofType(Quantity).code.distinct().count() = 1 )
    source:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
  constraint:
    key:
      v: DosageWarnungViererschemaInText
    severity:
      v: warning
    human:
      v: Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann.
    expression:
      v: text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
    source:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
  constraint:
    key:
      v: FreeTextSingleDosageOnlyWarning
    severity:
      v: warning
    human:
      v: Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren.
    expression:
      v: ( (%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 )
    source:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
element:
  id:
    v: Dosage.text
  path:
    v: Dosage.text
  short:
    v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
  definition:
    v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'. Als Quelle dient hier ausschließlich der Arzt oder Apotheker
  comment:
    v: Die Freitextdosierung sollte nur angegeben werden, wenn aufgrund der Komplexität keine strukturierte Dosierung möglich ist, um widersprüchliche Anweisungen zu vermeiden.
  must support:
    v: true
element:
  id:
    v: Dosage.timing
  path:
    v: Dosage.timing
  short:
    v: Wann das Medikament verabreicht werden soll
  definition:
    v: Wann das Medikament verabreicht werden soll.
  comment:
    v: Um widersprüchliche Anweisungen zu vermeiden, ist entweder Dosage.timing oder Dosage.text zu befüllen. Falls eine strukturierte Dosierung als Text abgebildet werden soll ist dafür die GeneratedDosageInstructionsMeta Extension zu verwenden.
  type:
    code:
      v: Timing
    profile:
      v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
      link: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
  must support:
    v: true
element:
  id:
    v: Dosage.doseAndRate
  path:
    v: Dosage.doseAndRate
  short:
    v: Menge des verabreichten Medikaments
  definition:
    v: Die verabreichte Menge des Medikaments.
  must support:
    v: true
element:
  id:
    v: Dosage.doseAndRate.dose[x]
  path:
    v: Dosage.doseAndRate.dose[x]
  slicing:
    discriminator:
      type:
        v: type
      path:
        v: $this
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: Dosage.doseAndRate.dose[x]:doseQuantity
  path:
    v: Dosage.doseAndRate.dose[x]
  slice name:
    v: doseQuantity
  short:
    v: Menge des Medikaments pro Dosis
  definition:
    v: Menge des Medikaments pro Dosis.
  comment:
    v: Beachten Sie, dass dies die Menge des angegebenen Medikaments angibt, nicht die Menge für die einzelnen Wirkstoffe. Jede Wirkstoffmenge kann in der Medication-Ressource kommuniziert werden. Zum Beispiel, wenn man angeben möchte, dass eine Tablette 375 mg enthält und die Dosis eine Tablette beträgt, kann man die Medication-Ressource verwenden, um zu dokumentieren, dass die Tablette aus 375 mg des Wirkstoffs XYZ besteht. Alternativ, wenn die Dosis 375 mg beträgt, muss man möglicherweise nur angeben, dass es sich um eine Tablette handelt. Bei einer Infusion wie Dopamin, bei der 400 mg Dopamin in 500 ml einer Infusionslösung gemischt werden, würde dies alles in der Medication-Ressource kommuniziert werden. Wenn die Verabreichung nicht als sofortig vorgesehen ist (Rate ist vorhanden oder Timing hat eine Dauer), kann dies angegeben werden, um die Gesamtmenge anzugeben, die über den im Zeitplan angegebenen Zeitraum verabreicht werden soll, z. B. 500 ml in der Dosis, wobei Timing verwendet wird, um anzugeben, dass dies über 4 Stunden erfolgen soll.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Quantity
    profile:
      v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
      link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
  must support:
    v: true
  binding:
    strength:
      v: required
    value set:
      v: http://ig.fhir.de/igs/medication/ValueSet/DosageDoseQuantityDE
      link: http://ig.fhir.de/igs/medication/ValueSet/DosageDoseQuantityDE