[go: up one dir, main page]

Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Example StructureDefinition/Timing (XML)

Modeling and Methodology Work GroupMaturity Level: N/AStandards Status: Informative

Raw XML (canonical form + also see XML Format Specification)

StructureDefinition for Timing

<?xml version="1.0" encoding="UTF-8"?>

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Timing"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a> 
          </th> 
          <th class="hierarchy" style="width: 100px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/> 
              </a> 
            </span> 
          </th> 
        </tr> 
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAgDsHd9/w4EQIOamFnaBgAA4M
          MKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Element"/>  
            <a href="datatypes-definitions.html#Timing" title="Timing : 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.">Timing</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #e6ffe6" title="Standards Status = Normative">N</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="types.html#Element">Element</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">A timing schedule that specifies an event that may occur multiple times
            <br/>  
            <br/>  Elements defined in Ancestors: 
            <a href="types.html#Element" title="Unique id for the element within a resource (for internal references). This may
             be any string value that does not contain spaces.">id</a> , 
            <a href="types.html#Element" title="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 managable, 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.">extension</a> , 
            <a href="types.html#BackboneType" title="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 managable, 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).">modifierExtension</a> 
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.event" title="Timing.event : Identifies specific times when the event occurs.">event</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">When the event occurs
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Element"/>  
            <a href="datatypes-definitions.html#Timing.repeat" title="Timing.repeat : A set of rules that describe when the event is scheduled.">repeat</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="types.html#Element">Element</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">When the event is to occur
            <br/>  
            <span style="font-style: italic" title="tim-1">+ Rule: if there's a duration, there needs to be duration units</span> 
            <br/>  
            <span style="font-style: italic" title="tim-2">+ Rule: if there's a period, there needs to be period units</span> 
            <br/>  
            <span style="font-style: italic" title="tim-4">+ Rule: duration SHALL be a non-negative value</span> 
            <br/>  
            <span style="font-style: italic" title="tim-5">+ Rule: period SHALL be a non-negative value</span> 
            <br/>  
            <span style="font-style: italic" title="tim-6">+ Rule: If there's a periodMax, there must be a period</span> 
            <br/>  
            <span style="font-style: italic" title="tim-7">+ Rule: If there's a durationMax, there must be a duration</span> 
            <br/>  
            <span style="font-style: italic" title="tim-8">+ Rule: If there's a countMax, there must be a count</span> 
            <br/>  
            <span style="font-style: italic" title="tim-9">+ Rule: If there's an offset, there must be a when (and not C, CM, CD, CV)</span> 
            <br/>  
            <span style="font-style: italic" title="tim-10">+ Rule: If there's a timeOfDay, there cannot be a when, or vice versa</span> 
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Choice of Types"/>  
            <a href="datatypes-definitions.html#Timing.repeat.bounds_x_" title="Timing.repeat.bounds[x] : 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.">bounds[x]</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Length/Range of lengths, or (Start and/or end) limits
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LsQ0AIAwDwezq/WcAaqhSoDRn6ZqXXE
          mq42zdrWP6DwAAzHkCAADALxtMUUAsbN3VPQAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="A length of time.">boundsDuration</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Duration">Duration</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LsQ0AIAw
          Dwezq/WcAaqhSoDRn6ZqXXEmq42zdrWP6DwAAzHkCAADALxtMUUAsbN3VPQAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <span title="A set of ordered Quantities defined by a low and high limit.">boundsRange</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Range">Range</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Data Type"/>  
            <span title="A time period defined by a start and end date and optionally time.">boundsPeriod</span> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#Period">Period</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.count" title="Timing.repeat.count : 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.">count</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Number of times to repeat
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.countMax" title="Timing.repeat.countMax : If present, indicates that the count is a range - so to
             perform the action between [count] and [countMax] times.">countMax</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Maximum number of times to repeat
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.duration" title="Timing.repeat.duration : 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.">duration</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#decimal">decimal</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">How long when it happens
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.durationMax" title="Timing.repeat.durationMax : If present, indicates that the duration is a range
             - so to perform the action between [duration] and [durationMax] time length.">durationMax</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#decimal">decimal</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">How long when it happens (Max)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.durationUnit" title="Timing.repeat.durationUnit : The units of time for the duration, in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the
             next occurrence.">durationUnit</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">s | min | h | d | wk | mo | a - unit of time (UCUM)
            <br/>  Binding: 
            <a href="valueset-units-of-time.html" title="A unit of time (units from UCUM).">UnitsOfTime</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.frequency" title="Timing.repeat.frequency : 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.">frequency</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Indicates the number of repetitions that should occur within a period. I.e. Event
             occurs frequency times per period
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.frequencyMax" title="Timing.repeat.frequencyMax : If present, indicates that the frequency is a range
             - so to repeat between [frequency] and [frequencyMax] times within the period or
             period range.">frequencyMax</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Event occurs up to frequencyMax times per period
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.period" title="Timing.repeat.period : 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.">period</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#decimal">decimal</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">The duration to which the frequency applies. I.e. Event occurs frequency times
             per period
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.periodMax" title="Timing.repeat.periodMax : 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.">periodMax</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#decimal">decimal</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Upper limit of period (3-4 hours)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.periodUnit" title="Timing.repeat.periodUnit : The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the
             next occurrence.">periodUnit</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">s | min | h | d | wk | mo | a - unit of time (UCUM)
            <br/>  Binding: 
            <a href="valueset-units-of-time.html" title="A unit of time (units from UCUM).">UnitsOfTime</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.dayOfWeek" title="Timing.repeat.dayOfWeek : If one or more days of week is provided, then the action
             happens only on the specified day(s).">dayOfWeek</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">mon | tue | wed | thu | fri | sat | sun
            <br/>  Binding: 
            <a href="valueset-days-of-week.html">Days Of Week</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBADwftr/v8GtdbqEAthAtMspJ
          JUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.timeOfDay" title="Timing.repeat.timeOfDay : Specified time of day for action to take place.">timeOfDay</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#time">time</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Time of day for action
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAMUlEQVR4Xu3LMQoAIBA
          Dwftr/v8GtdbqEAthAtMspJJUx9rYW8ftHwAA+NcRAAAAXplLq0BWj/rZigAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.when" title="Timing.repeat.when : An approximate time period during the day, potentially linked
             to an event of daily living that indicates when the action should occur.">when</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..*</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Code for time period of occurrence
            <br/>  Binding: 
            <a href="valueset-event-timing.html" title="Real-world event relating to the schedule.">EventTiming</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Timing.repeat.offset" title="Timing.repeat.offset : 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.">offset</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#unsignedInt">unsignedInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Minutes from event (before or after)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAg
          DsHd9/w4EQIOamFnaBgAA4MMKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Data Type"/>  
            <a href="datatypes-definitions.html#Timing.code" title="Timing.code : 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).">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#CodeableConcept">CodeableConcept</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">C | BID | TID | QID | AM | PM | QD | QOD | +
            <br/>  Binding: 
            <a href="valueset-timing-abbreviation.html" title="Code for a known / defined timing pattern.">TimingAbbreviation</a>  (
            <a href="terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability
             purposes but are not required to do so to be considered conformant.">Preferred</a> )
            <br/>  
          </td> 
        </tr> 

        <tr> 
          <td class="hierarchy" colspan="5">
            <br/>  
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
              <img alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/>  Documentation for this format
            </a> 
          </td> 
        </tr> 
      </table> 
    </div> 
  </text> 
  <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> 
  <url value="http://hl7.org/fhir/StructureDefinition/Timing"/> 
  <version value="5.0.0"/> 
  <name value="Timing"/> 
  <status value="active"/> 
  <experimental value="false"/> 
  <date value="2023-03-26T15:21:02+11:00"/> 
  <publisher value="HL7 FHIR Standard"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
  </contact> 
  <description value="Timing Type: 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."/> 
  <jurisdiction> 
    <coding> 
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> 
      <code value="001"/> 
      <display value="World"/> 
    </coding> 
  </jurisdiction> 
  <purpose value="Need to able to track proposed timing schedules. There are several different ways
   to do this: one or more specified times, a simple rules like three times a day,
   or  before/after meals."/> 
  <fhirVersion value="5.0.0"/> 
  <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://hl7.org/fhir/StructureDefinition/BackboneType"/> 
  <derivation value="specialization"/> 
  <snapshot> 
    <element id="Timing">
      <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"/> 
      <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> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a,QSET&lt;TS&gt; (GTS)"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="N/A"/> 
      </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> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <condition value="ele-1"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Timing.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 managable, 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> 
      <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())"/> 
        <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()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <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 managable, 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](extensibility.html#modifierExtension)."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <alias value="modifiers"/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="BackboneType.modifierExtension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <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())"/> 
        <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()"/> 
        <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> 
    </element> 
    <element id="Timing.event">
      <path value="Timing.event"/> 
      <short value="When the event occurs"/> 
      <definition value="Identifies specific times when the event occurs."/> 
      <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="*"/> 
      <base> 
        <path value="Timing.event"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="QLIST&lt;TS&gt;"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat">
      <path value="Timing.repeat"/> 
      <short value="When the event is to occur"/> 
      <definition value="A set of rules that describe when the event is scheduled."/> 
      <requirements value="Many timing schedules are determined by regular repetitions."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="Element"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </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()"/> 
        <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()"/> 
        <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"/> 
        <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"/> 
        <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()"/> 
        <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()"/> 
        <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()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Timing"/> 
      </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.select($this in ('C' | 'CM' | 'CD' |
         'CV')).allFalse())"/> 
        <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()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Timing"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <condition value="ele-1"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.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 managable, 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> 
      <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())"/> 
        <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()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.bounds[x]">
      <path value="Timing.repeat.bounds[x]"/> 
      <short value="Length/Range of lengths, or (Start and/or end) limits"/> 
      <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> 
      <type> 
        <code value="Range"/> 
      </type> 
      <type> 
        <code value="Period"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="IVL(TS) used in a QSI"/> 
      </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="If you have both bounds and count, then this should be understood as within the
       bounds period, until count times happens."/> 
      <requirements value="Repetitions may be limited by end time or total occurrences."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.count"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <condition value="tim-8"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.countMax"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <condition value="tim-8"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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="For some events the duration is part of the definition of the event (e.g. IV infusions,
       where the duration is implicit in the specified quantity and rate). For others,
       it's part of the timing specification (e.g. exercise)."/> 
      <requirements value="Some activities are not instantaneous and need to be maintained for a period of
       time."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.duration"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-7"/> 
      <condition value="tim-1"/> 
      <condition value="tim-4"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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="For some events the duration is part of the definition of the event (e.g. IV infusions,
       where the duration is implicit in the specified quantity and rate). For others,
       it's part of the timing specification (e.g. exercise)."/> 
      <requirements value="Some activities are not instantaneous and need to be maintained for a period of
       time."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.durationMax"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-7"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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
Normal practice is to use the 'mo' code as a calendar month when calculating the
       next occurrence."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.durationUnit"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="tim-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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="A unit of time (units from UCUM)."/> 
        </extension> 
        <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|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="PIVL.phase.unit"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.frequency">
      <path value="Timing.repeat.frequency"/> 
      <short value="Indicates the number of repetitions that should occur within a period. I.e. Event
       occurs frequency times per period"/> 
      <definition value="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."/> 
      <min value="0"/> 
      <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"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.frequencyMax"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="PIVL.phase"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.period">
      <path value="Timing.repeat.period"/> 
      <short value="The duration to which the frequency applies. I.e. Event occurs frequency times
       per period"/> 
      <definition value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.period"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-6"/> 
      <condition value="tim-5"/> 
      <condition value="tim-2"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.periodMax"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-6"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <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 - unit of time (UCUM)"/> 
      <definition value="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the
       next occurrence."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.periodUnit"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="tim-2"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="A unit of time (units from UCUM)."/> 
        </extension> 
        <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|5.0.0"/> 
      </binding> 
      <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="If one or more days of week is provided, then the action happens only on the specified
       day(s)."/> 
      <comment value="If no days are specified, the action is assumed to happen every day as otherwise
       specified."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Timing.repeat.dayOfWeek"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.timeOfDay">
      <path value="Timing.repeat.timeOfDay"/> 
      <short value="Time of day for action"/> 
      <definition value="Specified time of day for action to take place."/> 
      <comment value="When time of day is specified, it is inferred that the action happens every day
       (as filtered by dayofWeek) on the specified times. If there's a timeOfDay, there
       cannot be a when, or vice versa."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Timing.repeat.timeOfDay"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="time"/> 
      </type> 
      <condition value="tim-10"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <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 for time period of occurrence"/> 
      <definition value="An approximate time period during the day, potentially linked to an event of daily
       living that indicates when the action should occur."/> 
      <comment value="When more than one event is listed, the event is tied to the union of the specified
       events."/> 
      <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="tim-9"/> 
      <condition value="tim-10"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="Real-world event relating to the schedule."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventTiming"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Real-world event relating to the schedule."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/event-timing|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="EIVL.event"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.offset">
      <path value="Timing.repeat.offset"/> 
      <short value="Minutes from event (before or after)"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.repeat.offset"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <condition value="tim-9"/> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="EIVL.offset"/> 
      </mapping> 
    </element> 
    <element id="Timing.code">
      <path value="Timing.code"/> 
      <short value="C | 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="BID etc. are defined as 'at institutionally specified times'. For example, an institution
       may choose that BID is &quot;always at 7am and 6pm&quot;.  If it is inappropriate
       for this choice to be made, the code BID should not be used. Instead, a distinct
       organization-specific code should be used in place of the HL7-defined BID code
       and/or a structured representation should be used (in this case, specifying the
       two event times)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Timing.code"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="Code for a known / defined timing pattern."/> 
        </extension> 
        <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"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="QSC.code"/> 
      </mapping> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="Timing">
      <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"/> 
      <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="*"/> 
      <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.event">
      <path value="Timing.event"/> 
      <short value="When the event occurs"/> 
      <definition value="Identifies specific times when the event occurs."/> 
      <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="*"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="QLIST&lt;TS&gt;"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat">
      <path value="Timing.repeat"/> 
      <short value="When the event is to occur"/> 
      <definition value="A set of rules that describe when the event is scheduled."/> 
      <requirements value="Many timing schedules are determined by regular repetitions."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="Element"/> 
      </type> 
      <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.select($this in ('C' | 'CM' | 'CD' |
         'CV')).allFalse())"/> 
        <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"/> 
        <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()"/> 
        <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()"/> 
        <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()"/> 
        <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()"/> 
        <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()"/> 
        <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()"/> 
        <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"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Timing"/> 
      </constraint> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="Implies PIVL or EIVL"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.bounds[x]">
      <path value="Timing.repeat.bounds[x]"/> 
      <short value="Length/Range of lengths, or (Start and/or end) limits"/> 
      <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"/> 
      <type> 
        <code value="Duration"/> 
      </type> 
      <type> 
        <code value="Range"/> 
      </type> 
      <type> 
        <code value="Period"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="IVL(TS) used in a QSI"/> 
      </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="If you have both bounds and count, then this should be understood as within the
       bounds period, until count times happens."/> 
      <requirements value="Repetitions may be limited by end time or total occurrences."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <condition value="tim-8"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <condition value="tim-8"/> 
      <isSummary value="true"/> 
      <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="For some events the duration is part of the definition of the event (e.g. IV infusions,
       where the duration is implicit in the specified quantity and rate). For others,
       it's part of the timing specification (e.g. exercise)."/> 
      <requirements value="Some activities are not instantaneous and need to be maintained for a period of
       time."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-7"/> 
      <condition value="tim-1"/> 
      <condition value="tim-4"/> 
      <isSummary value="true"/> 
      <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="For some events the duration is part of the definition of the event (e.g. IV infusions,
       where the duration is implicit in the specified quantity and rate). For others,
       it's part of the timing specification (e.g. exercise)."/> 
      <requirements value="Some activities are not instantaneous and need to be maintained for a period of
       time."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-7"/> 
      <isSummary value="true"/> 
      <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
Normal practice is to use the 'mo' code as a calendar month when calculating the
       next occurrence."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="tim-1"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="A unit of time (units from UCUM)."/> 
        </extension> 
        <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|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="PIVL.phase.unit"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.frequency">
      <path value="Timing.repeat.frequency"/> 
      <short value="Indicates the number of repetitions that should occur within a period. I.e. Event
       occurs frequency times per period"/> 
      <definition value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <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"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="PIVL.phase"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.period">
      <path value="Timing.repeat.period"/> 
      <short value="The duration to which the frequency applies. I.e. Event occurs frequency times
       per period"/> 
      <definition value="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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-6"/> 
      <condition value="tim-5"/> 
      <condition value="tim-2"/> 
      <isSummary value="true"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <condition value="tim-6"/> 
      <isSummary value="true"/> 
      <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 - unit of time (UCUM)"/> 
      <definition value="The units of time for the period in UCUM units
Normal practice is to use the 'mo' code as a calendar month when calculating the
       next occurrence."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="tim-2"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="A unit of time (units from UCUM)."/> 
        </extension> 
        <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|5.0.0"/> 
      </binding> 
      <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="If one or more days of week is provided, then the action happens only on the specified
       day(s)."/> 
      <comment value="If no days are specified, the action is assumed to happen every day as otherwise
       specified."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <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|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.timeOfDay">
      <path value="Timing.repeat.timeOfDay"/> 
      <short value="Time of day for action"/> 
      <definition value="Specified time of day for action to take place."/> 
      <comment value="When time of day is specified, it is inferred that the action happens every day
       (as filtered by dayofWeek) on the specified times. If there's a timeOfDay, there
       cannot be a when, or vice versa."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="time"/> 
      </type> 
      <condition value="tim-10"/> 
      <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 for time period of occurrence"/> 
      <definition value="An approximate time period during the day, potentially linked to an event of daily
       living that indicates when the action should occur."/> 
      <comment value="When more than one event is listed, the event is tied to the union of the specified
       events."/> 
      <requirements value="Timings are frequently determined by occurrences such as waking, eating and sleep."/> 
      <min value="0"/> 
      <max value="*"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <condition value="tim-9"/> 
      <condition value="tim-10"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="Real-world event relating to the schedule."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventTiming"/> 
        </extension> 
        <strength value="required"/> 
        <description value="Real-world event relating to the schedule."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/event-timing|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="EIVL.event"/> 
      </mapping> 
    </element> 
    <element id="Timing.repeat.offset">
      <path value="Timing.repeat.offset"/> 
      <short value="Minutes from event (before or after)"/> 
      <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."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="unsignedInt"/> 
      </type> 
      <condition value="tim-9"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="EIVL.offset"/> 
      </mapping> 
    </element> 
    <element id="Timing.code">
      <path value="Timing.code"/> 
      <short value="C | 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="BID etc. are defined as 'at institutionally specified times'. For example, an institution
       may choose that BID is &quot;always at 7am and 6pm&quot;.  If it is inappropriate
       for this choice to be made, the code BID should not be used. Instead, a distinct
       organization-specific code should be used in place of the HL7-defined BID code
       and/or a structured representation should be used (in this case, specifying the
       two event times)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="CodeableConcept"/> 
      </type> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="Code for a known / defined timing pattern."/> 
        </extension> 
        <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"/> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="QSC.code"/> 
      </mapping> 
    </element> 
  </differential> 
</StructureDefinition> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.