<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HdBe-TimeInterval" />
  <url value="https://fhir.healthdata.be/StructureDefinition/HdBe-TimeInterval" />
  <name value="HdBeTimeInterval" />
  <title value="HdBe TimeInterval" />
  <status value="draft" />
  <date value="2022-10-17T09:09:13.9562003+00:00" />
  <publisher value="Healthdata.be (Sciensano)" />
  <contact>
    <name value="Service portal – healthdata.be" />
    <telecom>
      <system value="url" />
      <value value="https://sciensano.service-now.com/sp" />
      <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." />
  <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>
  <mapping>
    <identity value="HdBe-TimeInterval" />
    <uri value="https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-TimeInterval" />
    <name value="HdBe logical model TimeInterval" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Period" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Period" />
  <derivation value="constraint" />
  <differential>
    <element id="Period">
      <path value="Period" />
      <mapping>
        <identity value="HdBe-TimeInterval" />
        <map value="TimeInterval" />
      </mapping>
    </element>
    <element id="Period.extension">
      <path value="Period.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Period.extension:duration">
      <path value="Period.extension" />
      <sliceName value="duration" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Duration" />
      </type>
    </element>
    <element id="Period.extension:duration.value[x]">
      <path value="Period.extension.value[x]" />
      <mapping>
        <identity value="HdBe-TimeInterval" />
        <map value="TimeInterval.Duration" />
      </mapping>
    </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>
      <mapping>
        <identity value="HdBe-TimeInterval" />
        <map value="TimeInterval.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>
      <mapping>
        <identity value="HdBe-TimeInterval" />
        <map value="TimeInterval.EndDateTime" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>