Medication IG DE
1.0.3 - STU1

Medication IG DE - Downloaded Version 1.0.3 See the Directory of published versions

## Data Type Profile: TimingDgMP - XML Profile

Active as of 2025-11-19

XML representation of the TimingDgMP data type profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="TimingDgMP"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition TimingDgMP</b></p><a name="TimingDgMP"> </a><a name="hcTimingDgMP"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing">Timing</a><a name="Timing"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-TimingDE.html">TimingDE</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.event">event</a><a name="Timing.event"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">When the event occurs</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat">repeat</a><a name="Timing.repeat"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><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 ( TimingOnlyOneType, TimingIntervalOnlyOneFrequency, TimingOnlyOneWhen, TimingOnlyWhenOrTimeOfDay, TimingOnlyOneTimeOfDay, TimingOnlyOneDayOfWeek, TimingOnlyOnePeriodForDayOfWeek, TimingOnlyOneTimeForInterval, TimingOnlyOneBounds, TimingFrequencyCount, TimingPeriodUnit )">C</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Element</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Wann das Ereignis stattfinden soll</span><br class="constraint"/><span title="null" class="constraint">Constraints: </span><span style="font-weight:bold" title="Only one kind of Timing is allowed. Current allowed timings: 4-Scheme, TimeOfDay, DayOfWeek, Interval, DayOfWeek and Time/4-Schema, Interval and Time/4-Schema" class="constraint">TimingOnlyOneType</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="If a dosage is defined by a pure interval, then only one dosage is allowed in the resource." class="constraint">TimingIntervalOnlyOneFrequency</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosages Timings must not state the same period of day across multiple dosage instances" class="constraint">TimingOnlyOneWhen</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosages Timings must not state a time of day and period of day across multiple dosage instances" class="constraint">TimingOnlyWhenOrTimeOfDay</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosages Timings must not state the same time of day across multiple dosage instances" class="constraint">TimingOnlyOneTimeOfDay</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosages Timings must not state the same day across multiple dosage instances" class="constraint">TimingOnlyOneDayOfWeek</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="For schedules using only dayOfWeek with either timeOfDay or when, each (day + period of day/time) combination must be unique across all dosage instructions." class="constraint">TimingOnlyOnePeriodForDayOfWeek</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosage Interval Timings must not state the same time of day across multiple dosage instances" class="constraint">TimingOnlyOneTimeForInterval</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="Dosages Timings must state the same bounds duration across multiple dosage instances" class="constraint">TimingOnlyOneBounds</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="The frequency of the timing needs to reflect the count of timeOfDay or when" class="constraint">TimingFrequencyCount</span><span title="null" class="constraint">, </span><span style="font-weight:bold" title="If weekdays are given the periodUnit must be week, otherwise day" class="constraint">TimingPeriodUnit</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]">bounds[x]</a><a name="Timing.repeat.bounds_x_"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Duration">Duration</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Länge/Bereich der Längen oder (Start- und/oder End-)Grenzen</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck113.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> Slices for bounds[x]<a name="Timing.repeat.bounds_x_.2"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1125.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration" title="Slice boundsDuration">bounds[x]:boundsDuration</a><a name="Timing.repeat.bounds_x_.3"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#Duration">Duration</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Dauer der Dosieranweisung ausgedrückt in UCUM-Einheiten</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration.value">value</a><a name="Timing.repeat.bounds_x_.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Numerical value (with implicit precision)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration.comparator">comparator</a><a name="Timing.repeat.bounds_x_.comparator"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">&lt; | &lt;= | &gt;= | &gt; - how to understand the value</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration.unit">unit</a><a name="Timing.repeat.bounds_x_.unit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Unit representation</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11250.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration.system">system</a><a name="Timing.repeat.bounds_x_.system"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">UCUM-Einheit für die Dauer</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11240.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.bounds[x]:boundsDuration.code">code</a><a name="Timing.repeat.bounds_x_.code"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Coded form of the unit</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-DosageUnitsOfTimeDgMP.html" title="http://ig.fhir.de/igs/medication/ValueSet/DosageUnitsOfTimeDgMP" class="binding">Duration UnitsOfTime dgMP ValueSet</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.count">count</a><a name="Timing.repeat.count"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">Number of times to repeat</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.countMax">countMax</a><a name="Timing.repeat.countMax"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">Maximum number of times to repeat</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.duration">duration</a><a name="Timing.repeat.duration"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">How long when it happens</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.durationMax">durationMax</a><a name="Timing.repeat.durationMax"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">How long when it happens (Max)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.durationUnit">durationUnit</a><a name="Timing.repeat.durationUnit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">s | min | h | d | wk | mo | a - unit of time (UCUM)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.frequency">frequency</a><a name="Timing.repeat.frequency"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#positiveInt">positiveInt</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Ereignis tritt frequency-mal pro Zeitraum auf</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.frequencyMax">frequencyMax</a><a name="Timing.repeat.frequencyMax"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">Event occurs up to frequencyMax times per period</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.period">period</a><a name="Timing.repeat.period"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Ereignis tritt frequency-mal pro Zeitraum auf</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.periodMax">periodMax</a><a name="Timing.repeat.periodMax"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">Upper limit of period (3-4 hours)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.periodUnit">periodUnit</a><a name="Timing.repeat.periodUnit"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">s | min | h | d | wk | mo | a - Zeiteinheit (UCUM)</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-PeriodUnitsOfTimeDgMP.html" title="http://ig.fhir.de/igs/medication/ValueSet/PeriodUnitsOfTimeDgMP" class="binding">Period UnitsOfTime dgMP ValueSet</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.when">when</a><a name="Timing.repeat.when"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Code für den Zeitraum des Auftretens</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-TimingWhenDgMP.html" title="http://ig.fhir.de/igs/medication/ValueSet/TimingWhenDgMP" class="binding">Timing When dgMP</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.repeat.offset">offset</a><a name="Timing.repeat.offset"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">Zeitversatz</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a style="text-decoration:line-through; text-decoration:line-through" href="StructureDefinition-TimingDgMP-definitions.html#Timing.code">code</a><a name="Timing.code"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="text-decoration:line-through"/><span style="text-decoration:line-through">0</span><span style="text-decoration:line-through">..</span><span style="text-decoration:line-through">0</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic">BID | TID | QID | AM | PM | QD | QOD | +</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
      <version value="1.0.3"/>
      <name value="TimingDgMP"/>
      <title value="Timing dgMP"/>
      <status value="active"/>
      <date value="2025-11-19T17:22:58+01:00"/>
      <publisher value="HL7 Deutschland e.V."/>
      <contact>
        <name value="HL7 Deutschland e.V."/>
        <telecom>
          <system value="url"/>
          <value value="https://hl7.de"/>
        </telecom>
      </contact>
      <description
                   value="Beschreibt ein Ereignis, das mehrfach auftreten kann. Zeitpläne werden verwendet, um festzuhalten, wann etwas geplant, erwartet oder angefordert ist. Die häufigste Anwendung ist in Dosierungsanweisungen für Medikamente. Sie werden aber auch für die Planung verschiedener Versorgungsleistungen genutzt und können zur Dokumentation von bereits erfolgten oder laufenden Aktivitäten verwendet werden."/>
      <fhirVersion value="4.0.1"/>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 v2 Mapping"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <kind value="complex-type"/>
      <abstract value="false"/>
      <type value="Timing"/>
      <baseDefinition
                      value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="1.0.3"/>
        </extension>
        <element id="Timing">
          <path value="Timing"/>
          <short
                 value="A timing schedule that specifies an event that may occur multiple times"/>
          <definition
                      value="Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."/>
          <comment
                   value="Describes the occurrence of an event that may occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur, and may also be used to represent the summary of a past or ongoing event.  For simplicity, the definitions of Timing components are expressed as 'future' events, but such components can also be used to describe historic or ongoing events.

    A Timing schedule can be a list of events and/or criteria for when the event happens, which can be expressed in a structured form and/or as a code. When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="QSET&lt;TS&gt; (GTS)"/>
          </mapping>
        </element>
        <element id="Timing.id">
          <path value="Timing.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Timing.extension">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
            <valueCode value="normative"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
            <valueCode value="4.0.0"/>
          </extension>
          <path value="Timing.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Timing.modifierExtension">
          <path value="Timing.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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
                   value="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
                        value="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 value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Timing.event">
          <path value="Timing.event"/>
          <short value="When the event occurs"/>
          <definition value="Identifies specific times when the event occurs."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Der Zeitpunkt des Ereignisses ist in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <requirements
                        value="In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.event"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="QLIST&lt;TS&gt;"/>
          </mapping>
        </element>
        <element id="Timing.repeat">
          <path value="Timing.repeat"/>
          <short value="Wann das Ereignis stattfinden soll"/>
          <definition
                      value="Eine Menge von Regeln, die beschreiben, wann das Ereignis geplant ist."/>
          <requirements
                        value="Many timing schedules are determined by regular repetitions."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Element"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="tim-9"/>
            <severity value="error"/>
            <human
                   value="If there's an offset, there must be a when (and not C, CM, CD, CV)"/>
            <expression
                        value="offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))"/>
            <xpath value="not(exists(f:offset)) or exists(f:when)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-5"/>
            <severity value="error"/>
            <human value="period SHALL be a non-negative value"/>
            <expression value="period.exists() implies period &gt;= 0"/>
            <xpath value="f:period/@value &gt;= 0 or not(f:period/@value)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-6"/>
            <severity value="error"/>
            <human value="If there's a periodMax, there must be a period"/>
            <expression value="periodMax.empty() or period.exists()"/>
            <xpath value="not(exists(f:periodMax)) or exists(f:period)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-7"/>
            <severity value="error"/>
            <human value="If there's a durationMax, there must be a duration"/>
            <expression value="durationMax.empty() or duration.exists()"/>
            <xpath value="not(exists(f:durationMax)) or exists(f:duration)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-8"/>
            <severity value="error"/>
            <human value="If there's a countMax, there must be a count"/>
            <expression value="countMax.empty() or count.exists()"/>
            <xpath value="not(exists(f:countMax)) or exists(f:count)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-1"/>
            <severity value="error"/>
            <human
                   value="if there's a duration, there needs to be duration units"/>
            <expression value="duration.empty() or durationUnit.exists()"/>
            <xpath value="not(exists(f:duration)) or exists(f:durationUnit)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-10"/>
            <severity value="error"/>
            <human
                   value="If there's a timeOfDay, there cannot be a when, or vice versa"/>
            <expression value="timeOfDay.empty() or when.empty()"/>
            <xpath value="not(exists(f:timeOfDay)) or not(exists(f:when))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-2"/>
            <severity value="error"/>
            <human value="if there's a period, there needs to be period units"/>
            <expression value="period.empty() or periodUnit.exists()"/>
            <xpath value="not(exists(f:period)) or exists(f:periodUnit)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="tim-4"/>
            <severity value="error"/>
            <human value="duration SHALL be a non-negative value"/>
            <expression value="duration.exists() implies duration &gt;= 0"/>
            <xpath value="f:duration/@value &gt;= 0 or not(f:duration/@value)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Timing"/>
          </constraint>
          <constraint>
            <key value="TimingSingleDosageForTimeOfDay"/>
            <severity value="error"/>
            <human
                   value="Wenn nur timeOfDay verwendet wird und täglich dosiert wird, ist die Angabe in einem einzigen Dosage-Element zu modellieren. Mehrere Dosage-Elemente sind nur zulässig, wenn sich die Dosis (Wert) unterscheidet."/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.timeOfDay.exists() and
        timing.repeat.when.empty() and
        (timing.repeat.period.exists() and timing.repeat.period = 1) and
        (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
      )
      implies
      (
        (
          (
            %resource.ofType(MedicationRequest).dosageInstruction
            | %resource.ofType(MedicationDispense).dosageInstruction
            | %resource.ofType(MedicationStatement).dosage
          ).where(
            timing.repeat.dayOfWeek.empty() and timing.repeat.timeOfDay.exists() and timing.repeat.when.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
          ).count() = 1
        )
        or
        (
          (
            %resource.ofType(MedicationRequest).dosageInstruction
            | %resource.ofType(MedicationDispense).dosageInstruction
            | %resource.ofType(MedicationStatement).dosage
          ).where(
            timing.repeat.dayOfWeek.empty() and timing.repeat.timeOfDay.exists() and timing.repeat.when.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
          ).doseAndRate.dose.ofType(Quantity).value.distinct().count() &gt; 1
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE"/>
          </constraint>
          <constraint>
            <key value="TimingSingleDosageForWhen"/>
            <severity value="error"/>
            <human
                   value="Wenn nur when verwendet wird und täglich dosiert wird, ist die Angabe in einem einzigen Dosage-Element zu modellieren. Mehrere Dosage-Elemente sind nur zulässig, wenn sich die Dosis (Wert) unterscheidet."/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.when.exists() and
        timing.repeat.timeOfDay.empty() and
        (timing.repeat.period.exists() and timing.repeat.period = 1) and
        (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
      )
      implies
      (
        (
          (
            %resource.ofType(MedicationRequest).dosageInstruction
            | %resource.ofType(MedicationDispense).dosageInstruction
            | %resource.ofType(MedicationStatement).dosage
          ).where(
            timing.repeat.dayOfWeek.empty() and timing.repeat.when.exists() and timing.repeat.timeOfDay.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
          ).count() = 1
        )
        or
        (
          (
            %resource.ofType(MedicationRequest).dosageInstruction
            | %resource.ofType(MedicationDispense).dosageInstruction
            | %resource.ofType(MedicationStatement).dosage
          ).where(
            timing.repeat.dayOfWeek.empty() and timing.repeat.when.exists() and timing.repeat.timeOfDay.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd')
          ).doseAndRate.dose.ofType(Quantity).value.distinct().count() &gt; 1
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE"/>
          </constraint>
          <constraint>
            <key value="TimingBoundsUnitMatchesCode"/>
            <severity value="error"/>
            <human
                   value="boundsDuration.unit muss zur UCUM boundsDuration.code passen (z. B. 'Woche(n)' nur mit code='wk')."/>
            <expression
                        value="bounds.ofType(Duration).exists().not() or (
      (
        bounds.ofType(Duration).code = 'd'
        implies
        (
          bounds.ofType(Duration).unit = 'Tag(e)' or
          bounds.ofType(Duration).unit = 'Tag' or
          bounds.ofType(Duration).unit = 'Tage'
        )
      ) and (
        bounds.ofType(Duration).code = 'wk'
        implies
        (
          bounds.ofType(Duration).unit = 'Woche(n)' or
          bounds.ofType(Duration).unit = 'Woche' or
          bounds.ofType(Duration).unit = 'Wochen'
        )
      ) and (
        bounds.ofType(Duration).code = 'mo'
        implies
        (
          bounds.ofType(Duration).unit = 'Monat(e)' or
          bounds.ofType(Duration).unit = 'Monat' or
          bounds.ofType(Duration).unit = 'Monate'
        )
      ) and (
        bounds.ofType(Duration).code = 'a'
        implies
        (
          bounds.ofType(Duration).unit = 'Jahr(e)' or
          bounds.ofType(Duration).unit = 'Jahr' or
          bounds.ofType(Duration).unit = 'Jahre'
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneType"/>
            <severity value="error"/>
            <human
                   value="Only one kind of Timing is allowed. Current allowed timings: 4-Scheme, TimeOfDay, DayOfWeek, Interval, DayOfWeek and Time/4-Schema, Interval and Time/4-Schema"/>
            <expression
                        value="/* DayOfWeek */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.dayOfWeek.exists() and
      timing.repeat.frequency.exists() and
      (timing.repeat.period.exists() and timing.repeat.period = 1) and
      (timing.repeat.periodUnit.exists()) and
      timing.repeat.when.empty() and
      timing.repeat.timeOfDay.empty()
    ) or

    /* Interval */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.frequency.exists() and
      timing.repeat.period.exists() and
      timing.repeat.periodUnit.exists() and
      timing.repeat.when.empty() and
      timing.repeat.timeOfDay.empty() and
      timing.repeat.dayOfWeek.empty()
    ) or

    /* DayOfWeek and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.dayOfWeek.exists() and
      timing.repeat.frequency.exists() and
      (timing.repeat.period.exists() and timing.repeat.period = 1) and
      (timing.repeat.periodUnit.exists()) and
      (
        (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
        (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
      )
    ) or

    /* Interval and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.frequency.exists() and
      timing.repeat.period.exists() and
      timing.repeat.periodUnit.exists() and
      timing.repeat.dayOfWeek.empty() and
      (
        (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
        (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingIntervalOnlyOneFrequency"/>
            <severity value="error"/>
            <human
                   value="If a dosage is defined by a pure interval, then only one dosage is allowed in the resource."/>
            <expression
                        value="( /* Detect Interval */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    )
    .all(
      (
        timing.repeat.frequency.exists()
        and timing.repeat.period.exists()
        and timing.repeat.periodUnit.exists()
        and timing.repeat.when.empty()
        and timing.repeat.timeOfDay.empty()
        and timing.repeat.dayOfWeek.empty()
      )
      /* Only One Dosage allowed for Interval */
      implies
      (
        (
          (
            %resource.ofType(MedicationRequest).exists()
            or %resource.ofType(MedicationDispense).exists()
          )
          implies (
            %resource.dosageInstruction.count() = 1
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          %resource.dosage.count() = 1
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneWhen"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same period of day across multiple dosage instances"/>
            <expression
                        value="( /* Detect 4-Schema */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.when.exists() and
        timing.repeat.timeOfDay.empty()
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.when.distinct().count() = %resource.dosageInstruction.timing.repeat.when.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.when.distinct().count() = %resource.dosage.timing.repeat.when.count())
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyWhenOrTimeOfDay"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state a time of day and period of day across multiple dosage instances"/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        (timing.repeat.when.exists() or
        timing.repeat.timeOfDay.exists())
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.when.exists() xor %resource.dosageInstruction.timing.repeat.timeOfDay.exists())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.when.exists() xor %resource.dosage.timing.repeat.timeOfDay.exists())
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneTimeOfDay"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same time of day across multiple dosage instances"/>
            <expression
                        value="( /* Detect TimeOfDay */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.timeOfDay.exists() and
        timing.repeat.when.empty()
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.timeOfDay.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.timeOfDay.distinct().count() = %resource.dosage.timing.repeat.timeOfDay.count())
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneDayOfWeek"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same day across multiple dosage instances"/>
            <expression
                        value="( /* Detect DayOfWeek */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.exists() and
        timing.repeat.when.empty() and
        timing.repeat.timeOfDay.empty()
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.dayOfWeek.distinct().count() = %resource.dosageInstruction.timing.repeat.dayOfWeek.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.dayOfWeek.distinct().count() = %resource.dosage.timing.repeat.dayOfWeek.count())
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOnePeriodForDayOfWeek"/>
            <severity value="error"/>
            <human
                   value="For schedules using only dayOfWeek with either timeOfDay or when, each (day + period of day/time) combination must be unique across all dosage instructions."/>
            <expression
                        value="( /* Detect DayOfWeek and Time/4-Schema */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.dayOfWeek.exists() and
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
          (
            (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
            (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
          )
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (
            /* For each day of week */
            /* if Mon occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'mon')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'mon').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).timeOfDay.count())
            )) and

            /* if tue occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'tue')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'tue').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).timeOfDay.count())
            )) and
            /* if wed occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'wed')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'wed').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).timeOfDay.count())
            )) and
            /* if thu occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'thu')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'thu').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).timeOfDay.count())
            )) and
            /* if fri occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'fri')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'fri').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).timeOfDay.count())
            )) and
            /* if sat occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'sat')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'sat').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).timeOfDay.count())
            )) and

            /* if sun occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'sun')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'sun').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).timeOfDay.count())
            ))
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (
            /* For each day of week */
            /* if Mon occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'mon')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'mon').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('mon' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('mon' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('mon' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('mon' in dayOfWeek).timeOfDay.count())
            )) and

            /* if tue occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'tue')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'tue').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('tue' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('tue' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('tue' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('tue' in dayOfWeek).timeOfDay.count())
            )) and
            /* if wed occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'wed')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'wed').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('wed' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('wed' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('wed' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('wed' in dayOfWeek).timeOfDay.count())
            )) and
            /* if thu occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'thu')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'thu').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('thu' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('thu' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('thu' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('thu' in dayOfWeek).timeOfDay.count())
            )) and
            /* if fri occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'fri')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'fri').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('fri' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('fri' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('fri' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('fri' in dayOfWeek).timeOfDay.count())
            )) and
            /* if sat occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'sat')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'sat').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('sat' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('sat' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('sat' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('sat' in dayOfWeek).timeOfDay.count())
            )) and

            /* if sun occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'sun')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'sun').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('sun' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('sun' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('sun' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('sun' in dayOfWeek).timeOfDay.count())
            ))
          )
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneTimeForInterval"/>
            <severity value="error"/>
            <human
                   value="Dosage Interval Timings must not state the same time of day across multiple dosage instances"/>
            <expression
                        value="/* Detect Interval and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    )
    .all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        (
          (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
          (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
        )
      )
      implies
      (
        (
          %resource.ofType(MedicationRequest).exists()
          or %resource.ofType(MedicationDispense).exists()
        )
        implies
        (
          %resource.dosageInstruction.timing.repeat.period.distinct().count() = 1
          and %resource.dosageInstruction.timing.repeat.periodUnit.distinct().count() = 1
        )
        and
        (
          (%resource.dosageInstruction.timing.repeat.timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.timeOfDay.count())
          and
          (%resource.dosageInstruction.timing.repeat.when.distinct().count() = %resource.dosageInstruction.timing.repeat.when.count())
        )
      )
      and
      (
        %resource.ofType(MedicationStatement).exists()
        implies
        (
          (
            %resource.ofType(MedicationRequest).exists()
            or %resource.ofType(MedicationDispense).exists()
          )
          implies
          (
            %resource.dosage.timing.repeat.period.distinct().count() = 1
            and %resource.dosage.timing.repeat.periodUnit.distinct().count() = 1
          )
          and
          (
            (%resource.dosage.timing.repeat.timeOfDay.distinct().count() = %resource.dosage.timing.repeat.timeOfDay.count())
            and
            (%resource.dosage.timing.repeat.when.distinct().count() = %resource.dosage.timing.repeat.when.count())
          )
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneBounds"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must state the same bounds duration across multiple dosage instances"/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        ( /* only one different value and code are allowed*/
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          %resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).exists().not() or
          (
            (%resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).value.distinct().count() = 1)
            and
            (%resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).code.distinct().count() = 1)
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          %resource.dosage.timing.repeat.bounds.ofType(Duration).exists().not() or
          (
            (%resource.dosage.timing.repeat.bounds.ofType(Duration).value.distinct().count() = 1)
            and
            (%resource.dosage.timing.repeat.bounds.ofType(Duration).code.distinct().count() = 1)
          )
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingFrequencyCount"/>
            <severity value="error"/>
            <human
                   value="The frequency of the timing needs to reflect the count of timeOfDay or when"/>
            <expression
                        value="(when.exists() and dayOfWeek.empty() implies when.count() = frequency)
    and
    (when.exists() and dayOfWeek.exists() implies (when.count() * dayOfWeek.count()) = frequency)
    and
    (timeOfDay.exists() and dayOfWeek.empty() implies timeOfDay.count() = frequency)
    and
    (timeOfDay.exists() and dayOfWeek.exists() implies (timeOfDay.count() * dayOfWeek.count()) = frequency)
    and
    (dayOfWeek.exists() and timeOfDay.empty() and when.empty() implies dayOfWeek.count() = frequency)"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingPeriodUnit"/>
            <severity value="error"/>
            <human
                   value="If weekdays are given the periodUnit must be week, otherwise day"/>
            <expression
                        value="(dayOfWeek.exists() implies periodUnit = 'wk')
    and
    ((dayOfWeek.empty() and (when.exists() or timeOfDay.exists())) implies periodUnit = 'd')"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Implies PIVL or EIVL"/>
          </mapping>
        </element>
        <element id="Timing.repeat.id">
          <path value="Timing.repeat.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Timing.repeat.extension">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
            <valueCode value="normative"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
            <valueCode value="4.0.0"/>
          </extension>
          <path value="Timing.repeat.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]">
          <path value="Timing.repeat.bounds[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short
                 value="Länge/Bereich der Längen oder (Start- und/oder End-)Grenzen"/>
          <definition
                      value="Entweder eine Dauer für die Länge des Zeitplans, ein Bereich möglicher Längen oder äußere Begrenzungen für Start- und/oder Endgrenzen des Zeitplans."/>
          <comment
                   value="Begründung Einschränkung Datentyp: Nur eine Angabe zur Dauer ist in der ersten Ausbaustufe des dgMP vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.bounds[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Duration"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL(TS) used in a QSI"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration">
          <path value="Timing.repeat.bounds[x]"/>
          <sliceName value="boundsDuration"/>
          <short value="Dauer der Dosieranweisung ausgedrückt in UCUM-Einheiten"/>
          <definition
                      value="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.bounds[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Duration"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL(TS) used in a QSI"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.id">
          <path value="Timing.repeat.bounds[x].id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.extension">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
            <valueCode value="normative"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
            <valueCode value="4.0.0"/>
          </extension>
          <path value="Timing.repeat.bounds[x].extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.value">
          <path value="Timing.repeat.bounds[x].value"/>
          <short value="Numerical value (with implicit precision)"/>
          <definition
                      value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/>
          <comment
                   value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."/>
          <requirements
                        value="Precision is handled implicitly in almost all cases of measurement."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SN.2  / CQ - N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.comparator">
          <path value="Timing.repeat.bounds[x].comparator"/>
          <short
                 value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value"/>
          <definition
                      value="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is &quot;&lt;&quot; , then the real value is &lt; stated value."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <requirements
                        value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Quantity.comparator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If there is no comparator, then there is no modification of the value"/>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator"/>
            </extension>
            <strength value="required"/>
            <description
                         value="How the Quantity should be understood and represented."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SN.1  / CQ.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL properties"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.unit">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Timing.repeat.bounds[x].unit"/>
          <short value="Unit representation"/>
          <definition value="A human-readable form of the unit."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <requirements
                        value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.unit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.unit"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.system">
          <path value="Timing.repeat.bounds[x].system"/>
          <short value="UCUM-Einheit für die Dauer"/>
          <definition
                      value="The identification of the system that provides the coded form of the unit."/>
          <comment
                   value="Die UCUM-Einheit für die Dauer, z. B. d für Tag, h für Stunde, min für Minute."/>
          <requirements
                        value="Need to know the system that defines the coded form of the unit."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <fixedUri value="http://unitsofmeasure.org"/>
          <condition value="ele-1"/>
          <condition value="qty-3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CO.codeSystem, PQ.translation.codeSystem"/>
          </mapping>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.code">
          <path value="Timing.repeat.bounds[x].code"/>
          <short value="Coded form of the unit"/>
          <definition
                      value="A computer processable form of the unit in some unit representation system."/>
          <comment
                   value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system."/>
          <requirements
                        value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Quantity.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/DosageUnitsOfTimeDgMP"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.code, MO.currency, PQ.translation.code"/>
          </mapping>
        </element>
        <element id="Timing.repeat.count">
          <path value="Timing.repeat.count"/>
          <short value="Number of times to repeat"/>
          <definition
                      value="A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Wiederholungen sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <requirements
                        value="Repetitions may be limited by end time or total occurrences."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.count"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.count"/>
          </mapping>
        </element>
        <element id="Timing.repeat.countMax">
          <path value="Timing.repeat.countMax"/>
          <short value="Maximum number of times to repeat"/>
          <definition
                      value="If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Maximale Wiederholungen sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.countMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.count"/>
          </mapping>
        </element>
        <element id="Timing.repeat.duration">
          <path value="Timing.repeat.duration"/>
          <short value="How long when it happens"/>
          <definition
                      value="How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur Dauer einer Einzelgabe sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <requirements
                        value="Some activities are not instantaneous and need to be maintained for a period of time."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.durationMax">
          <path value="Timing.repeat.durationMax"/>
          <short value="How long when it happens (Max)"/>
          <definition
                      value="If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur maximalen Dauer einer Einzelgabe sind in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <requirements
                        value="Some activities are not instantaneous and need to be maintained for a period of time."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.durationMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.durationUnit">
          <path value="Timing.repeat.durationUnit"/>
          <short value="s | min | h | d | wk | mo | a - unit of time (UCUM)"/>
          <definition value="The units of time for the duration, in UCUM units."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur Einheit der Dauer einer Einzelgabe sind in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.durationUnit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="UnitsOfTime"/>
            </extension>
            <strength value="required"/>
            <description value="A unit of time (units from UCUM)."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/units-of-time|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase.unit"/>
          </mapping>
        </element>
        <element id="Timing.repeat.frequency">
          <path value="Timing.repeat.frequency"/>
          <short value="Ereignis tritt frequency-mal pro Zeitraum auf"/>
          <definition
                      value="Die Anzahl der Wiederholungen innerhalb des angegebenen Zeitraums. Falls frequencyMax vorhanden ist, gibt dieses Element die Untergrenze des zulässigen Bereichs der Häufigkeit an."/>
          <comment
                   value="32 bit number; for values larger than this, use decimal"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.frequency"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <meaningWhenMissing
                              value="If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this"/>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.frequencyMax">
          <path value="Timing.repeat.frequencyMax"/>
          <short value="Event occurs up to frequencyMax times per period"/>
          <definition
                      value="If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Eine maximale Frequenz ist in der ersten Ausbaustufe des dgMP nicht vorgesehen - es wird immer eine Frequenz explizit gesetzt, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.frequencyMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.period">
          <path value="Timing.repeat.period"/>
          <short value="Ereignis tritt frequency-mal pro Zeitraum auf"/>
          <definition
                      value="Gibt die Zeitspanne an, über die die Wiederholungen stattfinden sollen; z. B. um „3-mal täglich“ auszudrücken, wäre 3 die Häufigkeit und „1 Tag“ der Zeitraum. Falls periodMax vorhanden ist, gibt dieses Element die Untergrenze des zulässigen Bereichs der Zeitspanne an."/>
          <comment
                   value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.periodMax">
          <path value="Timing.repeat.periodMax"/>
          <short value="Upper limit of period (3-4 hours)"/>
          <definition
                      value="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as &quot;do this once every 3-5 days."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Eine maximale Periodendauer ist in der ersten Ausbaustufe des dgMP nicht vorgesehen - es wird immer eine Dauer explizit gesetzt, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.periodMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase"/>
          </mapping>
        </element>
        <element id="Timing.repeat.periodUnit">
          <path value="Timing.repeat.periodUnit"/>
          <short value="s | min | h | d | wk | mo | a - Zeiteinheit (UCUM)"/>
          <definition
                      value="Die Zeiteinheit für den Zeitraum, in UCUM-Einheiten."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Timing.repeat.periodUnit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/PeriodUnitsOfTimeDgMP"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PIVL.phase.unit"/>
          </mapping>
        </element>
        <element id="Timing.repeat.dayOfWeek">
          <path value="Timing.repeat.dayOfWeek"/>
          <short value="mon | tue | wed | thu | fri | sat | sun"/>
          <definition
                      value="Wenn ein oder mehrere Wochentage angegeben sind, findet die Aktion nur an den angegebenen Tagen statt."/>
          <comment
                   value="Wenn keine Tage angegeben sind, wird angenommen, dass die Aktion an jedem Tag wie sonst angegeben stattfindet."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.dayOfWeek"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DayOfWeek"/>
            </extension>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Timing.repeat.timeOfDay">
          <path value="Timing.repeat.timeOfDay"/>
          <short value="Tageszeit für die Aktion"/>
          <definition
                      value="Angegebene Tageszeit, zu der die Aktion stattfinden soll."/>
          <comment
                   value="Wenn eine Tageszeit angegeben ist, wird angenommen, dass die Aktion jeden Tag (ggf. gefiltert durch dayOfWeek) zu den angegebenen Zeiten stattfindet."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.timeOfDay"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="time"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Timing.repeat.when">
          <path value="Timing.repeat.when"/>
          <short value="Code für den Zeitraum des Auftretens"/>
          <definition
                      value="Ein ungefährer Zeitraum während des Tages, der möglicherweise mit einem Ereignis des täglichen Lebens verknüpft ist und angibt, wann die Aktion stattfinden soll."/>
          <comment
                   value="Wenn mehr als ein Ereignis angegeben ist, bezieht sich das Ereignis auf die Vereinigung der angegebenen Ereignisse."/>
          <requirements
                        value="Timings are frequently determined by occurrences such as waking, eating and sleep."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Timing.repeat.when"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/TimingWhenDgMP"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="EIVL.event"/>
          </mapping>
        </element>
        <element id="Timing.repeat.offset">
          <path value="Timing.repeat.offset"/>
          <short value="Zeitversatz"/>
          <definition
                      value="The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Ein Zeitversatz ist in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.repeat.offset"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="unsignedInt"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="EIVL.offset"/>
          </mapping>
        </element>
        <element id="Timing.code">
          <path value="Timing.code"/>
          <short value="BID | TID | QID | AM | PM | QD | QOD | +"/>
          <definition
                      value="A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)."/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Ein Timing-Code ist in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen. Stattdessen muss das Zeitmuster explizit strukturiert angegeben werden."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Timing.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TimingAbbreviation"/>
            </extension>
            <strength value="preferred"/>
            <description value="Code for a known / defined timing pattern."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/timing-abbreviation|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="QSC.code"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="Timing.event">
          <path value="Timing.event"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Der Zeitpunkt des Ereignisses ist in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat">
          <path value="Timing.repeat"/>
          <min value="1"/>
          <constraint>
            <key value="TimingOnlyOneType"/>
            <severity value="error"/>
            <human
                   value="Only one kind of Timing is allowed. Current allowed timings: 4-Scheme, TimeOfDay, DayOfWeek, Interval, DayOfWeek and Time/4-Schema, Interval and Time/4-Schema"/>
            <expression
                        value="/* DayOfWeek */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.dayOfWeek.exists() and
      timing.repeat.frequency.exists() and
      (timing.repeat.period.exists() and timing.repeat.period = 1) and
      (timing.repeat.periodUnit.exists()) and
      timing.repeat.when.empty() and
      timing.repeat.timeOfDay.empty()
    ) or

    /* Interval */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.frequency.exists() and
      timing.repeat.period.exists() and
      timing.repeat.periodUnit.exists() and
      timing.repeat.when.empty() and
      timing.repeat.timeOfDay.empty() and
      timing.repeat.dayOfWeek.empty()
    ) or

    /* DayOfWeek and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.dayOfWeek.exists() and
      timing.repeat.frequency.exists() and
      (timing.repeat.period.exists() and timing.repeat.period = 1) and
      (timing.repeat.periodUnit.exists()) and
      (
        (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
        (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
      )
    ) or

    /* Interval and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction |
      ofType(MedicationDispense).dosageInstruction |
      ofType(MedicationStatement).dosage
    ).all(
      timing.repeat.frequency.exists() and
      timing.repeat.period.exists() and
      timing.repeat.periodUnit.exists() and
      timing.repeat.dayOfWeek.empty() and
      (
        (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
        (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingIntervalOnlyOneFrequency"/>
            <severity value="error"/>
            <human
                   value="If a dosage is defined by a pure interval, then only one dosage is allowed in the resource."/>
            <expression
                        value="( /* Detect Interval */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    )
    .all(
      (
        timing.repeat.frequency.exists()
        and timing.repeat.period.exists()
        and timing.repeat.periodUnit.exists()
        and timing.repeat.when.empty()
        and timing.repeat.timeOfDay.empty()
        and timing.repeat.dayOfWeek.empty()
      )
      /* Only One Dosage allowed for Interval */
      implies
      (
        (
          (
            %resource.ofType(MedicationRequest).exists()
            or %resource.ofType(MedicationDispense).exists()
          )
          implies (
            %resource.dosageInstruction.count() = 1
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          %resource.dosage.count() = 1
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneWhen"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same period of day across multiple dosage instances"/>
            <expression
                        value="( /* Detect 4-Schema */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.when.exists() and
        timing.repeat.timeOfDay.empty()
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.when.distinct().count() = %resource.dosageInstruction.timing.repeat.when.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.when.distinct().count() = %resource.dosage.timing.repeat.when.count())
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyWhenOrTimeOfDay"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state a time of day and period of day across multiple dosage instances"/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        (timing.repeat.when.exists() or
        timing.repeat.timeOfDay.exists())
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.when.exists() xor %resource.dosageInstruction.timing.repeat.timeOfDay.exists())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.when.exists() xor %resource.dosage.timing.repeat.timeOfDay.exists())
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneTimeOfDay"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same time of day across multiple dosage instances"/>
            <expression
                        value="( /* Detect TimeOfDay */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        timing.repeat.timeOfDay.exists() and
        timing.repeat.when.empty()
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.timeOfDay.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.timeOfDay.distinct().count() = %resource.dosage.timing.repeat.timeOfDay.count())
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneDayOfWeek"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must not state the same day across multiple dosage instances"/>
            <expression
                        value="( /* Detect DayOfWeek */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.exists() and
        timing.repeat.when.empty() and
        timing.repeat.timeOfDay.empty()
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (%resource.dosageInstruction.timing.repeat.dayOfWeek.distinct().count() = %resource.dosageInstruction.timing.repeat.dayOfWeek.count())
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (%resource.dosage.timing.repeat.dayOfWeek.distinct().count() = %resource.dosage.timing.repeat.dayOfWeek.count())
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOnePeriodForDayOfWeek"/>
            <severity value="error"/>
            <human
                   value="For schedules using only dayOfWeek with either timeOfDay or when, each (day + period of day/time) combination must be unique across all dosage instructions."/>
            <expression
                        value="( /* Detect DayOfWeek and Time/4-Schema */
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        timing.repeat.dayOfWeek.exists() and
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
          (
            (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
            (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
          )
      )
      implies
      (
        (
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          (
            /* For each day of week */
            /* if Mon occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'mon')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'mon').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('mon' in dayOfWeek).timeOfDay.count())
            )) and

            /* if tue occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'tue')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'tue').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('tue' in dayOfWeek).timeOfDay.count())
            )) and
            /* if wed occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'wed')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'wed').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('wed' in dayOfWeek).timeOfDay.count())
            )) and
            /* if thu occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'thu')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'thu').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('thu' in dayOfWeek).timeOfDay.count())
            )) and
            /* if fri occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'fri')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'fri').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('fri' in dayOfWeek).timeOfDay.count())
            )) and
            /* if sat occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'sat')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'sat').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sat' in dayOfWeek).timeOfDay.count())
            )) and

            /* if sun occurs multiple times */
            ((
              %resource.dosageInstruction.timing.repeat.dayOfWeek
              .where($this = 'sun')
              .where(%resource.dosageInstruction.timing.repeat.dayOfWeek.where($this = 'sun').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).when.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).when.count()) and
              (%resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.where('sun' in dayOfWeek).timeOfDay.count())
            ))
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          (
            /* For each day of week */
            /* if Mon occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'mon')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'mon').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('mon' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('mon' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('mon' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('mon' in dayOfWeek).timeOfDay.count())
            )) and

            /* if tue occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'tue')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'tue').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('tue' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('tue' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('tue' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('tue' in dayOfWeek).timeOfDay.count())
            )) and
            /* if wed occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'wed')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'wed').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('wed' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('wed' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('wed' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('wed' in dayOfWeek).timeOfDay.count())
            )) and
            /* if thu occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'thu')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'thu').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('thu' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('thu' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('thu' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('thu' in dayOfWeek).timeOfDay.count())
            )) and
            /* if fri occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'fri')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'fri').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('fri' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('fri' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('fri' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('fri' in dayOfWeek).timeOfDay.count())
            )) and
            /* if sat occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'sat')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'sat').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('sat' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('sat' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('sat' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('sat' in dayOfWeek).timeOfDay.count())
            )) and

            /* if sun occurs multiple times */
            ((
              %resource.dosage.timing.repeat.dayOfWeek
              .where($this = 'sun')
              .where(%resource.dosage.timing.repeat.dayOfWeek.where($this = 'sun').count() &gt; 1)
              .distinct()
            ) implies
            (
              (%resource.dosage.timing.repeat.where('sun' in dayOfWeek).when.distinct().count() = %resource.dosage.timing.repeat.where('sun' in dayOfWeek).when.count()) and
              (%resource.dosage.timing.repeat.where('sun' in dayOfWeek).timeOfDay.distinct().count() = %resource.dosage.timing.repeat.where('sun' in dayOfWeek).timeOfDay.count())
            ))
          )
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneTimeForInterval"/>
            <severity value="error"/>
            <human
                   value="Dosage Interval Timings must not state the same time of day across multiple dosage instances"/>
            <expression
                        value="/* Detect Interval and Time/4-Schema */
    (
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    )
    .all(
      (
        timing.repeat.frequency.exists() and
        timing.repeat.period.exists() and
        timing.repeat.periodUnit.exists() and
        timing.repeat.dayOfWeek.empty() and
        (
          (timing.repeat.timeOfDay.exists() and timing.repeat.when.empty()) or
          (timing.repeat.when.exists() and timing.repeat.timeOfDay.empty())
        )
      )
      implies
      (
        (
          %resource.ofType(MedicationRequest).exists()
          or %resource.ofType(MedicationDispense).exists()
        )
        implies
        (
          %resource.dosageInstruction.timing.repeat.period.distinct().count() = 1
          and %resource.dosageInstruction.timing.repeat.periodUnit.distinct().count() = 1
        )
        and
        (
          (%resource.dosageInstruction.timing.repeat.timeOfDay.distinct().count() = %resource.dosageInstruction.timing.repeat.timeOfDay.count())
          and
          (%resource.dosageInstruction.timing.repeat.when.distinct().count() = %resource.dosageInstruction.timing.repeat.when.count())
        )
      )
      and
      (
        %resource.ofType(MedicationStatement).exists()
        implies
        (
          (
            %resource.ofType(MedicationRequest).exists()
            or %resource.ofType(MedicationDispense).exists()
          )
          implies
          (
            %resource.dosage.timing.repeat.period.distinct().count() = 1
            and %resource.dosage.timing.repeat.periodUnit.distinct().count() = 1
          )
          and
          (
            (%resource.dosage.timing.repeat.timeOfDay.distinct().count() = %resource.dosage.timing.repeat.timeOfDay.count())
            and
            (%resource.dosage.timing.repeat.when.distinct().count() = %resource.dosage.timing.repeat.when.count())
          )
        )
      )
    )
    "/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingOnlyOneBounds"/>
            <severity value="error"/>
            <human
                   value="Dosages Timings must state the same bounds duration across multiple dosage instances"/>
            <expression
                        value="(
      %resource.ofType(MedicationRequest).dosageInstruction
      | %resource.ofType(MedicationDispense).dosageInstruction
      | %resource.ofType(MedicationStatement).dosage
    ).all(
      (
        ( /* only one different value and code are allowed*/
          (%resource.ofType(MedicationRequest).exists() or %resource.ofType(MedicationDispense).exists())
          implies
          %resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).exists().not() or
          (
            (%resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).value.distinct().count() = 1)
            and
            (%resource.dosageInstruction.timing.repeat.bounds.ofType(Duration).code.distinct().count() = 1)
          )
        )
        and
        (
          %resource.ofType(MedicationStatement).exists()
          implies
          %resource.dosage.timing.repeat.bounds.ofType(Duration).exists().not() or
          (
            (%resource.dosage.timing.repeat.bounds.ofType(Duration).value.distinct().count() = 1)
            and
            (%resource.dosage.timing.repeat.bounds.ofType(Duration).code.distinct().count() = 1)
          )
        )
      )
    )"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingFrequencyCount"/>
            <severity value="error"/>
            <human
                   value="The frequency of the timing needs to reflect the count of timeOfDay or when"/>
            <expression
                        value="(when.exists() and dayOfWeek.empty() implies when.count() = frequency)
    and
    (when.exists() and dayOfWeek.exists() implies (when.count() * dayOfWeek.count()) = frequency)
    and
    (timeOfDay.exists() and dayOfWeek.empty() implies timeOfDay.count() = frequency)
    and
    (timeOfDay.exists() and dayOfWeek.exists() implies (timeOfDay.count() * dayOfWeek.count()) = frequency)
    and
    (dayOfWeek.exists() and timeOfDay.empty() and when.empty() implies dayOfWeek.count() = frequency)"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
          <constraint>
            <key value="TimingPeriodUnit"/>
            <severity value="error"/>
            <human
                   value="If weekdays are given the periodUnit must be week, otherwise day"/>
            <expression
                        value="(dayOfWeek.exists() implies periodUnit = 'wk')
    and
    ((dayOfWeek.empty() and (when.exists() or timeOfDay.exists())) implies periodUnit = 'd')"/>
            <source
                    value="http://ig.fhir.de/igs/medication/StructureDefinition/TimingDgMP"/>
          </constraint>
        </element>
        <element id="Timing.repeat.bounds[x]">
          <path value="Timing.repeat.bounds[x]"/>
          <comment
                   value="Begründung Einschränkung Datentyp: Nur eine Angabe zur Dauer ist in der ersten Ausbaustufe des dgMP vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <type>
            <code value="Duration"/>
          </type>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration">
          <path value="Timing.repeat.bounds[x]"/>
          <sliceName value="boundsDuration"/>
          <type>
            <code value="Duration"/>
          </type>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.value">
          <path value="Timing.repeat.bounds[x].value"/>
          <min value="1"/>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.comparator">
          <path value="Timing.repeat.bounds[x].comparator"/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.unit">
          <path value="Timing.repeat.bounds[x].unit"/>
          <min value="1"/>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.system">
          <path value="Timing.repeat.bounds[x].system"/>
          <min value="1"/>
        </element>
        <element id="Timing.repeat.bounds[x]:boundsDuration.code">
          <path value="Timing.repeat.bounds[x].code"/>
          <min value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/DosageUnitsOfTimeDgMP"/>
          </binding>
        </element>
        <element id="Timing.repeat.count">
          <path value="Timing.repeat.count"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Wiederholungen sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.countMax">
          <path value="Timing.repeat.countMax"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Maximale Wiederholungen sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.duration">
          <path value="Timing.repeat.duration"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur Dauer einer Einzelgabe sind in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.durationMax">
          <path value="Timing.repeat.durationMax"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur maximalen Dauer einer Einzelgabe sind in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.durationUnit">
          <path value="Timing.repeat.durationUnit"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Angaben zur Einheit der Dauer einer Einzelgabe sind in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.frequency">
          <path value="Timing.repeat.frequency"/>
          <min value="1"/>
        </element>
        <element id="Timing.repeat.frequencyMax">
          <path value="Timing.repeat.frequencyMax"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Eine maximale Frequenz ist in der ersten Ausbaustufe des dgMP nicht vorgesehen - es wird immer eine Frequenz explizit gesetzt, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.period">
          <path value="Timing.repeat.period"/>
          <min value="1"/>
        </element>
        <element id="Timing.repeat.periodMax">
          <path value="Timing.repeat.periodMax"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Eine maximale Periodendauer ist in der ersten Ausbaustufe des dgMP nicht vorgesehen - es wird immer eine Dauer explizit gesetzt, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.repeat.periodUnit">
          <path value="Timing.repeat.periodUnit"/>
          <min value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/PeriodUnitsOfTimeDgMP"/>
          </binding>
        </element>
        <element id="Timing.repeat.when">
          <path value="Timing.repeat.when"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://ig.fhir.de/igs/medication/ValueSet/TimingWhenDgMP"/>
          </binding>
        </element>
        <element id="Timing.repeat.offset">
          <path value="Timing.repeat.offset"/>
          <short value="Zeitversatz"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Ein Zeitversatz ist in der ersten Ausbaustufe desdgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen."/>
          <max value="0"/>
        </element>
        <element id="Timing.code">
          <path value="Timing.code"/>
          <comment
                   value="Begründung Einschränkung Kardinalität: Ein Timing-Code ist in der ersten Ausbaustufe des dgMP nicht vorgesehen, um die Komplexität zu reduzieren und die Übersichtlichkeit zu erhöhen. Stattdessen muss das Zeitmuster explizit strukturiert angegeben werden."/>
          <max value="0"/>
        </element>
      </differential>
    </StructureDefinition>