FHIR Timing Data Type (R4)

Timing describes when an event occurs or should occur: specific times, or a repeating schedule such as twice daily for 7 days. Element table, example JSON and FHIRPath for FHIR R4.

  • FHIR Timing Data Type (R4) — part of the free FHIR Toolbox library.
  • Runs entirely in your browser: your FHIR data is never uploaded to a server.

Overview

Timing describes when an event occurs or should occur: specific times, or a repeating schedule such as twice daily for 7 days. It is used for medication dosage and service scheduling.

Elements

ElementTypeCardinalityDescription
Timing.eventdateTime0..*When the event occurs
Timing.repeatElement0..1When the event is to occur
Timing.repeat.idString0..1Unique id for inter-element referencing
Timing.repeat.extensionExtension0..*Additional content defined by implementations
Timing.repeat.bounds[x]Duration | Range | Period0..1Length/Range of lengths, or (Start and/or end) limits
Timing.repeat.countpositiveInt0..1Number of times to repeat
Timing.repeat.countMaxpositiveInt0..1Maximum number of times to repeat
Timing.repeat.durationdecimal0..1How long when it happens
Timing.repeat.durationMaxdecimal0..1How long when it happens (Max)
Timing.repeat.durationUnitcode0..1s | min | h | d | wk | mo | a - unit of time (UCUM)
Timing.repeat.frequencypositiveInt0..1Event occurs frequency times per period
Timing.repeat.frequencyMaxpositiveInt0..1Event occurs up to frequencyMax times per period
Timing.repeat.perioddecimal0..1Event occurs frequency times per period
Timing.repeat.periodMaxdecimal0..1Upper limit of period (3-4 hours)
Timing.repeat.periodUnitcode0..1s | min | h | d | wk | mo | a - unit of time (UCUM)
Timing.repeat.dayOfWeekcode0..*mon | tue | wed | thu | fri | sat | sun
Timing.repeat.timeOfDaytime0..*Time of day for action
Timing.repeat.whencode0..*Code for time period of occurrence
Timing.repeat.offsetunsignedInt0..1Minutes from event (before or after)
Timing.codeCodeableConcept0..1BID | TID | QID | AM | PM | QD | QOD | +

Example JSON (R4)

{
  "repeat": {
    "frequency": 2,
    "period": 1,
    "periodUnit": "d",
    "boundsPeriod": {
      "start": "2024-05-01",
      "end": "2024-05-08"
    }
  },
  "code": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation",
        "code": "BID"
      }
    ]
  }
}

FHIRPath

  • MedicationRequest.dosageInstruction.timing.repeat.frequency — How often the dose is repeated

FHIR Toolbox is a free, privacy-first collection of HL7 FHIR utilities by Omindra Labs. Every tool performs zero-server processing — your health data never leaves your device.