Skip to content

Main content

Clinical Datetime Offset Known Flag Tool

Expose an explicit clinical date-time offset-known flag; the numeric zero placeholder when unknown is accompanied by canApplyOffset=false.

Loading tool…

Description

Expose whether a supplied clinical datetime offset is known and can be applied.

Health-information systems separate identifiers, code-system namespaces, source versions, missing-value states and reference syntax. Recording a mapping or recognizing a restricted token does not validate its clinical meaning or a complete HL7/FHIR resource. Explicit null, empty text, unknown status and numeric zero are different states.

Expose whether a supplied clinical datetime offset is known and can be applied.

When to use this tool

Use Clinical Datetime Offset Known Flag when checking the stated restricted health-data record, token or transition convention.

How to use the tool and how it works

  1. Enter offsetKnown, suppliedOffsetMinutes. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read canApplyOffset, appliedOffsetMinutes. Inspect canApplyOffset before interpreting the associated values.

Return canApplyOffset=offsetKnown and the supplied offset in minutes only when known, otherwise zero.1

Input fieldMeaning and unitsAccepted input
offsetKnownOffset KnownRequired. Boolean.
suppliedOffsetMinutesSupplied Offset MinutesRequired. Finite number.
Output fieldInterpretationReturned shape
canApplyOffsetCan Apply OffsetRequired. Boolean.
appliedOffsetMinutesSupplied signed minutes when offsetKnown, otherwise zero placeholder; no datetime is changed.Required. Finite number.
json
{
  "input": {
    "offsetKnown": false,
    "suppliedOffsetMinutes": 60
  },
  "output": {
    "canApplyOffset": false,
    "appliedOffsetMinutes": 0
  }
}

Limitations and assumptions

  • Zero can be a placeholder or a known zero offset; no timestamp is parsed, converted or proven comparable across clocks.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the intended complete interoperability specification, authoritative terminology and verified source records for actual resource validation, semantic mapping or clinical use.

References

  1. Calculation and input contract: health-informatics/clinical-datetime-offset-known-flag — tool.io

Similar or alternative tools