Skip to content

healthcare

  • Timestamps in HL7 and FHIR clinical data: a precision set by what is sent, and a time with no offset, which HL7 reads as local time and FHIR refuses.

The Healthcare industry’s own namespace. What it solves, and the guides and tools that show it, are on Healthcare.

  • formatFHIR: Write an ISO 8601 string as a FHIR R4 date, dateTime or instant: the inverse of parseFHIR.
  • formatHL7: Write an ISO 8601 string as an HL7 v2 date-time (DTM): the inverse of parseHL7.
  • 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: 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.
  • isValidFHIR: Return true when value is a real FHIR R4 date, dateTime or instant, as type names.
  • isValidHL7: Return true when value is an HL7 v2 DTM, or a TS with a degree of precision the digits carry, that parseHL7 reads.
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.