# healthcare

Industry: Healthcare

The Healthcare industry's own namespace. What it solves, and the guides and tools that show it, are on [Healthcare](/gmt/industries/healthcare/).

## [format](/gmt/reference/healthcare/format/)

- [`formatFHIR`](/gmt/reference/healthcare/format/formatFHIR/): Write an ISO 8601 string as a FHIR R4 `date`, `dateTime` or `instant`: the inverse of `parseFHIR`.
- [`formatHL7`](/gmt/reference/healthcare/format/formatHL7/): Write an ISO 8601 string as an HL7 v2 date-time (`DTM`): the inverse of `parseHL7`.

## [parse](/gmt/reference/healthcare/parse/)

- [`parseFHIR`](/gmt/reference/healthcare/parse/parseFHIR/): 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`](/gmt/reference/healthcare/parse/parseHL7/): 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](/gmt/reference/healthcare/validate/)

- [`isValidFHIR`](/gmt/reference/healthcare/validate/isValidFHIR/): Return true when `value` is a real FHIR R4 `date`, `dateTime` or `instant`, as `type` names.
- [`isValidHL7`](/gmt/reference/healthcare/validate/isValidHL7/): Return true when `value` is an HL7 v2 `DTM`, or a `TS` with a degree of precision the digits carry, that `parseHL7` reads.
