<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="zib-TimeInterval" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
  </text>
  <url value="http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval" />
  <name value="ZibTimeInterval" />
  <title value="zib TimeInterval" />
  <status value="draft" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A time interval indicates the time between two moments in time. Interval can be defined by a start time and end time, start time and duration or duration and end time." />
  <purpose value="This Period datatype profile is one of the three StructureDefinitions that can be used to represent the Dutch (partial) [zib ('Zorginformatiebouwsteen', i.e. Health and Care Information Model) TimeInterval v1.0 (2020)](https://zibs.nl/wiki/TimeInterval-v1.0(2020EN)). &#xD;&#xA;&#xD;&#xA;This zib is represented in FHIR by a combination of two datatypes: _Period_ and _Duration_. To support this zib across different FHIR resource types, three related StructureDefinitions are provided:&#xD;&#xA;&#xD;&#xA;* [ext-TimeInterval.Duration](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Duration): extension to provide the _Duration_ datatype to resource types where no element with this datatype is normally available. This exentions should not be used in isolation, but only via one of the two resources described below!&#xD;&#xA;* [zib-TimeInterval](http://nictiz.nl/fhir/StructureDefinition/zib-TimeInterval) (this profile): profile on the _Period_ datatype that defines mappings to zib TimeInterval and brings in the ext-TimeInterval.Duration extension mentioned above. For resource types that natively support an element of the _Period_ datatype but not of the _Duration_ datatype, this profile should be used.&#xD;&#xA;* [ext-TimeInterval.Period](http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Period): extension to provide the _Period_ datatype plus the _Duration_ extension mentioned above, with mappings to zib TimeInterval. For resource types that support neither elements of datatype _Period_ or _Duration_, this extension should be used. *Note*: In hindsight the name of this extension is confusing, 'ext-TimeInterval' would have been better suited.&#xD;&#xA;* *Note*: when the resource type natively supports elements of datatype _Period_ and _Duration_, the zib should be mapped onto these elements directly." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="zib-timeinterval-v1.0-2020EN" />
    <uri value="https://zibs.nl/wiki/TimeInterval-v1.0(2020EN)" />
    <name value="zib TimeInterval-v1.0(2020EN)" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="true" />
  <type value="Period" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Period" />
  <derivation value="constraint" />
  <differential>
    <element id="Period">
      <path value="Period" />
      <short value="TimeInterval" />
      <alias value="TijdsInterval" />
      <mapping>
        <identity value="zib-timeinterval-v1.0-2020EN" />
        <map value="NL-CM:20.3.1" />
        <comment value="TimeInterval" />
      </mapping>
    </element>
    <element id="Period.extension:duration">
      <path value="Period.extension" />
      <sliceName value="duration" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TimeInterval.Duration" />
      </type>
    </element>
    <element id="Period.start">
      <path value="Period.start" />
      <short value="startDateTime" />
      <definition value="The start date and time of the interval." />
      <alias value="startDatumTijd" />
      <mapping>
        <identity value="zib-timeinterval-v1.0-2020EN" />
        <map value="NL-CM:20.3.2" />
        <comment value="startDateTime" />
      </mapping>
    </element>
    <element id="Period.end">
      <path value="Period.end" />
      <short value="endDateTime" />
      <definition value="The end date and time of the interval." />
      <alias value="eindDatumTijd" />
      <mapping>
        <identity value="zib-timeinterval-v1.0-2020EN" />
        <map value="NL-CM:20.3.3" />
        <comment value="endDateTime" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>