Skip to main content
Version: v0.0.3

Variable: SUPPORTED_DATE_TOKENS

const SUPPORTED_DATE_TOKENS: readonly string[]

Every date-format token the library's format-string matcher and defineProfile() D-08 validator recognize. Re-exported so profile authors can introspect the valid token set. SSSS (fractional seconds) is recognised by the D-08 validator only.

Example

import { SUPPORTED_DATE_TOKENS } from "@cosyte/hl7";
console.log(SUPPORTED_DATE_TOKENS);
// ["YYYY", "MM", "DD", "HH", "mm", "ss", "SSSS"]