{
  "resourceType": "StructureDefinition",
  "id": "starttiming-ext",
  "url": "http://fhir.xt.dev/StructureDefinition/StartTiming",
  "version": "1.0.0",
  "name": "StartTiming",
  "title": "Start Timing",
  "status": "active",
  "date": "2025-09-29T09:14:36.8786864+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A timing that defines a point in time before or after a type of event to be used as a starting point for a communication. This resource is used in definitional resources and doesn't describe a specific date or time as it does not reference a specific event associated with a patient. Instead it defines a way to calculate a point in time based on a matching event.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "CommunicationRequest"
    },
    {
      "type": "element",
      "expression": "CommunicationRequest.occurrence[x]"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "min": 2
      },
      {
        "id": "Extension.extension:offset",
        "path": "Extension.extension",
        "sliceName": "offset",
        "short": "Offset from event in hours",
        "definition": "Number of hours as a positive integer to be added to or subtracted from (depending on the code) the event date and time to arrive at the start date and time.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:offset.url",
        "path": "Extension.extension.url",
        "fixedUri": "offset"
      },
      {
        "id": "Extension.extension:offset.value[x]",
        "path": "Extension.extension.value[x]",
        "label": "Offset",
        "short": "Offset from event in hours",
        "definition": "Number of hours as a positive integer to be added to or subtracted from (depending on the code) the event date and time",
        "min": 1,
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      },
      {
        "id": "Extension.extension:eventCode",
        "path": "Extension.extension",
        "sliceName": "eventCode",
        "short": "Event code for combination with offset",
        "definition": "This code combines the timing-relevant event and a directionality, i.e. if the offset is to be added or subtracted from the event's point in time (i.e. \"hours before\" or \"hours after\" the event).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:eventCode.url",
        "path": "Extension.extension.url",
        "fixedUri": "eventCode"
      },
      {
        "id": "Extension.extension:eventCode.value[x]",
        "path": "Extension.extension.value[x]",
        "label": "Event Code",
        "short": "Event code for combination with offset",
        "definition": "This code combines the timing-relevant event and a directionality, i.e. if the offset is to be added or subtracted from the event's point in time (i.e. \"hours before\" or \"hours after\" the event).",
        "min": 1,
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.xt.dev/ValueSet/TemplatedCommunicationTimingEvents"
        }
      },
      {
        "id": "Extension.extension:eventCode.value[x].system",
        "path": "Extension.extension.value[x].system",
        "min": 1
      },
      {
        "id": "Extension.extension:eventCode.value[x].version",
        "path": "Extension.extension.value[x].version",
        "max": "0"
      },
      {
        "id": "Extension.extension:eventCode.value[x].code",
        "path": "Extension.extension.value[x].code",
        "min": 1
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://fhir.xt.dev/StructureDefinition/StartTiming"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}