Skip to content

Main content

Personal Health Export Date Precision Mask Tool

Calculate personal health export date precision mask from explicit caller-supplied inputs.

Loading tool…

Description

Parse a real Gregorian date and select year, month, or day precision.

Personal health and activity records use supplied observations, labels, and time intervals. A formatter or simple summary can organize those records without assessing health, diagnosing a condition, or recommending treatment.

Parse a real Gregorian date and select year, month, or day precision.

When to use this tool

Use Personal Health Export Date Precision Mask when you need a bounded personal-record calculation with explicit units and date conventions.

How to use the tool and how it works

  1. Enter date, precision. 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 text. Use the output convention below.

Parse a real Gregorian date and select year, month, or day precision. Return the corresponding leading date components.1

Input fieldMeaning and unitsAccepted input
dateGregorian date in the exact accepted precision and grammar.Required. Text; maximum UTF-16 length 8192.
precisionPrecisionRequired. Text; one of "year", "month", "day"; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
textTextRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "date": "2026-10-26",
    "precision": "month"
  },
  "output": {
    "text": "2026-10"
  }
}

Limitations and assumptions

  • Reducing displayed precision does not anonymize a person or enforce privacy rights, and it does not alter or verify the source record.
  • 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.

Alternative or Complementary methods

Review the original observations and consult an appropriate health professional for clinical interpretation or care decisions.

References

  1. Calculation and input contract: health/personal-health-export-date-precision-mask — tool.io

Similar or alternative tools