# @northguild/gmt/healthcare > Functions that read, write and check HL7 version 2 and FHIR R4 date-times, keeping the precision sent. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## format - [formatFHIR](https://northguild.dev/gmt/reference/healthcare/format/formatFHIR.md): Write an ISO 8601 string as a FHIR R4 `date`, `dateTime` or `instant`: the inverse of `parseFHIR`. - [formatHL7](https://northguild.dev/gmt/reference/healthcare/format/formatHL7.md): Write an ISO 8601 string as an HL7 v2 date-time (`DTM`): the inverse of `parseHL7`. ## parse - [parseFHIR](https://northguild.dev/gmt/reference/healthcare/parse/parseFHIR.md): Reads a FHIR R4 `date`, `dateTime` or `instant` string (R4 Datatypes ยง2.24.0.1) as it is written, and returns what it states: the input, its precision and its offset. - [parseHL7](https://northguild.dev/gmt/reference/healthcare/parse/parseHL7.md): Read an HL7 v2 date-time (`DTM`, or the older `TS`) as what it states: a moment, the sender's local time, or a span. ## validate - [isValidFHIR](https://northguild.dev/gmt/reference/healthcare/validate/isValidFHIR.md): Return true when `value` is a real FHIR R4 `date`, `dateTime` or `instant`, as `type` names. - [isValidHL7](https://northguild.dev/gmt/reference/healthcare/validate/isValidHL7.md): Return true when `value` is an HL7 v2 `DTM`, or a `TS` with a degree of precision the digits carry, that `parseHL7` reads.