EHDS Logical Information Models
0.2.1 - qa-preview

EHDS Logical Information Models, published by Xt-EHR. This guide is not an authorized publication; it is the continuous build for version 0.2.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/costateixeira/xt-ehr-common/ and changes regularly. See the Directory of published versions

## Logical Model: EHDSDosaging - XML Profile

Draft as of 2025-12-03

XML representation of the EHDSDosaging logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="EHDSDosaging"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition EHDSDosaging</b></p><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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" 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-EHDSDosaging-definitions.html#EHDSDosaging">EHDSDosaging</a><a name="EHDSDosaging"> </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="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: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-EHDSDosagingCore.html">EHDSDosagingCore</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">Dosaging model</span><br/><br/>Elements defined in Ancestors:<a href="StructureDefinition-EHDSDosagingCore.html" title="Free text usage/dosage instructions when structured dosage information is not fully provided">text</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Text representation rendered from all dosaging data elements with a value">renderedDescription</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Coded instructions, e.g warnings to the patient, like 'may cause drowsiness' etc">additionalInstruction</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Patient oriented instructions as free text">patientInstruction</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Amount of medication administered per one dose (= one timing)">doseAndRate</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="When medication should be administered (period, time of day, frequency, etc)">timing</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Take as needed">asNeeded</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Take as needed for the coded reason">asNeededFor</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Body site of administration">bodySite</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Route of administration">routeOfAdministration</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Method of administration">methodOfAdministration</a>, <a href="StructureDefinition-EHDSDosagingCore.html" title="Maximum dose for the patient">maxDose</a><br/><span style="font-weight:bold">Instances of this logical model can be the target of a Reference</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_primitive.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type" class="hierarchy"/> <a href="StructureDefinition-EHDSDosaging-definitions.html#EHDSDosaging.sequence" title="Order of the dosage instruction, in case one treatment consists of several dosaging schemes">sequence</a><a name="EHDSDosaging.sequence"> </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">0..1</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/R5/datatypes.html#integer">integer</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">Order of the dosage instruction, in case one treatment consists of several dosaging schemes</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,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
        <valueCode value="can-be-target"/>
      </extension>
      <url
           value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosaging"/>
      <version value="0.2.1"/>
      <name value="EHDSDosaging"/>
      <title value="Dosaging model"/>
      <status value="draft"/>
      <date value="2025-12-03T08:01:45+00:00"/>
      <publisher value="Xt-EHR"/>
      <contact>
        <name value="Xt-EHR"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.xt-ehr.eu/"/>
        </telecom>
      </contact>
      <description
                   value="Logical model for usage instructions for administring the requested product. Based on FHIR Dosage complex data type. When implemented, this model may be reduced significantly according to the specific use case."/>
      <fhirVersion value="5.0.0"/>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosaging"/>
      <baseDefinition
                      value="http://www.xt-ehr.eu/fhir/models/StructureDefinition/EHDSDosagingCore"/>
      <derivation value="specialization"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="0.2.1"/>
        </extension>
        <element id="EHDSDosaging">
          <path value="EHDSDosaging"/>
          <short value="Dosaging model"/>
          <definition
                      value="Logical model for usage instructions for administring the requested product. Based on FHIR Dosage complex data type. When implemented, this model may be reduced significantly according to the specific use case."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="EHDSDosaging.text">
          <path value="EHDSDosaging.text"/>
          <short
                 value="Free text usage/dosage instructions when structured dosage information is not fully provided"/>
          <definition
                      value="Free text usage/dosage instructions when structured dosage information is not fully provided"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSDosaging.renderedDescription">
          <path value="EHDSDosaging.renderedDescription"/>
          <short
                 value="Text representation rendered from all dosaging data elements with a value"/>
          <definition
                      value="Text representation rendered from all dosaging data elements with a value"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.renderedDescription"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSDosaging.additionalInstruction">
          <path value="EHDSDosaging.additionalInstruction"/>
          <short
                 value="Coded instructions, e.g warnings to the patient, like 'may cause drowsiness' etc"/>
          <definition
                      value="Coded instructions, e.g warnings to the patient, like 'may cause drowsiness' etc"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.additionalInstruction"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.patientInstruction">
          <path value="EHDSDosaging.patientInstruction"/>
          <short value="Patient oriented instructions as free text"/>
          <definition value="Patient oriented instructions as free text"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.patientInstruction"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
        </element>
        <element id="EHDSDosaging.doseAndRate">
          <path value="EHDSDosaging.doseAndRate"/>
          <short
                 value="Amount of medication administered per one dose (= one timing)"/>
          <definition
                      value="Amount of medication administered per one dose (= one timing)"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.doseAndRate"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.doseAndRate.type">
          <path value="EHDSDosaging.doseAndRate.type"/>
          <short
                 value="The kind of dose or rate specified (e.g calculated, ordered, etc)."/>
          <definition
                      value="The kind of dose or rate specified (e.g calculated, ordered, etc)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.doseAndRate.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.doseAndRate.dose[x]">
          <path value="EHDSDosaging.doseAndRate.dose[x]"/>
          <short
                 value="Amount of medication per one dose. (1 tablet, 2-3 tablets, 20ml)"/>
          <definition
                      value="Amount of medication per one dose. (1 tablet, 2-3 tablets, 20ml)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.doseAndRate.dose[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
        </element>
        <element id="EHDSDosaging.doseAndRate.rate[x]">
          <path value="EHDSDosaging.doseAndRate.rate[x]"/>
          <short
                 value="Time period during which one defined dose is administered (per 1 hour, per 5-10 minutes)"/>
          <definition
                      value="Time period during which one defined dose is administered (per 1 hour, per 5-10 minutes)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.doseAndRate.rate[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Ratio"/>
          </type>
          <type>
            <code value="Quantity"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing">
          <path value="EHDSDosaging.timing"/>
          <short
                 value="When medication should be administered (period, time of day, frequency, etc)"/>
          <definition
                      value="When medication should be administered (period, time of day, frequency, etc)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.event">
          <path value="EHDSDosaging.timing.event"/>
          <short value="Exact date and/or time of the administration"/>
          <definition value="Exact date and/or time of the administration"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.timing.event"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.code">
          <path value="EHDSDosaging.timing.code"/>
          <short
                 value="Timing abbreviation (AM - morning, Q4H - once in every 4 hours, BID - twice a day, etc)"/>
          <definition
                      value="Timing abbreviation (AM - morning, Q4H - once in every 4 hours, BID - twice a day, etc)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat">
          <path value="EHDSDosaging.timing.repeat"/>
          <short value="Repetition of the administration."/>
          <definition value="Repetition of the administration."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.bounds">
          <path value="EHDSDosaging.timing.repeat.bounds"/>
          <short
                 value="Time bounds for the treatment (current dosaging scheme). Only one of the following can exist."/>
          <definition
                      value="Time bounds for the treatment (current dosaging scheme). Only one of the following can exist."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.bounds"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.bounds.duration">
          <path value="EHDSDosaging.timing.repeat.bounds.duration"/>
          <short value="Number of time units, e.g 10 days"/>
          <definition value="Number of time units, e.g 10 days"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.bounds.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.bounds.range">
          <path value="EHDSDosaging.timing.repeat.bounds.range"/>
          <short value="A range of numbers of time units, 5-10 days"/>
          <definition value="A range of numbers of time units, 5-10 days"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.bounds.range"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Range"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.bounds.period">
          <path value="EHDSDosaging.timing.repeat.bounds.period"/>
          <short value="Start and end date, 05.08.2023 - 10.08.2023"/>
          <definition value="Start and end date, 05.08.2023 - 10.08.2023"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.bounds.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.count">
          <path value="EHDSDosaging.timing.repeat.count"/>
          <short value="Number of times to repeat, exact or range"/>
          <definition value="Number of times to repeat, exact or range"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.count"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.count.count">
          <path value="EHDSDosaging.timing.repeat.count.count"/>
          <short value="Number of times (e.g 'once', '10 times')"/>
          <definition value="Number of times (e.g 'once', '10 times')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.count.count"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.count.countMax">
          <path value="EHDSDosaging.timing.repeat.count.countMax"/>
          <short value="Maximum number of times (e.g 'maximum 10 times')"/>
          <definition value="Maximum number of times (e.g 'maximum 10 times')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.count.countMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.duration">
          <path value="EHDSDosaging.timing.repeat.duration"/>
          <short value="Duration of one administration, exact or range"/>
          <definition value="Duration of one administration, exact or range"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.duration.duration">
          <path value="EHDSDosaging.timing.repeat.duration.duration"/>
          <short value="Duration of administration (e.g '5 minutes', '1 hour')"/>
          <definition
                      value="Duration of administration (e.g '5 minutes', '1 hour')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.duration.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.duration.durationMax">
          <path value="EHDSDosaging.timing.repeat.duration.durationMax"/>
          <short
                 value="Maximum duration of administration (e.g 'maximum 1 hour')"/>
          <definition
                      value="Maximum duration of administration (e.g 'maximum 1 hour')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.duration.durationMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.frequency">
          <path value="EHDSDosaging.timing.repeat.frequency"/>
          <short
                 value="Frequency of intake/administration (e.g 'three times a day')"/>
          <definition
                      value="Frequency of intake/administration (e.g 'three times a day')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.frequency"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.frequency.numberOfTimes">
          <path value="EHDSDosaging.timing.repeat.frequency.numberOfTimes"/>
          <short value="Number of times per period (e.g '3 times')"/>
          <definition value="Number of times per period (e.g '3 times')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.frequency.numberOfTimes"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.frequency.maxNumberOfTimes">
          <path value="EHDSDosaging.timing.repeat.frequency.maxNumberOfTimes"/>
          <short
                 value="Maximum number of times per period (e.g. 'maximum 3 times')"/>
          <definition
                      value="Maximum number of times per period (e.g. 'maximum 3 times')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="EHDSDosagingCore.timing.repeat.frequency.maxNumberOfTimes"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.frequency.period">
          <path value="EHDSDosaging.timing.repeat.frequency.period"/>
          <short
                 value="Duration to which the frequency applies (e.g '... / 1 day')"/>
          <definition
                      value="Duration to which the frequency applies (e.g '... / 1 day')"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.frequency.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.frequency.periodMax">
          <path value="EHDSDosaging.timing.repeat.frequency.periodMax"/>
          <short value="Upper limit of the period (e.g ... / 4-6 hours)"/>
          <definition value="Upper limit of the period (e.g ... / 4-6 hours)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.frequency.periodMax"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.dayOfWeek">
          <path value="EHDSDosaging.timing.repeat.dayOfWeek"/>
          <short
                 value="The day of the week of administration, e.g Mon, Tue, etc"/>
          <definition
                      value="The day of the week of administration, e.g Mon, Tue, etc"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.dayOfWeek"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.timeOfDay">
          <path value="EHDSDosaging.timing.repeat.timeOfDay"/>
          <short value="Time of day of administration (e.g '10:00')"/>
          <definition value="Time of day of administration (e.g '10:00')"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.timeOfDay"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="time"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.eventTime">
          <path value="EHDSDosaging.timing.repeat.eventTime"/>
          <short
                 value="An event the administration is bound to, e.g 'before meal', '30 min before meal'"/>
          <definition
                      value="An event the administration is bound to, e.g 'before meal', '30 min before meal'"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.eventTime"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.eventTime.when">
          <path value="EHDSDosaging.timing.repeat.eventTime.when"/>
          <short
                 value="Time period or event ('before meal', 'immediately', 'morning')"/>
          <definition
                      value="Time period or event ('before meal', 'immediately', 'morning')"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.eventTime.when"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.timing.repeat.eventTime.offset">
          <path value="EHDSDosaging.timing.repeat.eventTime.offset"/>
          <short
                 value="minutes from event, before or after (?not sure how to show before/after with only positive integers)"/>
          <definition
                      value="minutes from event, before or after (?not sure how to show before/after with only positive integers)"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.timing.repeat.eventTime.offset"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
        <element id="EHDSDosaging.asNeeded">
          <path value="EHDSDosaging.asNeeded"/>
          <short value="Take as needed"/>
          <definition value="Take as needed"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.asNeeded"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="EHDSDosaging.asNeededFor">
          <path value="EHDSDosaging.asNeededFor"/>
          <short value="Take as needed for the coded reason"/>
          <definition value="Take as needed for the coded reason"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.asNeededFor"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.bodySite">
          <path value="EHDSDosaging.bodySite"/>
          <short value="Body site of administration"/>
          <definition value="Body site of administration"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.bodySite"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.routeOfAdministration">
          <path value="EHDSDosaging.routeOfAdministration"/>
          <short value="Route of administration"/>
          <definition value="Route of administration"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.routeOfAdministration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.methodOfAdministration">
          <path value="EHDSDosaging.methodOfAdministration"/>
          <short value="Method of administration"/>
          <definition value="Method of administration"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.methodOfAdministration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
        </element>
        <element id="EHDSDosaging.maxDose">
          <path value="EHDSDosaging.maxDose"/>
          <short value="Maximum dose for the patient"/>
          <definition value="Maximum dose for the patient"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.maxDose"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Base"/>
          </type>
        </element>
        <element id="EHDSDosaging.maxDose.maxDosePerPeriod">
          <path value="EHDSDosaging.maxDose.maxDosePerPeriod"/>
          <short value="Upper limit on medication per unit of time"/>
          <definition value="Upper limit on medication per unit of time"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="EHDSDosagingCore.maxDose.maxDosePerPeriod"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Ratio"/>
          </type>
        </element>
        <element id="EHDSDosaging.maxDose.maxDosePerAdministration">
          <path value="EHDSDosaging.maxDose.maxDosePerAdministration"/>
          <short value="Upper limit on medication per one administration"/>
          <definition value="Upper limit on medication per one administration"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.maxDose.maxDosePerAdministration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.maxDose.maxDosePerLifetime">
          <path value="EHDSDosaging.maxDose.maxDosePerLifetime"/>
          <short value="Upper limit on medication per lifetime of the patient"/>
          <definition
                      value="Upper limit on medication per lifetime of the patient"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosagingCore.maxDose.maxDosePerLifetime"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
          </type>
        </element>
        <element id="EHDSDosaging.sequence">
          <path value="EHDSDosaging.sequence"/>
          <short
                 value="Order of the dosage instruction, in case one treatment consists of several dosaging schemes"/>
          <definition
                      value="Order of the dosage instruction, in case one treatment consists of several dosaging schemes"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="EHDSDosaging.sequence"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="integer"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="EHDSDosaging">
          <path value="EHDSDosaging"/>
        </element>
        <element id="EHDSDosaging.sequence">
          <path value="EHDSDosaging.sequence"/>
          <short
                 value="Order of the dosage instruction, in case one treatment consists of several dosaging schemes"/>
          <definition
                      value="Order of the dosage instruction, in case one treatment consists of several dosaging schemes"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="integer"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>