Healthcare
HL7 v2 parser
A small library that reads and writes HL7 v2, the message format hospital systems still use to exchange admissions, orders and results.
01 Problem
HL7 v2 is everywhere in hospitals, but its delimiters, escapes and repetitions make ad-hoc parsing error-prone.
02 Approach
- Zero-dependency TypeScript parser and serializer with escape handling and field repetitions.
- Includes acknowledgement (ACK) generation, batch files, MLLP framing and a command-line tool.
- Installable directly from GitHub.
03 Evidence
- CI on Node.js 20, 22 and 24
- Round-trip tests on sample messages
- No runtime dependencies
The repository README explains how to run each test suite, and its continuous integration history is public.