Skip to content
deckyardPublic

About

HL7 v2 messages (ER7): parse, read and build with terser paths, escapes, character sets and acknowledgements; MLLP client, listener and server

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

@deckyard/hl7

test Documentation release

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.

Documentation

Install

jvc add @deckyard/hl7

This vendors the deck to vendor/<scope>/hl7/. Without jvc, unpack the src/ subtree of a release archive (<scope>-hl7-<version>.tar.gz) there.

Usage

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));
}

Requirements

Jennifer 0.26.0 or newer and the default jennifer binary: MLLP needs net, which the stock jennifer-tiny lacks.

Development

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 archive

Licence

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.

About

HL7 v2 messages (ER7): parse, read and build with terser paths, escapes, character sets and acknowledgements; MLLP client, listener and server

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors