Function: encodeTs()
encodeTs(
v):RawField
Encode a TS/DTM timestamp. Accepts either the typed TS (its raw
string is emitted verbatim: the serializer never re-derives a timestamp
from parts) or a pre-formatted HL7 timestamp string.
Parameters
v
string | DtmParts
Returns
Example
import { encodeTs } from "@cosyte/hl7";
encodeTs("20260721101500");