{
  "resourceType": "StructureDefinition",
  "id": "HdBe-TimeInterval",
  "url": "https://fhir.healthdata.be/StructureDefinition/HdBe-TimeInterval",
  "name": "HdBeTimeInterval",
  "title": "HdBe TimeInterval",
  "status": "draft",
  "date": "2022-10-17T09:09:13.9562003+00:00",
  "publisher": "Healthdata.be (Sciensano)",
  "contact": [
    {
      "name": "Service portal – healthdata.be",
      "telecom": [
        {
          "system": "url",
          "value": "https://sciensano.service-now.com/sp",
          "use": "work"
        }
      ]
    }
  ],
  "description": "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": "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": "4.0.1",
  "mapping": [
    {
      "identity": "zib-timeinterval-v1.0-2020EN",
      "uri": "https://zibs.nl/wiki/TimeInterval-v1.0(2020EN)",
      "name": "zib TimeInterval-v1.0(2020EN)"
    },
    {
      "identity": "HdBe-TimeInterval",
      "uri": "https://fhir.healthdata.be/StructureDefinition/LogicalModel/HdBe-TimeInterval",
      "name": "HdBe logical model TimeInterval"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Period",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Period",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Period",
        "path": "Period",
        "mapping": [
          {
            "identity": "HdBe-TimeInterval",
            "map": "TimeInterval"
          }
        ]
      },
      {
        "id": "Period.extension",
        "path": "Period.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Period.extension:duration",
        "path": "Period.extension",
        "sliceName": "duration",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.healthdata.be/StructureDefinition/ext-TimeInterval.Duration"
            ]
          }
        ]
      },
      {
        "id": "Period.extension:duration.value[x]",
        "path": "Period.extension.value[x]",
        "mapping": [
          {
            "identity": "HdBe-TimeInterval",
            "map": "TimeInterval.Duration"
          }
        ]
      },
      {
        "id": "Period.start",
        "path": "Period.start",
        "short": "startDateTime",
        "definition": "The start date and time of the interval",
        "alias": [
          "startDatumTijd"
        ],
        "mapping": [
          {
            "identity": "zib-timeinterval-v1.0-2020EN",
            "map": "NL-CM:20.3.2",
            "comment": "startDateTime"
          },
          {
            "identity": "HdBe-TimeInterval",
            "map": "TimeInterval.StartDateTime"
          }
        ]
      },
      {
        "id": "Period.end",
        "path": "Period.end",
        "short": "endDateTime",
        "definition": "The end date and time of the interval",
        "alias": [
          "eindDatumTijd"
        ],
        "mapping": [
          {
            "identity": "zib-timeinterval-v1.0-2020EN",
            "map": "NL-CM:20.3.3",
            "comment": "endDateTime"
          },
          {
            "identity": "HdBe-TimeInterval",
            "map": "TimeInterval.EndDateTime"
          }
        ]
      }
    ]
  }
}