<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-core-Timing" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Timing Profile</b>
      </p>
      <p>A timing schedule that specifies an event that may occur multiple times. Timing offers a choice of multiple OccurrenceTime (used is used to specify specific times), or recurrence patterns.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.core.Timing maps to Timing:
  OccurrenceTime maps to event
  TimingCode maps to code
  EventDuration.DurationRange.LowerBound maps to repeat.duration
  EventDuration.DurationRange.UpperBound maps to repeat.durationMax
  EventDuration.DurationRange.LowerBound.Quantity.Units.Coding.code maps to repeat.durationUnit
  RecurrencePattern.RecurrenceInterval.Duration maps to repeat.period
  constrain repeat.periodMax to 0..0
  RecurrencePattern.RecurrenceInterval.Duration.Units.Coding.code maps to repeat.periodUnit
  RecurrencePattern.DayOfWeek maps to repeat.dayOfWeek
  RecurrencePattern.TimeOfDay maps to repeat.timeOfDay
  RecurrencePattern.DailyLifeEvent maps to repeat.when
  RecurrencePattern.LifeEventOffset maps to repeat.offset
  RecurrencePattern.CountPerInterval.MinCount maps to repeat.frequency
  RecurrencePattern.CountPerInterval.MaxCount maps to repeat.frequencyMax
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Timing" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.core.Timing" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Timing Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A timing schedule that specifies an event that may occur multiple times. Timing offers a choice of multiple OccurrenceTime (used is used to specify specific times), or recurrence patterns." />
  <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="3.0.1" />
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Timing" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Timing" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Timing:shr-core-Timing">
      <path value="Timing" />
      <short value="SHR Timing Profile" />
      <definition value="A timing schedule that specifies an event that may occur multiple times. Timing offers a choice of multiple OccurrenceTime (used is used to specify specific times), or recurrence patterns." />
      <comment value="A timing schedule can be either a list of events - intervals on which the event occurs, or a single event with repeating criteria or just repeating criteria with no actual event.  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="*" />
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="QSET&lt;TS&gt; (GTS)" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.id">
      <path value="Timing.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to 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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.extension:recurrencerange">
      <path value="Timing.extension" />
      <sliceName value="recurrencerange" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <definition value="The start and end of the overall recurrence pattern in terms of dates/times or in terms of number of repeats. Could also be an event, such as when all doses are taken." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-RecurrenceRange-extension" />
      </type>
    </element>
    <element id="Timing:shr-core-Timing.event">
      <path value="Timing.event" />
      <short value="When the event occurs" />
      <definition value="Identifies specific times when the event occurs." />
      <requirements value="In an MAR, 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:shr-core-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="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() | (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="Element" />
      </constraint>
      <constraint>
        <key value="tim-9" />
        <severity value="error" />
        <human value="If there's an offset, there must be a when (and not C, CM, CD, CV)" />
        <expression value="offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))" />
        <xpath value="not(exists(f:offset)) or exists(f:when)" />
      </constraint>
      <constraint>
        <key value="tim-5" />
        <severity value="error" />
        <human value="period SHALL be a non-negative value" />
        <expression value="period.exists() implies period &gt;= 0" />
        <xpath value="f:period/@value &gt;= 0 or not(f:period/@value)" />
      </constraint>
      <constraint>
        <key value="tim-6" />
        <severity value="error" />
        <human value="If there's a periodMax, there must be a period" />
        <expression value="periodMax.empty() or period.exists()" />
        <xpath value="not(exists(f:periodMax)) or exists(f:period)" />
      </constraint>
      <constraint>
        <key value="tim-7" />
        <severity value="error" />
        <human value="If there's a durationMax, there must be a duration" />
        <expression value="durationMax.empty() or duration.exists()" />
        <xpath value="not(exists(f:durationMax)) or exists(f:duration)" />
      </constraint>
      <constraint>
        <key value="tim-8" />
        <severity value="error" />
        <human value="If there's a countMax, there must be a count" />
        <expression value="countMax.empty() or count.exists()" />
        <xpath value="not(exists(f:countMax)) or exists(f:count)" />
      </constraint>
      <constraint>
        <key value="tim-1" />
        <severity value="error" />
        <human value="if there's a duration, there needs to be duration units" />
        <expression value="duration.empty() or durationUnit.exists()" />
        <xpath value="not(exists(f:duration)) or exists(f:durationUnit)" />
      </constraint>
      <constraint>
        <key value="tim-10" />
        <severity value="error" />
        <human value="If there's a timeOfDay, there cannot be be a when, or vice versa" />
        <expression value="timeOfDay.empty() or when.empty()" />
        <xpath value="not(exists(f:timeOfDay)) or not(exists(f:when))" />
      </constraint>
      <constraint>
        <key value="tim-2" />
        <severity value="error" />
        <human value="if there's a period, there needs to be period units" />
        <expression value="period.empty() or periodUnit.exists()" />
        <xpath value="not(exists(f:period)) or exists(f:periodUnit)" />
      </constraint>
      <constraint>
        <key value="tim-4" />
        <severity value="error" />
        <human value="duration SHALL be a non-negative value" />
        <expression value="duration.exists() implies duration &gt;= 0" />
        <xpath value="f:duration/@value &gt;= 0 or not(f:duration/@value)" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="Implies PIVL or EIVL" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.id">
      <path value="Timing.repeat.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to 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>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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:shr-core-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." />
      <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="integer" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.count" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.countMax">
      <path value="Timing.repeat.countMax" />
      <short value="Maximum number of times to repeat" />
      <definition value="A maximum value for the count of the desired repetitions (e.g. do something 6-8 times)." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.count" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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." />
      <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>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.durationMax">
      <path value="Timing.repeat.durationMax" />
      <short value="How long when it happens (Max)" />
      <definition value="The upper limit of how long this thing happens for when it happens." />
      <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>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnitsOfTime" />
        </extension>
        <strength value="required" />
        <description value="A unit of time (units from UCUM)." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/units-of-time" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase.unit" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.frequency">
      <path value="Timing.repeat.frequency" />
      <short value="Event occurs frequency times per period" />
      <definition value="The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided)." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
      <defaultValueInteger value="1" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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="integer" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.period">
      <path value="Timing.repeat.period" />
      <short value="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." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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="0" />
      <type>
        <code value="decimal" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnitsOfTime" />
        </extension>
        <strength value="required" />
        <description value="A unit of time (units from UCUM)." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/units-of-time" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="PIVL.phase.unit" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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. The elements frequency and period cannot be used as well as dayOfWeek." />
      <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" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/days-of-week" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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. The elements when, frequency and period cannot be used as well as timeOfDay." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="time" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.repeat.when">
      <path value="Timing.repeat.when" />
      <short value="Regular life events the event is tied to" />
      <definition value="Real world events that the occurrence of the event should be tied to." />
      <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>
      <isSummary value="true" />
      <binding>
        <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." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-timing" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="EIVL.event" />
      </mapping>
    </element>
    <element id="Timing:shr-core-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>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="EIVL.offset" />
      </mapping>
    </element>
    <element id="Timing:shr-core-Timing.code">
      <path value="Timing.code" />
      <short value="BID | TID | QID | AM | PM | QD | QOD | Q4H | Q6H +" />
      <definition value="A code for the timing schedule. 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 the 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/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TimingAbbreviation" />
        </extension>
        <strength value="extensible" />
        <description value="Code for a known / defined timing pattern." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/timing-abbreviation" />
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="QSC.code" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Timing:shr-core-Timing">
      <path value="Timing" />
      <short value="SHR Timing Profile" />
      <definition value="A timing schedule that specifies an event that may occur multiple times. Timing offers a choice of multiple OccurrenceTime (used is used to specify specific times), or recurrence patterns." />
    </element>
    <element id="Timing:shr-core-Timing.extension:recurrencerange">
      <path value="Timing.extension" />
      <sliceName value="recurrencerange" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <definition value="The start and end of the overall recurrence pattern in terms of dates/times or in terms of number of repeats. Could also be an event, such as when all doses are taken." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-RecurrenceRange-extension" />
      </type>
    </element>
    <element id="Timing:shr-core-Timing.repeat">
      <path value="Timing.repeat" />
    </element>
    <element id="Timing:shr-core-Timing.repeat.periodMax">
      <path value="Timing.repeat.periodMax" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Timing:shr-core-Timing.code">
      <path value="Timing.code" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TimingAbbreviation" />
        </extension>
        <strength value="extensible" />
        <description value="Code for a known / defined timing pattern." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/timing-abbreviation" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>