HL7™ version 2 for Jennifer programs: parse,
read, change and build ADT, ORU, ORM, SIU and any other message in the
pipe-delimited encoding, with terser-style paths (PID-5-1, OBX(2)-5),
escapes, character sets from MSH-18 and acknowledgements; and send,
receive and serve them over MLLP. Strict: input that breaks HL7's encoding
is an error, and an unchanged message encodes back byte for byte.
jvc add @deckyard/hl7This vendors the deck to vendor/<scope>/hl7/. Without jvc, unpack the
src/ subtree of a release archive (<scope>-hl7-<version>.tar.gz) there.
use io;
import "@deckyard/hl7/" as hl7;
def m as hl7.Message init hl7.parse($text);
io.printf("%s, %s\n", hl7.get($m, "PID-5-1"), hl7.get($m, "PID-5-2"));
for (def obx in hl7.segmentsOf($m, "OBX")) {
io.printf("%s = %s\n", hl7.component($obx, 3, 1, 2), hl7.field($obx, 5));
}
Jennifer 0.28.0 or newer and the default jennifer binary: MLLP needs
net, which the stock jennifer-tiny lacks.
tools/check-all.sh # the full gate, as CI runs it
jennifer test src/hl7_test.j # the tests, with a scripted MLLP peer
tools/check-docs.sh # docs against the code
tools/pack.sh dist # build the release archiveHL7™ and FHIR™ are trademarks of Health Level Seven International. Other product and company names may be trademarks of their respective owners. They are used only to identify the standards this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Health Level Seven International.
LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.
tools/check-headers.sh checks every source file's SPDX header against
deck.toml.