<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ee-tis-dosage" />
  <url value="https://fhir.ee/StructureDefinition/ee-tis-dosage" />
  <version value="1.0.0" />
  <name value="EETISDosage" />
  <status value="draft" />
  <date value="2024-01-31T13:55:03.1985103+00:00" />
  <description value="Annustamisjuhis. Dosage is for exact representation of what quantity in which units and how often should medication be taken by patient." />
  <fhirVersion value="5.0.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Dosage" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Dosage" />
  <derivation value="constraint" />
  <differential>
    <element id="Dosage">
      <path value="Dosage" />
      <short value="Annustamisjuhis" />
    </element>
    <element id="Dosage.sequence">
      <path value="Dosage.sequence" />
      <short value="JÄRJEKORD. The order of the dosage instructions" />
    </element>
    <element id="Dosage.text">
      <path value="Dosage.text" />
      <maxLength value="1000" />
    </element>
    <element id="Dosage.additionalInstruction">
      <path value="Dosage.additionalInstruction" />
      <short value="LISAJUHIS. Supplemental instruction or warnings to the patient - e.g. &quot;with meals&quot;, &quot;may cause drowsiness&quot;" />
    </element>
    <element id="Dosage.patientInstruction">
      <path value="Dosage.patientInstruction" />
      <short value="KOMMENTAAR PATSIENDILE. Patient or consumer oriented instructions" />
    </element>
    <element id="Dosage.timing">
      <path value="Dosage.timing" />
      <short value="ANNUSTAMISE AEG. When medication should be administered" />
    </element>
    <element id="Dosage.timing.repeat">
      <path value="Dosage.timing.repeat" />
      <short value="ANNUSTAMISE KORDUS. When the event is to occur" />
    </element>
    <element id="Dosage.timing.repeat.bounds[x]">
      <path value="Dosage.timing.repeat.bounds[x]" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Ravikuuri piirid (pikkus/ulatus/kestus)" />
      <definition value="Length/Range of lengths, or (Start and/or end) limits. 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." />
    </element>
    <element id="Dosage.timing.repeat.count">
      <path value="Dosage.timing.repeat.count" />
      <short value="KORDUSED. Number of times to repeat" />
    </element>
    <element id="Dosage.timing.repeat.countMax">
      <path value="Dosage.timing.repeat.countMax" />
      <short value="MAKSIMAALNE KORDUSTE ARV. Maximum number of times to repeat" />
      <definition value="MAKSIMAALNE KORDUSTE ARV. If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times." />
    </element>
    <element id="Dosage.timing.repeat.duration">
      <path value="Dosage.timing.repeat.duration" />
      <short value="KESTUS. How long when it happens" />
      <definition value="KESTUS. 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." />
    </element>
    <element id="Dosage.timing.repeat.durationMax">
      <path value="Dosage.timing.repeat.durationMax" />
      <short value="MAKSIMAALNE KESTUS. How long when it happens (Max)" />
      <definition value="MAKSIMAALNE KESTUS. If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length." />
    </element>
    <element id="Dosage.timing.repeat.durationUnit">
      <path value="Dosage.timing.repeat.durationUnit" />
      <definition value="KESTUS ja ÜHIK. The units of time for the duration, in UCUM units&#xA;Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." />
    </element>
    <element id="Dosage.timing.repeat.frequency">
      <path value="Dosage.timing.repeat.frequency" />
      <short value="SAGEDUS. Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period" />
      <definition value="SAGEDUS. Ühekordse annuse kordsus/annustamiste arv perioodis. The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency." />
    </element>
    <element id="Dosage.timing.repeat.frequencyMax">
      <path value="Dosage.timing.repeat.frequencyMax" />
      <short value="MAKSIMAALNE ANNUSTAMISTE ARV. Event occurs up to frequencyMax times per period" />
      <definition value="MAKSIMAALNE ANNUSTAMISTE ARV. If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range." />
    </element>
    <element id="Dosage.timing.repeat.period">
      <path value="Dosage.timing.repeat.period" />
      <short value="KUI SAGEDASTI ANNUSTATAKSE JA ÜHIK. The duration to which the frequency applies. I.e. Event occurs frequency times per period" />
      <definition value="KUI SAGEDASTI ANNUSTATAKSE JA ÜHIK. Indicates the duration of time over which repetitions are to occur; e.g. to express &quot;3 times per day&quot;, 3 would be the frequency and &quot;1 day&quot; would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length." />
    </element>
    <element id="Dosage.timing.repeat.periodMax">
      <path value="Dosage.timing.repeat.periodMax" />
      <short value="MAKSIMAALNE PERIOOD ANNUSTAMISE VAHEL. Upper limit of period (3-4 hours)" />
      <definition value="MAKSIMAALNE PERIOOD ANNUSTAMISE VAHEL. 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." />
    </element>
    <element id="Dosage.timing.repeat.dayOfWeek">
      <path value="Dosage.timing.repeat.dayOfWeek" />
      <definition value="NÄDALAPÄEV. If one or more days of week is provided, then the action happens only on the specified day(s)." />
    </element>
    <element id="Dosage.timing.repeat.timeOfDay">
      <path value="Dosage.timing.repeat.timeOfDay" />
      <definition value="PÄEVA OSA. Specified time of day for action to take place." />
    </element>
    <element id="Dosage.timing.repeat.when">
      <path value="Dosage.timing.repeat.when" />
      <short value="MILLEGA SEOTUD. Code for time period of occurrence" />
    </element>
    <element id="Dosage.timing.repeat.offset">
      <path value="Dosage.timing.repeat.offset" />
      <short value="PERIOOD ENNE VÕI PÄRAST. Minutes from event (before or after)" />
    </element>
    <element id="Dosage.asNeeded">
      <path value="Dosage.asNeeded" />
      <short value="VAJADUSEL. Take &quot;as needed&quot;" />
    </element>
    <element id="Dosage.asNeededFor">
      <path value="Dosage.asNeededFor" />
      <max value="1" />
    </element>
    <element id="Dosage.site">
      <path value="Dosage.site" />
      <short value="KEHAPIIRKOND. Body site to administer to" />
    </element>
    <element id="Dosage.route">
      <path value="Dosage.route" />
      <short value="MANUSTAMISVIIS. How drug should enter body" />
    </element>
    <element id="Dosage.method">
      <path value="Dosage.method" />
      <short value="MEETOD. Technique for administering medication" />
    </element>
    <element id="Dosage.doseAndRate">
      <path value="Dosage.doseAndRate" />
      <short value="ANNUS JA KIIRUS. Amount of medication administered, to be administered or typical amount to be administered" />
    </element>
    <element id="Dosage.doseAndRate.dose[x]">
      <path value="Dosage.doseAndRate.dose[x]" />
      <short value="RAVIMI KOGUS ANNUSE KOHTA. Amount of medication per dose" />
      <definition value="RAVIMI KOGUS ANNUSE KOHTA. Loendis on koodid nagu näiteks TA -tablett, TK - tükk, CP- kapsel, MA - mõõtannus jne. Amount of medication per dose." />
      <binding>
        <strength value="example" />
        <description value="Annustamise ühikud loend" />
        <valueSet value="https://fhir.ee/CodeSystem/retsept-annustamise-yhik" />
      </binding>
    </element>
    <element id="Dosage.doseAndRate.rate[x]">
      <path value="Dosage.doseAndRate.rate[x]" />
      <short value="MANUSTAMISE KIIRUS. Amount of medication per unit of time" />
      <definition value="MANUSTAMISE KIIRUS. Amount of medication per unit of time." />
    </element>
    <element id="Dosage.maxDosePerPeriod">
      <path value="Dosage.maxDosePerPeriod" />
      <short value="MAKSIMAALNE ANNUS PERIOODIS. Upper limit on medication per unit of time" />
      <definition value="MAKSIMAALNE ANNUS PERIOODIS. Upper limit on medication per unit of time." />
    </element>
    <element id="Dosage.maxDosePerAdministration">
      <path value="Dosage.maxDosePerAdministration" />
      <short value="MAKSIMAALNE ANNUS ÜHE ANNUSTAMISE KOHTA. Upper limit on medication per administration" />
      <definition value="MAKSIMAALNE ANNUS ÜHE ANNUSTAMISE KOHTA. Upper limit on medication per administration." />
    </element>
    <element id="Dosage.maxDosePerLifetime">
      <path value="Dosage.maxDosePerLifetime" />
      <short value="MAKSIMAALNE ANNUS ELUS. Upper limit on medication per lifetime of the patient" />
      <definition value="MAKSIMAALNE ANNUS ELUS. Upper limit on medication per lifetime of the patient." />
    </element>
  </differential>
</StructureDefinition>