UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

13 lines (11 loc) • 323 B
import { fhirTypeAllows, readFhirValue } from "../../internal/fhirDateTime.js"; // src/healthcare/validate/isValidFHIR.ts function isValidFHIR(value, type) { try { const read = readFhirValue(value); return read !== null && fhirTypeAllows(type, read.precision); } catch { return false; } } export { isValidFHIR };